Permalink
Browse files

Update Makefile

  • Loading branch information...
pyrsmk committed Mar 30, 2012
1 parent e6c2270 commit 227ba8686e26360a0d78eded0c3d3017c1b39b69
Showing with 7 additions and 9 deletions.
  1. +7 −8 Makefile
  2. +0 −1 W-0.1.5.min.js
View
@@ -1,16 +1,15 @@
-OLD = ls -l | grep .js | sed -r 's/.+\s(\S+)/\1/'
-NAME = ls src | sed -r 's/ender\.js|package\.json|\s+//' | sed -nr 's/(.+)\.js/\1/p'
-VERSION = grep -m 1 Version src/\`${NAME}\`.js | sed -r 's/.*:\s*(.+)/\1/'
+NAME = W
+VERSION = grep -m 1 Version src/${NAME}.js | cut -c19-
all: lint minify
lint:
- @jshint src/`${NAME}`.js --config config/jshint.json
+ jshint src/${NAME}.js --config config/jshint.json
minify:
- @rm -f `${OLD}`
- @uglifyjs -nc src/`${NAME}`.js > `${NAME}`-`${VERSION}`.min.js
+ rm -f ${NAME}*
+ uglifyjs -nc src/${NAME}.js > ${NAME}-`${VERSION}`.min.js
instdeps:
- @npm install jshint -g
- @npm install uglify-js -g
+ npm install jshint -g
+ npm install uglify-js -g
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 227ba86

Please sign in to comment.