nwjsVSProjectTemplate is a basic project template for running and building nw.js apps in Visual Studio.
What you can do with it:
- When you hit Start Debugging your app will be run in nw.js
- When you select Release configuration an nw package will created in project folder
Usage tips:
- To install download nwjsApp.zip from here and copy it to
C:\Users\<your user name>\Documents\Visual Studio 2013\Templates\ProjectTemplates - You have to add path to your copy of nw.js in Project\Properties\Debug\Start external program (by default it points to C:\Program Files\nwjs-v0.12.0-win-x64\nw.exe)
- Files which you want included in your app's package should be set as Content with either Copy if newer or Copy always
- To use TypeScript include generated JavaScript file in the project and set it to be copied to output (see above); this item template might help as it adds both TypeScript file and the output JavaScript file to the project
- package.json can be costumized for Debug and Release configuration; final package.json is built by extending main package.json with package.<ConfigurationName>.json
Unfortunatelly you cannot debug your app directly in VS (depending on how difficult it is I'll consider adding it in the future).
Licensed: WTFPL