Skip to content

Commit

Permalink
Merge pull request #8 from mvfsillva/master
Browse files Browse the repository at this point in the history
Added editorconfig, husky, and travis to improve project quality
  • Loading branch information
yanmagale committed Oct 26, 2017
2 parents e1eb236 + f310a1e commit 1630f14
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
language: node_js
node_js:
- "8"
cache:
directories:
"node_modules"

before_script:
- 'npm install'
- 'npm run test'
40 changes: 39 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "ENV_MODE=TEST mocha --timeout 2000 test/*.js",
"cover": "ENV_MODE=TEST istanbul cover _mocha"
"cover": "ENV_MODE=TEST istanbul cover _mocha",
"prepush": "npm run test"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,6 +38,7 @@
},
"devDependencies": {
"chai": "^4.1.2",
"husky": "^0.14.3",
"istanbul": "^0.4.5",
"mocha": "^3.5.3"
}
Expand Down

0 comments on commit 1630f14

Please sign in to comment.