X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=Makefile;h=6cddaface4e17f7617c38276ec623123d8510760;hb=f4a8ffd864b36aa4b5b67bda04d4293cb2e78fff;hp=1182b5aa4fa28926a6a31ac2d4b69b808f46889e;hpb=3c3b0a9da6dce1301dcccc6968e30b4792d4d3bd;p=dygraphs.git diff --git a/Makefile b/Makefile index 1182b5a..6cddafa 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,11 @@ -# Run the generate-combined.sh script. -# This Makefile isn't really necessary, but it serves as a "indicator" -# to new users that they need to do a "build" of sorts. -# -# Dean Wampler March 22, 2010 +# You should run "npm install" before running any commands in this Makefile. all: test generate-combined generate-documentation clean: @echo cleaning... @cp .dygraph-combined-clean.js dygraph-combined.js - rm docs/options.html + rm -f docs/options.html generate-combined: @echo Generating dygraph-combined.js @@ -28,15 +24,27 @@ generate-gwt: test: @./test.sh + @./check-combined-unaffected.sh test-combined: move-combined test clean-combined-test move-combined: generate-combined - mv dygraph-combined.js dygraph-dev.js + mv dygraph-combined.js dygraph-autoloader.js clean-combined-test: clean @echo restoring combined - git checkout dygraph-dev.js + git checkout dygraph-autoloader.js + rm dygraph-combined.js.map lint: - @./lint.sh + @./generate-combined.sh ls \ + | grep -v 'polyfills' \ + | xargs ./node_modules/.bin/jshint + +# Commands to run for continuous integration on Travis-CI +travis: test test-combined lint + +publish: + ./generate-combined.sh + npm publish + git checkout dygraph-combined.js