Skip to content

Commit

Permalink
move build process to grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Stereobit committed Mar 17, 2014
1 parent 2566f7a commit 046f814
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 4,882 deletions.
25 changes: 0 additions & 25 deletions Makefile
@@ -1,28 +1,3 @@
VERSION = $(shell cat VERSION)

JS_OUTPUT = "dist/dragend-${VERSION}.js"

JS_FILE = dragend.js

all: bundle minify

bundle:
@@echo "Bundling..."
@@touch ${JS_OUTPUT}
@@echo "Create output file"
@@cat ${JS_FILE} >> ${JS_OUTPUT}
@@echo "Merge JS file into output file"
@@cat ${JS_OUTPUT} | sed "s/@VERSION/${VERSION}/" > "${JS_OUTPUT}.tmp"
@@mv "${JS_OUTPUT}.tmp" ${JS_OUTPUT}

minify:
@@echo "Minifying... (this requires node.js)"
@@node build/minify.js ${JS_OUTPUT}
@@echo "Done."

clean:
@@git co ${JS_OUTPUT}

test:
./node_modules/.bin/mocha \
--reporter list
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

0 comments on commit 046f814

Please sign in to comment.