From 2b701a35d80f1d796df933472b4e9a9b9b0088e7 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Wed, 10 Aug 2016 12:57:22 -0400 Subject: [PATCH] update deps, test commands, ignores --- .gitignore | 2 ++ .npmignore | 4 ++++ package.json | 9 ++++----- test/test.js | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 9daa824..db8ba0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .DS_Store node_modules +coverage +.nyc_output diff --git a/.npmignore b/.npmignore index d6807e4..a585366 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,6 @@ test/ .editorconfig +coverage +.nyc_output +.travis.yml +contributing.md diff --git a/package.json b/package.json index 23fbf97..e0944dc 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/test/test.js b/test/test.js index 0424ee9..d5eb849 100644 --- a/test/test.js +++ b/test/test.js @@ -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) })