forked from thomaschampagne/elevate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 3.44 KB
/
package.json
File metadata and controls
61 lines (61 loc) · 3.44 KB
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
{
"name": "stravistix",
"version": "6.3.0",
"description": "Wrap the needed tools required to cook the StravistiX Web Plugin",
"scripts": {
"build": "npm-run-all clean res-copy:* build-project:core build-project:app",
"build:prod": "npm-run-all clean res-copy:* build-project:core@prod build-project:app@prod",
"build-project:app": "cd ./plugin/app/ && node ./node_modules/@angular/cli/bin/ng --version && node ./node_modules/@angular/cli/bin/ng build",
"build-project:app@prod": "npm run build-project:app -- --prod",
"build-project:core": "cd ./plugin/core && node ./node_modules/webpack/bin/webpack.js --config ./core.webpack.config.js",
"build-project:core@prod": "npm run build-project:core -- --mode production",
"clean": "npm-run-all clean:*",
"clean:dist": "node ./node_modules/del-cli/cli.js ./dist/",
"clean:package": "node ./node_modules/del-cli/cli.js ./package/",
"package": "npm-run-all clean build:prod zipRelease",
"postinstall": "cd ./plugin/core/ && npm install && cd ../app/ && npm install",
"res-copy:manifest": "node ./node_modules/cpy-cli/cli.js ./plugin/manifest.json ./dist/",
"res-copy:install-guide": "node ./node_modules/cpy-cli/cli.js ./plugin/INSTALL.txt ./dist/",
"test": "npm-run-all clean test:core-headless test:app-headless",
"test:app": "cd ./plugin/app/ && node ./node_modules/@angular/cli/bin/ng test",
"test:app-headless": "npm run test:app -- --browsers ChromeHeadless --watch false",
"test:core": "cd ./plugin/core && node ./node_modules/karma/bin/karma start karma.conf.js",
"test:core-headless": "npm run test:core -- --browsers ChromeHeadless --single-run",
"tslint-fix:core": "node ./plugin/core/node_modules/tslint/bin/tslint -c ./tslint.json ./plugin/core/**/*.ts ./plugin/shared/**/*.ts --fix",
"tslint-fix:app": "cd ./plugin/app/ && node ./node_modules/@angular/cli/bin/ng lint app --fix",
"start": "npm run watch",
"watch": "npm run clean && npm-run-all res-copy:* && npm-run-all --print-label --parallel watch:*",
"watch:app": "npm run build-project:app -- --watch",
"watch:core": "npm run build-project:core -- --watch",
"wipe": "npm run clean && npm run wipe:package-locks && npm run wipe:node-modules",
"wipe:node-modules": "node ./node_modules/del-cli/cli.js ./node_modules/ ./plugin/core/node_modules/ ./plugin/app/node_modules/",
"wipe:package-locks": "node ./node_modules/del-cli/cli.js ./package-lock.json ./plugin/core/package-lock.json ./plugin/app/package-lock.json",
"zipRelease": "node -e \"const z = require('zip-folder'), f = require('fs'), m = require('./dist/manifest.json'), t = './package', o = t + '/v' + m.version_name.split(' ').join('_').toLowerCase() + '_' + (new Date()).toJSON().slice(0, 16).replace('T', '-').replace(':', '-') + '.zip';if (!f.existsSync(t)) f.mkdirSync(t);z('./dist', o, (e) => {let code = (e) ? 1 : 0;if (!code) console.log('Generated archive ' + o);process.exit(code);});\""
},
"repository": {
"type": "git",
"url": "https://github.com/thomaschampagne/stravistix"
},
"author": {
"name": "Thomas Champagne",
"email": "th.champagne@gmail.com",
"web": "http://thomaschampagne.github.io"
},
"contributors": [
{
"name": "Thomas Champagne",
"email": "th.champagne@gmail.com",
"web": "http://thomaschampagne.github.io"
}
],
"license": "MIT",
"readme": "README.md",
"devDependencies": {
"bestzip": "^1.1.4",
"cpy-cli": "^1.0.1",
"del-cli": "^1.1.0",
"npm-run-all": "^4.1.2",
"run-sequence": "^1.2.2",
"zip-folder": "^1.0.0"
}
}