Skip to content

Commit

Permalink
Move to using gulp rather than grunt and update travis config appropr…
Browse files Browse the repository at this point in the history
…iately
  • Loading branch information
iandanforth committed Mar 4, 2014
1 parent d1f905d commit a2293e0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_js:
- "0.10"

before_script:
- npm install -g grunt
- npm install -g gulp

script: grunt test --verbose --force
7 changes: 7 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var gulp = require('gulp'),
qunit = require('gulp-qunit');

gulp.task('default', function() {
return gulp.src('./tests/unit/unittests_nupic-js.html')
.pipe(qunit());
});
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "nupic-js",
"version": "0.0.1",
"description": "JavaScript port of NuPIC",
"license": "GPL-3.0",
"repository": "iandanforth/nupic-js",
"bugs": { "url" : "http://github.com/iandanforth/nupic-js/issues"
},
"author": {
"name": "Ian Danforth",
"email": "[email protected]"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "gulp"
},
"keywords": [
"numenta",
"nupic",
"machine learning"
],
"devDependencies": {
"gulp-qunit": "~0.2.1",
"gulp-util": "~2.2.14",
"gulp": "~3.5.1"
}
}
6 changes: 3 additions & 3 deletions tests/unit/unittests_nupic-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<script src="qunit-1.14.0.js"></script>

<!-- add sources to test below -->
<script src="../../js/simplesets.js"></script>
<script src="../../js/seedrandom.min.js"></script>
<script src="../../js/SpatialPooler.js"></script>
<script src="../../src/simplesets.js"></script>
<script src="../../src/seedrandom.min.js"></script>
<script src="../../src/SpatialPooler.js"></script>

<!-- add class-based unit tests below -->

Expand Down

0 comments on commit a2293e0

Please sign in to comment.