Package structure and building
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user