Skip to content

Commit

Permalink
update deps, test commands, ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed Aug 10, 2016
1 parent 335aa81 commit 2b701a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
node_modules
coverage
.nyc_output
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
test/
.editorconfig
coverage
.nyc_output
.travis.yml
contributing.md
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"reshape-plugin-util": "reshape/plugin-util"
},
"devDependencies": {
"ava": "^0.15.2",
"ava": "^0.16.0",
"coveralls": "^2.11.12",
"nyc": "^7.1.0",
"reshape": "reshape/reshape",
"snazzy": "^4.0.0",
"snazzy": "^4.0.1",
"standard": "^7.1.2"
},
"homepage": "https://github.com/reshape/custom-elements",
Expand All @@ -28,10 +28,9 @@
"main": "lib",
"repository": "https://github.com/reshape/custom-elements",
"scripts": {
"coverage": "nyc ava && nyc report --reporter=html",
"coverage": "nyc ava && nyc report --reporter=html && open ./coverage/index.html",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard | snazzy",
"mocha": "node_modules/.bin/_mocha",
"test": "npm run lint && npm run mocha"
"test": "npm run lint && nyc ava"
}
}
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('skip tags option', (t) => {
return compare(t, html, expected, { skipTags: ['header'] })
})

function compare (t, html, expected, options = {}) {
function compare (t, html, expected, options) {
return reshape({ plugins: [customElements(options)] })
.process(html)
.then((res) => { t.is(res.output(), expected) })
Expand Down

0 comments on commit 2b701a3

Please sign in to comment.