Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.832 kB
bin = ./node_modules/.bin
test: test-globals-amd test-commonjs
test-globals-amd:
$(bin)/mocha-phantomjs ./spec/runner.html
test-commonjs: install ./spec/localStorage_commonjs_spec.bundled.js
$(bin)/mocha-phantomjs ./spec/runner_commonjs.html
link install:
@npm $@
clean:
rm -rf node_modules ./spec/localStorage_commonjs_spec.bundled.js
./spec/localStorage_commonjs_spec.bundled.js: ./spec/localStorage_commonjs_spec.js
$(bin)/browserify -e $< -o $@
minify:
$(bin)/uglifyjs -o backbone.localStorage-min.js backbone.localStorage.js
# Get version number from package.json, need this for tagging.
version = $(shell node -e "console.log(JSON.parse(require('fs').readFileSync('package.json')).version)")
# npm publish, public-docs and tag
publish :
git push
git tag v$(version)
git push --tags origin master
npm publish
Jump to Line
Something went wrong with that request. Please try again.