This repository was archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·55 lines (50 loc) · 1.36 KB
/
build.sh
File metadata and controls
executable file
·55 lines (50 loc) · 1.36 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
#!/bin/sh
# prepare directory
# todo: don't make if it already existed
mkdir dist
# normal release
cat \
src/adapter-dist-trad/_intro.js \
src/adapter-dist-trad/var.js \
src/adapter-dist-trad/_defense.js \
src/core.js \
src/str-backup.js \
src/str.js \
src/root.js \
src/ua.js \
src/url.js \
src/dom.js \
src/adapter-mod-action/_intro.js \
bower_components/action/src/action.js \
src/adapter-mod-action/_outro.js \
src/adapter-mod-template/_intro.js \
bower_components/underscore-template/src/underscore-template.js \
src/adapter-mod-template/config.js \
src/adapter-mod-template/_outro.js \
src/adapter-dist-trad/_outro.js \
> \
dist/underscore.ext.js
# cmd release
cat \
src/adapter-dist-cmd/_intro.js \
src/adapter-dist-cmd/var.js \
src/core.js \
src/str-backup.js \
src/str.js \
src/root.js \
src/ua.js \
src/url.js \
src/dom.js \
src/adapter-mod-action/_intro.js \
bower_components/action/src/action.js \
src/adapter-mod-action/_outro.js \
src/adapter-mod-template/_intro.js \
bower_components/underscore-template/src/underscore-template.js \
src/adapter-mod-template/config.js \
src/adapter-mod-template/_outro.js \
src/adapter-dist-cmd/_outro.js \
> \
dist/underscore.ext.cmd.js
# todo: amd release, or an universal module release
# minify
uglifyjs dist/underscore.ext.js -o dist/underscore.ext.min.js -c -m --screw-ie8 --stats --comments