X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=Makefile;h=2ab31deab0d7ec9f9f40962692486d0dd1eaa47a;hb=f9b5a82c0e67c25b47cc5a40b46ca2f1056c35f5;hp=b5e812d95b4a6a36fc7c470079a18daaef7e8076;hpb=c70fe730d3e8a4ff32f9371d95a7894441f2f671;p=dygraphs.git diff --git a/Makefile b/Makefile index b5e812d..2ab31de 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,21 @@ -# 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 +all: test generate-combined generate-documentation clean: + @echo cleaning... @cp .dygraph-combined-clean.js dygraph-combined.js + rm -f docs/options.html generate-combined: @echo Generating dygraph-combined.js @./generate-combined.sh +generate-documentation: + @echo Generating docs/options.html + @./generate-documentation.py > docs/options.html + @chmod a+r docs/options.html + gwt: generate-gwt generate-gwt: @@ -21,6 +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 + +clean-combined-test: clean + @echo restoring combined + git checkout dygraph-dev.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