Opening angular 2 cli app in visual studio 2017

I created an Angular 2 application using the Angular 2 CLI. I want to open this application in Visual Studio 2017 and run it from Visual Studio. To do this, I performed the following steps in Visual Studio.

  • In Visual Studio New Porject -> Node.js -> From Existing Node.js Code
  • I followed the steps after clicking the "rom Existing Node.js Code" button

After completing the following steps, he asked me to insert a startup script. Where can I find the launch script in an Angular 2 CLI application? By default, this is server.jsin the Node.js app in visual studio.

+6
source share
1 answer

Node.js . ( > > ), . , VS2017, , , git. , .sln . VS , , , ..

git Windows, bash, npm install npm start/ng. Node.js(Tools > Node.js Tools > Node.js Interactive Window) .npm .npm, VS2017 ng, , (Ctrl + Alt + delete > Start Task Manager). . Node.exe. CLI Angular VS2017.

+5

Source: https://habr.com/ru/post/1015874/


All Articles