Skip to content

Commit

Permalink
fix: added node v12 to tests, lint-staged to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Dec 10, 2019
1 parent c82d9a2 commit cae0e45
Show file tree
Hide file tree
Showing 5 changed files with 456 additions and 526 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: node_js
node_js:
- '8'
- '10'
- '12'
script:
npm run test-coverage
after_success:
Expand Down
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"homepage": "https://lass.js.org",
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-commit": "lint-staged && npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand Down Expand Up @@ -116,20 +116,18 @@
],
"license": "MIT",
"lint-staged": {
"linters": {
"*.js": [
"xo --fix",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
],
"package.json": [
"fixpack",
"git add"
]
}
"*.js": [
"xo --fix",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
],
"package.json": [
"fixpack",
"git add"
]
},
"main": "sao.js",
"nyc": {
Expand Down
1 change: 1 addition & 0 deletions template/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: node_js
node_js:
- '8'
- '10'
- '12'
script:
npm run test-coverage
after_success:
Expand Down
2 changes: 1 addition & 1 deletion template/package
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"license": "MIT",
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-commit": "lint-staged && npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand Down
Loading

0 comments on commit cae0e45

Please sign in to comment.