diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..3afd487 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory":"js/lib" +} diff --git a/.gitignore b/.gitignore index e16dda3..eeeb927 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *~ -*.DS_Store \ No newline at end of file +*.DS_Store +js/lib \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index fcf221b..f5899e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,8 @@ +language: node_js +node_js : + - "0.12" +before_script: + - npm install -g bower + - bower install script: phantomjs js/run-qunit.js test.html diff --git a/README.md b/README.md index 924e242..2ef14f0 100644 --- a/README.md +++ b/README.md @@ -3,19 +3,24 @@ bcviz D3 based JavaScript visualisation for bamcheck file format +Requires bower to install package dependencies. Creating and running demo: -------------------------- 1. Navigate to bcviz directory in terminal +2. Execute bower to install dependencies: + + bower install + 3. Start a localhost server in the directory using python: - python -m SimpleHTTPServer 8888 & + python -m SimpleHTTPServer 8888 & 4. In your browser go to: - - http://localhost:8888/ + + http://localhost:8888/ Running tests: -------------- diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..af8900a --- /dev/null +++ b/bower.json @@ -0,0 +1,19 @@ +{ + "name": "bcviz", + "dependencies":{ + "jquery":"2.0.3", + "d3":"3.2.8", + "requirejs":"2.1.8" + }, + "devDependencies":{ + "qunit":"1.15.0" + }, + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +} diff --git a/demo/demo.py b/demo/demo.py index e08f661..1a09c13 100644 --- a/demo/demo.py +++ b/demo/demo.py @@ -27,8 +27,8 @@