forked from thomaschampagne/elevate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
64 lines (64 loc) · 3.85 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
{
"name": "elevate",
"version": "6.8.0",
"description": "Wrap the needed tools required to cook the Elevate 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 archive",
"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 test:app",
"test:app": "cd ./plugin/app/ && node ./node_modules/@angular/cli/bin/ng test --watch=false",
"test:app:no-source-map": "npm run test:app -- --source-map=false",
"test:app-ui-browser": "npm run test:app -- --browsers Chrome",
"test:core": "cd ./plugin/core && node ./node_modules/karma/bin/karma start karma.conf.js --single-run",
"test:core-ui-browser": "npm run test:core -- --browsers Chrome",
"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",
"archive": "node -e \"const bestzip = require('bestzip');const manifest = require('./dist/manifest.json');const fs = require('fs');const cwd = process.cwd() + '/dist/';const target = 'package/';const filename = 'v' + manifest.version_name.split(' ').join('_').toLowerCase() + '_' + (function now() {const pad = (num) => {return (num).toString().padStart(2, '0');}, d = new Date();return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()) + '-' + pad(d.getHours()) + '-' + pad(d.getMinutes());}()) + '.zip';const output = '../' + target + filename;if (!fs.existsSync(target)) fs.mkdirSync(target);bestzip.nodeZip({source: '*', cwd: cwd, destination: output}).then(() => {console.log('Generated archive ' + filename);process.exit(0);}).catch((err) => {console.error(err.stack);process.exit(1);});\""
},
"config": {
"unsafe-perm": true
},
"repository": {
"type": "git",
"url": "https://github.com/thomaschampagne/elevate"
},
"author": {
"name": "Thomas Champagne",
"email": "[email protected]",
"web": "http://thomaschampagne.github.io"
},
"contributors": [
{
"name": "Thomas Champagne",
"email": "[email protected]",
"web": "http://thomaschampagne.github.io"
}
],
"license": "MIT",
"readme": "README.md",
"devDependencies": {
"bestzip": "^2.1.2",
"cpy-cli": "^2.0.0",
"del-cli": "^1.1.0",
"npm-run-all": "^4.1.3",
"run-sequence": "^2.2.1"
}
}