diff --git a/.gitignore b/.gitignore index 4d70bc4..477d588 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.min.js !excanvas.min.js +node_modules/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..baa0031 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.8 diff --git a/Makefile b/Makefile index b300f1a..2e070d0 100644 --- a/Makefile +++ b/Makefile @@ -7,3 +7,6 @@ all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) %.min.js: %.js yui-compressor $< -o $@ + +test: + ./node_modules/.bin/jshint *jquery.flot.js diff --git a/README.md b/README.md index c4015d7..e5b922a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Flot [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) + ## About ## Flot is a Javascript plotting library for jQuery. diff --git a/package.json b/package.json new file mode 100644 index 0000000..3382a12 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "Flot", + "version": "0.8.0-alpha", + "main": "jquery.flot.js", + "scripts": { + "test": "make test" + }, + "devDependencies": { + "jshint": "0.9.1" + } +}