-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·23 lines (20 loc) · 886 Bytes
/
build
File metadata and controls
executable file
·23 lines (20 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
rm -rf dist
mkdir -p dist
echo "build src/index.ls -> dist/index.js ..."
./node_modules/.bin/lsc -cp --no-header src/index.ls > dist/index.js
echo "build src/index.styl -> dist/index.css ..."
./node_modules/.bin/stylus -p src/index.styl > dist/index.css
echo "build src/theme.styl -> dist/theme.css ..."
./node_modules/.bin/stylus -p src/theme.styl > dist/theme.css
echo "minifying index.js ..."
./node_modules/.bin/uglifyjs dist/index.js -m -c > dist/index.min.js
echo "minifying index.css ..."
./node_modules/.bin/uglifycss dist/index.css > dist/index.min.css
echo "minifying theme.css ..."
./node_modules/.bin/uglifycss dist/theme.css > dist/theme.min.css
echo "Copy dist/ to web/ ..."
rm -rf web/static/assets/lib/lddatetimepicker/dev/
mkdir -p web/static/assets/lib/lddatetimepicker/dev/
cp -R dist/* web/static/assets/lib/lddatetimepicker/dev/
echo "done."