Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (44 sloc) 1.591 kb
REQUIREJS = ./node_modules/requirejs/bin/r.js
LESSC = ./node_modules/less/bin/lessc
all:
#optimise js files
$(REQUIREJS) -o public/js/build/desktop.build.js
$(REQUIREJS) -o public/js/build/mobile.build.js
# zepto
# mkdir build/js/libs
# uglifyjs -o build/js/libs/zepto.js public/js/libs/zepto.js
#parse and minify less files
$(LESSC) public/css/desktop_app.less > build/css/desktop_app.css --yui-compress
$(LESSC) public/css/desktop_landing.less > build/css/desktop_landing.css --yui-compress
$(LESSC) public/css/mobile_app.less > build/css/mobile_app.css --yui-compress
$(LESSC) public/css/mobile_landing.less > build/css/mobile_landing.css --yui-compress
clean:
#remove concatenated less files
rm -rf public/css/tmp
mkdir public/css/tmp
#remove minified js files
rm build/js/*.js
#remove minified css files
rm build/css/*.css
#remove images in build folder.
rm -R build/img
rm build/favicon.ico
jshint:
#scripts
jshint public/js/scripts/
#main files
jshint public/js/login.js
jshint public/js/desktop_main.js
jshint public/js/mobile_main.js
images:
#copy images into build folder
cp -R public/img build/
cp public/favicon.ico build/favicon.ico
#optimise pngs
optipng build/img/*.png --strip all
optipng build/img/filetypes/*.png --strip all
optipng build/img/logo/*.png --strip all
optipng build/img/landing/*.png --strip all
#jpeg
jpegtran -copy none -outfile build/img/landing/keyboard.jpg -optimize public/img/landing/keyboard.jpg
jpegtran -copy none -outfile build/img/landing/lessnoise.jpg -optimize public/img/landing/lessnoise.jpg
Jump to Line
Something went wrong with that request. Please try again.