-
Notifications
You must be signed in to change notification settings - Fork 10
/
package-scripts-bundle.cson
74 lines (64 loc) · 2.14 KB
/
package-scripts-bundle.cson
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
'bundle-browserify:#ECMASCRIPT#': '
browserify
./dist/#ECMASCRIPT#/src/http/server-cli.js
--no-builtins
--no-commondir
--ignore-missing
--xxinsert-globals
--insert-global-vars "xx__filename,xx__dirname"
--no-browser-field
--xxfull-paths
--xxlist
--xxdeps
--debug
--xxexclude mylib
--xxexternal ./file.js
--outfile
./dist/bundle-#ECMASCRIPT#/server-cli.inlinesourcemap.js
'
'bundle-exorcist:#ECMASCRIPT#': '
cat ./dist/bundle-#ECMASCRIPT#/server-cli.inlinesourcemap.js |
exorcist
--root
../../
./dist/bundle-#ECMASCRIPT#/server-cli_.js.map >
./dist/bundle-#ECMASCRIPT#/server-cli_.js &&
json -I -f ./dist/bundle-#ECMASCRIPT#/server-cli_.js.map -e "this.sourcesContent=false" &&
rimraf ./dist/bundle-#ECMASCRIPT#/server-cli.inlinesourcemap.js
'
'bundle-sorcery:#ECMASCRIPT#': '
sorcery
--input
./dist/bundle-#ECMASCRIPT#/server-cli_.js
--output
./dist/bundle-#ECMASCRIPT#/server-cli.js &&
rimraf ./dist/bundle-#ECMASCRIPT#/server-cli_.js &&
rimraf ./dist/bundle-#ECMASCRIPT#/server-cli_.js.map
'
'bundle-uglify:#ECMASCRIPT#': '
cpy --flat ./dist/bundle-#ECMASCRIPT#/server-cli.js.map ./dist/bundle-#ECMASCRIPT#/ --rename=server-cli-.js.map &&
json -I -f ./dist/bundle-#ECMASCRIPT#/server-cli-.js.map -e "this.sourcesContent=false" &&
terser
./dist/bundle-#ECMASCRIPT#/server-cli.js
--output
./dist/bundle-#ECMASCRIPT#/server-cli.min.js
--xxcompress
--xxmangle
--keep-classnames
--keep-fnames
--beautify
"beautify=false,ecma=6,indent_level=0"
--source-map
"root=\'\',url=\'server-cli.min.js.map\',content=\'./dist/bundle-#ECMASCRIPT#/server-cli-.js.map\'" &&
rimraf ./dist/bundle-#ECMASCRIPT#/server-cli-.js.map
'
'bundle:#ECMASCRIPT#': '
echo "bundle skip."
'
'bundle:#ECMASCRIPT#_': '
mkdirp ./dist/bundle-#ECMASCRIPT# &&
npm run bundle-browserify:#ECMASCRIPT# &&
npm run bundle-exorcist:#ECMASCRIPT# &&
npm run bundle-sorcery:#ECMASCRIPT# &&
npm run bundle-uglify:#ECMASCRIPT#
'