Skip to content

Commit

Permalink
nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorNovozhilov committed Sep 11, 2020
1 parent 4d1d18b commit 2bf0be7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .eslintrc.json
Expand Up @@ -28,6 +28,15 @@
"browser": true,
"node": true
}
},
{
"files": [
"./nyc.config.cjs"
],
"globals": {
"require": "readonly",
"module": "readonly"
}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,4 +1,6 @@
/docs/_site/
/docs/Gemfile.lock

/build/

/node_modules/
3 changes: 3 additions & 0 deletions babel.config.json
@@ -0,0 +1,3 @@
{
"extends": "@nodutilus/nyc-config/babel"
}
12 changes: 12 additions & 0 deletions nyc.config.cjs
@@ -0,0 +1,12 @@
const config = require('@nodutilus/nyc-config')

config.exclude.push('test/index.js')

module.exports = Object.assign({}, config, {
'include': [
'lib',
'test'
],
'temp-dir': './build/nyc_output',
'report-dir': './build/coverage'
})
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -6,6 +6,7 @@
"repository": "github:q3s/q3s.github.io",
"devDependencies": {
"@nodutilus/eslint-config": "latest",
"@nodutilus/nyc-config": "latest",
"@nodutilus/test": "latest",
"jsdom": "latest",
"@notml/core": "latest",
Expand All @@ -18,6 +19,10 @@
"dexie": "latest"
},
"scripts": {
"build": "npx rollup --config"
"test": "node test",
"eslint": "npx nodutilus-eslint",
"nyc": "npx nodutilus-nyc",
"build": "npx rollup --config",
"all": "npx nodutilus-eslint && npx nodutilus-nyc && npx rollup --config"
}
}

0 comments on commit 2bf0be7

Please sign in to comment.