Package structure and building

This commit is contained in:
2015-03-17 15:57:45 +07:00
parent d785af38c3
commit 03bcc505dc
22 changed files with 57 additions and 58 deletions
+14
View File
@@ -1,2 +1,16 @@
UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
CLEANCSS = ./node_modules/clean-css/bin/cleancss
cloc:
cloc . --exclude-dir=app/bower_components,app/scripts/.module-cache
static:
$(UGLIFY) \
app/bower_components/react/react.js \
app/bower_components/react-router/build/global/ReactRouter.js \
app/bower_components/lodash/lodash.js \
app/bower_components/jquery/dist/jquery.js \
app/js/* \
app/jsx/build/*/* \
> build/app.js
cat app/css/* | $(CLEANCSS) -o build/app.css