Skip to content

Commit c8b571a

Browse files
committed
Fixed #146
1 parent f79f682 commit c8b571a

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

doc/BUILD_CHROME_OS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In order to build the actual app you need first to build all core files.
1010
This step is normally needed only once and after an update of the core files.
1111
This could be done with the following command:
1212
```bash
13-
npm run build-core
13+
npm run build
1414
```
1515

1616
## Build the actual app

doc/BUILD_MAC_APP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In order to build the actual app you need first to build all core files.
1010
This step is normally needed only once and after an update of the core files.
1111
This could be done with the following command:
1212
```bash
13-
npm run build-core
13+
npm run build
1414
```
1515

1616
## Build the launcher

doc/BUILD_WIN_APP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In order to build the actual app you need first to build all core files.
1010
This step is normally needed only once and after an update of the core files.
1111
This could be done with the following command:
1212
```bash
13-
npm run build-core
13+
npm run build
1414
```
1515

1616
## Build the launcher

package.json

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,23 @@
4242
"test-core": "echo Starting core tests ... && karma start test/core_tests.conf",
4343
"pretest-mode": "npm run build && npm run build-cwc-main-debug",
4444
"test-mode": "echo Starting mode tests ... && karma start test/mode_tests.conf",
45-
"prebuild-cwc-soy": "npm run clean-soy_files",
45+
"prebuild-chrome-app": "npm run clean-chrome_app",
46+
"prebuild-chrome-app-debug": "npm run clean-chrome_app",
47+
"prebuild-core": "npm run clean-core",
4648
"prebuild-cwc-gss": "npm run clean-gss_files",
49+
"prebuild-cwc-soy": "npm run clean-soy_files",
50+
"prebuild-nw_app": "npm run clean-nw_app",
51+
"prebuild-nw_app-debug": "npm run clean-nw_app",
52+
"prebuild-third_party": "npm run clean-third_party",
53+
"prebuild-web_app": "npm run clean-web_app",
54+
"prebuild-web_app-debug": "npm run clean-web_app",
55+
"prepublish-nw_app-linux": "npm run clean-nw_app-linux",
56+
"prepublish-nw_app-mac": "npm run clean-nw_app-mac",
57+
"prepublish-nw_app-win": "npm run clean-nw_app-win",
58+
"build": "npm run build-third_party && npm run build-core",
59+
"build-chrome_app": "node build/app/chrome_app.js",
60+
"build-chrome_app_debug": "node build/app/chrome_app_debug.js",
61+
"build-core": "npm run build-cwc-deps",
4762
"build-cwc": "npm run build-cwc-deps && npm run build-cwc-main",
4863
"build-cwc-blocks": "node build/cwc/blocks.js",
4964
"build-cwc-debug": "npm run build-cwc-deps && npm run build-cwc-main-debug",
@@ -62,26 +77,15 @@
6277
"build-external-frameworks": "node build/external/frameworks.js",
6378
"build-external-static": "node build/external/static_files.js",
6479
"build-framework-files": "npm run build-external-frameworks && npm run build-cwc-frameworks",
65-
"prebuild-core": "npm run clean-core",
66-
"prebuild-chrome-app": "npm run clean-chrome_app",
67-
"prebuild-chrome-app-debug": "npm run clean-chrome_app",
68-
"prebuild-nw_app": "npm run clean-nw_app",
69-
"prebuild-nw_app-debug": "npm run clean-nw_app",
70-
"prebuild-web_app": "npm run clean-web_app",
71-
"prebuild-web_app-debug": "npm run clean-web_app",
72-
"build": "npm run build-third_party && npm run build-core",
73-
"build-chrome_app": "node build/app/chrome_app.js",
74-
"build-chrome_app_debug": "node build/app/chrome_app_debug.js",
75-
"build-core": "npm run build-cwc-deps",
7680
"build-nw_app": "npm run clean-nw_app && node build/app/nw_app.js",
7781
"build-nw_app_debug": "npm run clean-nw_app && node build/app/nw_app_debug.js",
7882
"build-third_party": "npm run clean-third_party && npm run build-external-frameworks && npm run build-external-extra && npm run build-external-static",
7983
"build-web_app": "npm run clean-web_app && node build/app/web_app.js",
8084
"publish-chrome_app": "npm run build-chrome_app",
8185
"publish-nw_app": "npm run publish-nw_app-win && npm run publish-nw_app-mac && npm run publish-nw_app-linux",
82-
"publish-nw_app-win": "nwbuild --platforms win --buildDir genfiles/ dist/nw_app/",
83-
"publish-nw_app-mac": "nwbuild --platforms osx64 --buildDir genfiles/ dist/nw_app/",
84-
"publish-nw_app-linux": "nwbuild --platforms linux --buildDir genfiles/ dist/nw_app/",
86+
"publish-nw_app-linux": "nwbuild --platforms linux --buildDir dist/ dist/nw_app/",
87+
"publish-nw_app-mac": "nwbuild --platforms osx64 --buildDir dist/ dist/nw_app/",
88+
"publish-nw_app-win": "nwbuild --platforms win --buildDir dist/ dist/nw_app/",
8589
"chrome-app": "npm run build-core && npm run build-cwc-main && npm run build-chrome_app && npm run launch",
8690
"chrome-app-debug": "npm run build-core && npm run build-cwc-main-debug && npm run build-chrome_app && npm run launch",
8791
"nw-app": "npm run build-core && npm run build-cwc-main && npm run build-nw_app && npm run launch-nw",
@@ -95,16 +99,19 @@
9599
"launch-web": "http-server dist/web_app",
96100
"launch-win": "echo && \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --load-and-launch-app=%CD%\\dist\\chrome_os --enable-logging --v=1 --no-first-run --enable-experimental-web-platform-features",
97101
"clean": "npm run clean-npm && npm run clean-chrome_app && npm run clean-core && npm run clean-soy_files && npm run clean-test && npm run clean-third_party",
102+
"clean-build": "npm run clean && npm run build",
98103
"clean-chrome_app": "echo Cleaning up Chrome app dist files. Please wait ... && rimraf dist/chrome_os/*",
99104
"clean-core": "echo Cleaning up core genfiles. Please wait ... && rimraf genfiles/core/*",
100105
"clean-gss_files": "echo Cleaning gss genfiles. Please wait ... && rimraf genfiles/core/css/editor.css",
101106
"clean-npm": "echo Cleaning up npm files. Please wait ... && npm prune",
107+
"clean-nw_app": "echo Cleaning up NW.js app dist files. Please wait ... && rimraf dist/nw_app/* && rimraf dist/binary/*",
108+
"clean-nw_app-linux": "echo Cleaning up NW.js Linux app. Please wait ... && rimraf dist/binary/linux32 && rimraf dist/binary/linux64",
109+
"clean-nw_app-mac": "echo Cleaning up NW.js Mac app. Please wait ... && rimraf dist/binary/osx64",
110+
"clean-nw_app-win": "echo Cleaning up NW.js Win app. Please wait ... && rimraf dist/binary/win32 && rimraf dist/binary/win64",
102111
"clean-soy_files": "echo Cleaning up soy genfiles. Please wait ... && rimraf gensoyfiles/*",
103112
"clean-test": "echo Cleaning up test genfiles. Please wait ... && rimraf test/genfiles/*",
104113
"clean-third_party": "echo Cleaning up third_party genfiles. Please wait ... && rimraf genfiles/third_party/*",
105-
"clean-nw_app": "echo Cleaning up NW.js app dist files. Please wait ... && rimraf dist/nw_app/*",
106114
"clean-web_app": "echo Cleaning up Web app dist files. Please wait ... && rimraf dist/web_app/*",
107-
"clean-build": "npm run clean && npm run build",
108115
"documentation": "jsdoc src -r -c documentation.json -d docs",
109116
"deploy": "npm test && git push",
110117
"lint": "eslint .",

0 commit comments

Comments
 (0)