Skip to content

Commit 6ea5ba8

Browse files
Add ManifestComments
1 parent 252768d commit 6ea5ba8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
{
2+
"ManifestComments": [
3+
"Only add dependencies that you want shipped to the end user, for everything else, use devDependencies, including things that will be bundled by webpack.",
4+
"NW.js requires a name and a main, everything else is optional.",
5+
"The build section is used by nwjs-builder-phoenix, see it's documentation for more info",
6+
"Though for development, we point to localhost, the dist version points directly to files on disk. You can change this by:",
7+
[
8+
"1. Add a web server dependency",
9+
"2. Create a server.js file to run a local webserver on port 8965",
10+
"3. Point build.overriddenProperties.node-main to 'node server.js'. This will run before the NW.js window is launched.",
11+
"4. Point the build.overriddenProperties.main to 'http://localhost:8965'",
12+
"5. Point the build.overriddenProperties.node-remote to 'http://localhost:8965'. To allow NW.js and Node.js access from the DOM.",
13+
"6. Remove 'node-remote' from build.strippedProperties"
14+
]
15+
],
216
"name": "nw-angular",
317
"version": "1.1.0",
418
"main": "http://localhost:8964",

0 commit comments

Comments
 (0)