Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 1.08 KB
path_client = ./client
path_public = ./public
path_local_bin = ./node_modules/.bin
stylus_path = ./client/css/main.styl
stylus_css_output = ./public/css
stylus_command = ${path_local_bin}/stylus --use ink --out ${stylus_css_output} ${stylus_path}
client: css html translations jsugly
css:
${stylus_command}
css_watch:
${stylus_command} --watch
html:
${path_local_bin}/jade ${path_client}/jade/partials --out ${path_public}/partials
${path_local_bin}/jade ${path_client}/jade/index.jade --out ${path_public}
html_watch:
${path_local_bin}/jade ${path_client}/jade/partials --out ${path_public}/partials --watch
${path_local_bin}/jade ${path_client}/jade/index.jade --out ${path_public} --watch
jsugly: js
${path_local_bin}/uglifyjs --overwrite --no-copyright --no-mangle --verbose ${path_public}/js/main.js
js:
${path_local_bin}/browserify --entry ${path_client}/js/main.coffee --outfile ${path_public}/js/main.js
translations:
${path_local_bin}/js-yaml --to-json ${path_client}/locales/en.yaml | sed "1s/^/window.locales.en = /" > ${path_public}/locales/en.js