Skip to content

Commit

Permalink
Add browser version (minified)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipernb committed Aug 13, 2014
1 parent fd04111 commit d9927c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ coverage: setup
coveralls:
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

VERSION := $(shell node -e "console.log(require('./package.json').version);")
browser_bundle: setup
browserify $(realpath main.js) --s algorithms | uglifyjs -c -m --screw-ie8 --wrap --preamble "/* algorithms.js v$(VERSION) | (c) 2014 Felipe Ribeiro | https://github.com/felipernb/algorithms.js/blob/master/LICENSE */" > build/algorithms.browser.min.js

Loading

0 comments on commit d9927c5

Please sign in to comment.