Skip to content

Commit

Permalink
feature(supertape) add madrun
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 26, 2019
1 parent 38c6a26 commit 0515758
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Expand Up @@ -2,3 +2,5 @@
test
yarn-error.log

madrun.js

15 changes: 15 additions & 0 deletions madrun.js
@@ -0,0 +1,15 @@
'use strict';

const {
run
} = require('madrun');

module.exports = {
"test": () => 'tape \'test/*.js\'',
"watch:test": () => 'nodemon -w lib -w test -x "npm test"',
"lint": () => 'putout lib test madrun.js',
"fix:lint": () => run('lint', '--fix'),
"coverage": () => 'nyc npm test',
"report": () => 'nyc report --reporter=text-lcov | coveralls'
};

13 changes: 8 additions & 5 deletions package.json
Expand Up @@ -13,11 +13,11 @@
"url": "git://github.com/coderaiser/supertape.git"
},
"scripts": {
"test": "tape 'test/*.js'",
"watch:test": "nodemon -w lib -w test -x \"npm test\"",
"lint": "eslint lib test",
"coverage": "nyc npm test",
"report": "nyc report --reporter=text-lcov | coveralls"
"test": "madrun test",
"watch:test": "madrun watch:test",
"lint": "madrun lint",
"coverage": "madrun coverage",
"report": "madrun report"
},
"dependencies": {
"deep-equal": "^1.0.1",
Expand All @@ -40,9 +40,12 @@
"@cloudcmd/stub": "^2.0.0",
"coveralls": "^3.0.0",
"eslint": "^6.2.2",
"eslint-plugin-putout": "^2.0.0",
"madrun": "^2.5.0",
"mock-require": "^3.0.2",
"nodemon": "^1.14.12",
"nyc": "^14.1.1",
"putout": "^5.8.0",
"redrun": "^7.0.2"
},
"license": "MIT",
Expand Down

0 comments on commit 0515758

Please sign in to comment.