mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
Add code coverage
This commit is contained in:
parent
f7a0032a6a
commit
053e8a0e36
6 changed files with 20 additions and 1 deletions
|
@ -5,3 +5,5 @@ client/js/lounge.templates.js
|
|||
# third party
|
||||
client/js/libs/jquery/*.js
|
||||
client/js/libs/*.js
|
||||
|
||||
coverage/
|
||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,6 +1,10 @@
|
|||
# Make sure to keep this file and .npmignore in sync
|
||||
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
|
||||
coverage/
|
||||
|
||||
# Built assets created at npm install/prepublish time
|
||||
# See https://docs.npmjs.com/misc/scripts
|
||||
client/fonts/
|
||||
|
|
8
.istanbul.yml
Normal file
8
.istanbul.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
instrumentation:
|
||||
include-all-sources: true
|
||||
excludes:
|
||||
- Gruntfile.js
|
||||
- client/js/libs/*.js
|
||||
- client/js/libs/jquery/*.js
|
||||
- client/js/libs.min.js
|
||||
- client/js/lounge.js
|
|
@ -1,3 +1,5 @@
|
|||
# This should match the .gitignore file without the generated assets
|
||||
# npm-debug.log and node_modules/ are ignored by default.
|
||||
# See https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
|
||||
|
||||
coverage/
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"ignoreFiles": [
|
||||
"client/css/bootstrap.css"
|
||||
"client/css/bootstrap.css",
|
||||
"coverage/**/*.css"
|
||||
],
|
||||
"rules": {
|
||||
"at-rule-empty-line-before": ["always", {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
},
|
||||
"homepage": "https://thelounge.github.io/",
|
||||
"scripts": {
|
||||
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -r test/fixtures/env.js test/**/*.js",
|
||||
"start": "node index",
|
||||
"build": "npm run build:font-awesome && npm run build:grunt && npm run build:handlebars",
|
||||
"build:font-awesome": "node scripts/build-fontawesome.js",
|
||||
|
@ -64,6 +65,7 @@
|
|||
"grunt-contrib-uglify": "1.0.1",
|
||||
"grunt-contrib-watch": "1.0.0",
|
||||
"handlebars": "4.0.5",
|
||||
"istanbul": "0.4.3",
|
||||
"mocha": "2.4.5",
|
||||
"npm-run-all": "2.1.1",
|
||||
"stylelint": "6.6.0"
|
||||
|
|
Loading…
Reference in a new issue