forked from Prinzhorn/scrollmeister
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·40 lines (30 loc) · 990 Bytes
/
build.sh
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
export NODE_PATH='./src'
export NODE_ENV=development
echo "Building development bundle"
./node_modules/.bin/browserify \
./src/index.js \
--standalone Scrollmeister \
-p [ browserify-banner --file ./src/banner.txt ] \
> ./dist/scrollmeister.js
echo "Building development bundle with extras"
./node_modules/.bin/browserify \
./src/index-extras.js \
--standalone Scrollmeister \
-p [ browserify-banner --file ./src/banner.txt ] \
> ./dist/scrollmeister-extras.js
export NODE_ENV=production
#Same as above plus tinyify plugin
echo "Building production bundle"
./node_modules/.bin/browserify \
./src/index.js \
--standalone Scrollmeister \
-p tinyify \
-p [ browserify-banner --file ./src/banner.txt ] \
> ./dist/scrollmeister.min.js
echo "Building production bundle with extras"
./node_modules/.bin/browserify \
./src/index-extras.js \
--standalone Scrollmeister \
-p tinyify \
-p [ browserify-banner --file ./src/banner.txt ] \
> ./dist/scrollmeister-extras.min.js