diff --git a/.gitignore b/.gitignore index 844eba3..da93fd0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ test/error.png test/assets/hinclude.js +node_modules/ diff --git a/package.json b/package.json new file mode 100644 index 0000000..c98858d --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "Hinclude", + "version": "1.0.1", + "author": "Mark Nottingham ", + "description": "Declarative client-side inclusion for the Web", + "contributors": [ + { + "name": "Fabio Fabbrucci", + "email": "fabio.fabbrucci@gmail.com" + } + ], + "dependencies" : { + "jslint" : "*" + }, + "engines": { + "node": ">= 0.6.0" + } +} \ No newline at end of file diff --git a/test/Makefile b/test/Makefile index 19f5b9f..ea72b08 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,6 +1,5 @@ - test_port=8081 -test: basic none small_media large_media +test: basic none small_media large_media lint basic: server phantomjs basic.js $(test_port) @@ -14,7 +13,7 @@ small_media: server large_media: server phantomjs large_media.js $(test_port) lint: - jslint --terse ../hinclude.js + node ../node_modules/jslint/bin/jslint.js ../hinclude.js server: ./serve.sh $(test_port) diff --git a/test/README.md b/test/README.md index db77860..782ef07 100644 --- a/test/README.md +++ b/test/README.md @@ -2,17 +2,22 @@ Tests ===== -Running the tests needs: +Requirements +------------ - * [phantomjs](http://phantomjs.org) + * nodejs + * [phantomjs](http://phantomjs.org) (at least 1.8.* version) * Python - * [jslint](http://www.jslint.com) (optional) + +After this we can set up the project -Note that jslint is most easily installed with [npm](http://npmjs.org/). + > npm install -Before the suite is run, start a server: +Running tests locally +--------------------- - > ./serve.sh& + > cd test + > make Release Testing ---------------