-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (20 loc) · 805 Bytes
/
Makefile
File metadata and controls
22 lines (20 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all:
browserify --debug -t browserify-jade -t stringify index.js --outfile build/bundle.js
cd build && uglifyjs \
../vendor/three.js \
../vendor/jquery.js \
../vendor/stats.js \
../vendor/mtl-loader.js \
./bundle.js \
--source-map "scenevr.min.js.map" \
--compress "warnings=false" \
--output scenevr.min.js
gzip -9 build/scenevr.min.js
mv build/scenevr.min.js.gz build/scenevr.min.js
lessc css/scenevr.less > css/scenevr.css
# cp index.html build
cp css/*.css build/css
rm -rf build/vendor
cp images/* build/images
s3cmd put --add-header='Cache-Control: public, max-age=43200' --recursive ./build/* s3://client.scenevr.com/
s3cmd put --add-header='Cache-Control: public, max-age=43200' --add-header='Content-Encoding: gzip' ./build/scenevr.min.js s3://client.scenevr.com/