forked from google/coding-with-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 10.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "coding-with-chrome",
"description": "Coding with Chrome",
"version": "5.10.16",
"author": "Markus Bordihn ([email protected])",
"license": "Apache-2.0",
"private": true,
"dependencies": {},
"devDependencies": {
"bestzip": "^1.1.6",
"closure-builder": "^2.3.2",
"command-line-usage": "^5.0.5",
"escape-string-regexp": "^1.0.5",
"eslint": "^4.19.1",
"eslint-config-google": "^0.9.1",
"http-server": "latest",
"jasmine-core": "^3.3.0",
"jsdoc": "^3.5.5",
"karma": "^3.1.1",
"karma-chrome-launcher": "latest",
"karma-closure": "latest",
"karma-coverage": "^1.1.2",
"karma-jasmine": "^1.1.2",
"karma-mocha-reporter": "^2.2.5",
"make-dir": "^1.3.0",
"markdownlint": "^0.8.1",
"markdownlint-cli": "^0.8.1",
"mv": "^2.1.1",
"nw": "^0.31.5",
"nw-builder": "^3.5.4",
"replace-in-file": "^3.4.2",
"rimraf": "^2.6.2"
},
"scripts": {
"build": "npm run build:third_party && npm run build:core",
"build:chrome_app": "node build/app/chrome_app.js",
"build:chrome_app_debug": "node build/app/chrome_app_debug.js",
"build:core": "npm run build:cwc-deps",
"build:cwc": "npm run build:cwc-deps && npm run build:cwc-main",
"build:cwc-blocks": "node build/cwc/blocks.js",
"build:cwc-debug": "npm run build:cwc-deps && npm run build:cwc-main-debug",
"build:cwc-deps": "npm run build:cwc-blocks && npm run build:cwc-frameworks && npm run build:cwc-gss && npm run build:cwc-locales && npm run build:cwc-soy && npm run build:cwc-static-files && npm run build:cwc-tutorials",
"build:cwc-frameworks": "node build/cwc/frameworks.js",
"build:cwc-gss": "node build/cwc/gss.js",
"build:cwc-locales": "node build/cwc/locales.js",
"build:cwc-main": "node build/cwc/main.js",
"build:cwc-main-debug": "node build/cwc/main-debug.js",
"build:cwc-main-raw": "node build/cwc/main-raw.js",
"build:cwc-raw": "npm run build:cwc-deps && npm run build:cwc-main-raw",
"build:cwc-soy": "node build/cwc/soy.js",
"build:cwc-static-files": "node build/cwc/static_files.js",
"build:cwc-tutorials": "node build/cwc/tutorials.js",
"build:external": "npm run build:external-frameworks && npm run build:external-extra && npm run build:external-static",
"build:external-extra": "node build/external/extra_files.js",
"build:external-frameworks": "node build/external/frameworks.js",
"build:external-static": "node build/external/static_files.js",
"build:framework-files": "npm run build:external-frameworks && npm run build:cwc-frameworks",
"build:nw_app": "npm run build:cwc-main && node build/app/nw_app.js",
"build:nw_app_debug": "npm run build:cwc-main-debug && node build/app/nw_app_debug.js",
"build:third_party": "npm run build:external-frameworks && npm run build:external-extra && npm run build:external-static",
"build:web_app": "node build/app/web_app.js",
"chrome-app": "npm run build:core && npm run build:cwc-main && npm run build:chrome_app && npm run launch",
"chrome-app-debug": "npm run build:core && npm run build:cwc-main-debug && npm run build:chrome_app && npm run launch",
"clean": "npm run clean:npm && npm run clean:chrome_app && npm run clean:nw_app && npm run clean:web_app && npm run clean:core && npm run clean:soy_files && npm run clean:test && npm run clean:third_party",
"clean:build": "npm run clean && npm run build",
"clean:chrome_app": "echo Cleaning up Chrome app dist files. Please wait ... && rimraf dist/chrome_os/* && rimraf dist/cwc-chrome_app.zip",
"clean:core": "echo Cleaning up core genfiles. Please wait ... && rimraf genfiles/core/*",
"clean:gss_files": "echo Cleaning gss genfiles. Please wait ... && rimraf genfiles/core/css/editor.css",
"clean:npm": "echo Cleaning up npm files. Please wait ... && npm prune",
"clean:nw_app": "echo Cleaning up NW.js app dist files. Please wait ... && rimraf dist/nw_app/* && rimraf dist/binary/*",
"clean:nw_app-linux": "echo Cleaning up NW.js Linux app. Please wait ... && rimraf dist/binary/linux32 && rimraf dist/binary/linux64",
"clean:nw_app-mac": "echo Cleaning up NW.js Mac app. Please wait ... && rimraf dist/binary/osx64",
"clean:nw_app-win": "echo Cleaning up NW.js Win app. Please wait ... && rimraf dist/binary/win32 && rimraf dist/binary/win64",
"clean:soy_files": "echo Cleaning up soy genfiles. Please wait ... && rimraf gensoyfiles/*",
"clean:test": "echo Cleaning up test genfiles. Please wait ... && rimraf test/genfiles/*",
"clean:third_party": "echo Cleaning up third_party genfiles. Please wait ... && rimraf genfiles/third_party/*",
"clean:web_app": "echo Cleaning up Web app dist files. Please wait ... && rimraf dist/web_app/*",
"coverage": "node build/test/coverage.js",
"deploy": "npm test && git push",
"depswriter": "python third_party/closure-library/closure/bin/build/depswriter.py --root_with_prefix=\"src/ ../../../../src/\"",
"documentation": "jsdoc src -r -c documentation.json -d docs",
"launch": "echo Lauching app. Please wait ... && npm run launch:linux --silent || npm run launch:mac --silent || npm run launch:win-experimental --silent",
"launch:linux": "google-chrome --load-and-launch-app=$PWD/dist/chrome_os --enable-logging --v=1 --no-first-run",
"launch:mac": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" --load-and-launch-app=$PWD/dist/chrome_os --enable-logging --v=1 --no-first-run",
"launch:nw": "nw dist/nw_app",
"launch:web": "http-server dist/web_app",
"launch:win": "echo && \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --profile-directory=Default --load-and-launch-app=%CD%\\dist\\chrome_os --enable-logging --v=1 --no-first-run",
"launch:win-beta": "echo && \"C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe\" --profile-directory=Default --load-and-launch-app=%CD%\\dist\\chrome_os --enable-logging --v=1 --no-first-run --enable-experimental-web-platform-features",
"launch:win-experimental": "echo && \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --profile-directory=Default --load-and-launch-app=%CD%\\dist\\chrome_os --enable-logging --v=1 --no-first-run --enable-experimental-web-platform-features",
"lint": "npm run lint-javascript && npm run lint-markdown",
"lint-javascript": "eslint .",
"lint-markdown": "markdownlint doc/ training/ *.md src/**/*.md",
"nw-app": "npm run build:core && npm run build:nw_app && npm run launch:nw",
"nw-app-debug": "npm run build:core && npm run build:nw_app_debug && npm run launch:nw",
"postpublish:nw_app-linux": "node build/binary/linux.js",
"postpublish:nw_app-mac": "node build/binary/osx.js",
"postpublish:nw_app-win": "node build/binary/win.js",
"posttest:units": "npm run coverage",
"postupdate": "npm run build:third_party && npm test",
"prebuild:chrome-app": "npm run clean:chrome_app",
"prebuild:chrome-app-debug": "npm run clean:chrome_app",
"prebuild:core": "npm run clean:core",
"prebuild:cwc-gss": "npm run clean:gss_files",
"prebuild:cwc-soy": "npm run clean:soy_files",
"prebuild:nw_app": "npm run clean:nw_app",
"prebuild:nw_app-debug": "npm run clean:nw_app",
"prebuild:third_party": "npm run clean:third_party",
"prebuild:web_app": "npm run clean:web_app",
"prebuild:web_app-debug": "npm run clean:web_app",
"prepublish:nw_app-linux": "npm run clean:nw_app-linux",
"prepublish:nw_app-mac": "npm run clean:nw_app-mac",
"prepublish:nw_app-win": "npm run clean:nw_app-win",
"pretest": "npm run lint",
"pretest:core": "npm run build && npm run build:cwc-main",
"pretest:core-mode": "npm run build && npm run build:cwc-main",
"pretest:mode": "npm run build && npm run build:cwc-main",
"pretest:soy": "node build/test/soy_files.js",
"pretest:units": "node build/test/soy_files.js && npm run test:depswriter",
"preupdate": "npm run clean",
"publish:chrome_app": "npm run publish:prepare && npm run build:chrome_app && bestzip dist/cwc-chrome_app.zip dist/chrome_os/",
"publish:nw_app": "npm run publish:nw_app-win && npm run publish:nw_app-linux && npm run publish:nw_app-mac",
"publish:nw_app-linux": "nwbuild --appName Coding-with-Chrome --platforms linux --buildDir dist/ dist/nw_app/",
"publish:nw_app-mac": "nwbuild --appName Coding-with-Chrome --platforms osx64 --buildDir dist/ dist/nw_app/",
"publish:nw_app-win": "nwbuild --appName Coding-with-Chrome --platforms win --buildDir dist/ dist/nw_app/",
"publish:prepare": "npm run test && npm run clean && npm run build && npm run build:cwc-main",
"show-updates": "ncu",
"sync": "echo Syncing. Please wait ... && git pull && git submodule init && git submodule update && npm run update",
"test": "npm run test:block && npm run test:soy && npm run test:units && npm run test:core-mode",
"test:block": "echo Starting block tests ... && karma start test/block_tests.conf",
"test:core": "echo Starting core tests ... && karma start test/core_tests.conf",
"test:core-mode": "echo Starting combined core and mode tests ... && karma start test/core_tests.conf && karma start test/mode_tests.conf",
"test:depswriter": "python third_party/closure-library/closure/bin/build/depswriter.py --root_with_prefix=\"src/ ../../../../src/\" --root_with_prefix=\"node_modules/closure-builder/third_party/closure-templates/javascript/ ../../../../node_modules/closure-builder/third_party/closure-templates/javascript/\" --root_with_prefix=\"test/genfiles/soy/ ../../../../test/genfiles/soy/\" --root_with_prefix=\"third_party/coding-with-chrome-libraries/src/ ../../../../third_party/coding-with-chrome-libraries/src/\" > test/deps.js",
"test:mode": "echo Starting mode tests ... && karma start test/mode_tests.conf",
"test:soy": "echo Starting soy tests ... && karma start test/soy_tests.conf",
"test:units": "echo Starting unit tests ... && karma start test/unit_tests.conf",
"update": "npm install && npm update -a && npm audit fix && npm dedupe",
"usage": "node build/usage.js",
"web-app": "npm run build:core && npm run build:cwc-main && npm run build:web_app && npm run launch:web",
"web-app-debug": "npm run build:core && npm run build:cwc-main-debug && npm run build:web_app && npm run launch:web"
}
}