Skip to content

Commit

Permalink
Upgrade to Grunt-less, Semistandard-based tests
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
voxpelli committed Nov 5, 2016
1 parent aae57e8 commit eeff43e
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 31 deletions.
1 change: 0 additions & 1 deletion .editorconfig

This file was deleted.

9 changes: 9 additions & 0 deletions .editorconfig
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
/coverage/**/*
4 changes: 4 additions & 0 deletions .eslintrc
@@ -0,0 +1,4 @@
{
"extends": "semistandard",
"root": true
}
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
/node_modules
/coverage
/node_modules
/yarn.lock
1 change: 0 additions & 1 deletion .jscsrc

This file was deleted.

1 change: 0 additions & 1 deletion .jshintrc

This file was deleted.

2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -5,3 +5,5 @@ node_js:
- "4"
sudo: false
script: npm test
after_success:
- "cat coverage/lcov.info | ./node_modules/.bin/coveralls"
19 changes: 0 additions & 19 deletions Gruntfile.js

This file was deleted.

22 changes: 14 additions & 8 deletions package.json
Expand Up @@ -21,18 +21,24 @@
},
"main": "index.js",
"scripts": {
"test": "node -e \"require('grunt').tasks(['test']);\"",
"test-all": "node -e \"require('grunt').tasks(['test-all']);\"",
"mocha": "NODE_ENV=test istanbul cover _mocha -- -u exports -R spec test/**/*.spec.js",
"dependency-check": "JS_FILES=\"*.js test/*.js\" && dependency-check . $JS_FILES && dependency-check . $JS_FILES --unused --no-dev",
"test": "eslint . && npm run dependency-check && npm run mocha",
"prepush": "npm test"
},
"devDependencies": {
"chai": "^2.1.1",
"chai": "^3.5.0",
"coveralls": "^2.11.2",
"grunt": "^0.4.5",
"husky": "^0.10.2",
"istanbul": "^0.3.7",
"lintlovin": "voxpelli/lintlovin#1.x",
"mocha": "^2.1.0",
"dependency-check": "^2.5.2",
"escape-string-regexp": "^1.0.3",
"eslint": "^3.4.0",
"eslint-config-semistandard": "^7.0.0",
"eslint-config-standard": "^6.0.0",
"eslint-plugin-promise": "^3.0.0",
"eslint-plugin-standard": "^2.0.0",
"husky": "~0.11.4",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"promise": "^7.0.0",
"sinon": "^1.13.0"
}
Expand Down
5 changes: 5 additions & 0 deletions test/.eslintrc
@@ -0,0 +1,5 @@
{
"env": {
"mocha": true
}
}

0 comments on commit eeff43e

Please sign in to comment.