Skip to content

Commit

Permalink
Move from isparta to nyc and babel plugin #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Trufi committed Jul 22, 2016
1 parent 6805bad commit ccc0cca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Expand Up @@ -4,5 +4,10 @@
],
"plugins": [
"babel-plugin-add-module-exports"
]
],
"env": {
"cov": {
"plugins": ["istanbul"]
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,5 @@ coverage
docs
dist
*.glsl.js
.nyc_output
.DS_Store
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
sudo: false
node_js:
- "4.2"
- "4"
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
9 changes: 7 additions & 2 deletions package.json
Expand Up @@ -18,6 +18,7 @@
"babel-cli": "^6.5.1",
"babel-eslint": "^5.0.0",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-istanbul": "^1.0.3",
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.5.2",
"babelify": "^7.2.0",
Expand All @@ -26,10 +27,10 @@
"coveralls": "^2.11.4",
"dat-gui": "^0.5.0",
"eslint": "^1.10.3",
"isparta": "^4.0.0",
"jsdoc": "git://github.com/jsdoc3/jsdoc.git",
"minami": "git://github.com/Trufi/minami.git",
"mocha": "^2.3.4",
"nyc": "^7.0.0",
"sinon": "^1.17.2",
"uglify-js": "^2.6.1",
"watchify": "^3.6.1"
Expand All @@ -39,6 +40,10 @@
"babelify"
]
},
"nyc": {
"sourceMap": false,
"instrument": false
},
"scripts": {
"start": "npm run dev",
"build": "npm run build:shaders && npm run build:dist",
Expand All @@ -54,7 +59,7 @@
"dev:babel": "babel --watch src --out-dir=. -s inline",
"lint": "eslint src test",
"doc": "./node_modules/.bin/jsdoc src -r -R README.md -t node_modules/minami -c jsdoc.json -d docs",
"test": "npm run build:shaders && ./node_modules/babel-cli/bin/babel-node.js ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- test/*.spec.js test/**/*.spec.js",
"test": "npm run build:shaders && BABEL_ENV=cov nyc --reporter=lcov --reporter=text mocha --compilers js:babel-register test/*.spec.js test/**/*.spec.js",
"test:dev": "npm run build:shaders && ./node_modules/.bin/_mocha --compilers js:babel-register -w test/*.spec.js test/**/*.spec.js",
"pub": "npm run build && npm run build:es5 && npm publish && git clean -d -f"
}
Expand Down

0 comments on commit ccc0cca

Please sign in to comment.