Skip to content

Commit

Permalink
feature(madrun) add
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 18, 2019
1 parent 3dd7fc1 commit 5a28115
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": [
"@putout",
"plugin:putout/recommended",
"plugin:node/recommended"
],
"plugins": [
"putout",
"node"
]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.*
test

madrun.js

20 changes: 20 additions & 0 deletions madrun.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';

const {
run,
series,
parallel,
} = require('madrun');

module.exports = {
"test": () => 'tape \'test/*.js\'',
"watch:test": () => 'nodemon -w lib -w test -x "npm test"',
"lint": () => run('lint:*'),
"putout": () => 'putout bin lib test',
"lint:bin": () => 'eslint bin --rule \'no-console:0\' bin',
"lint:lib": () => 'eslint lib test/*.js',
"fix:lint": () => run(['putout', 'lint:*'], '--fix'),
"coverage": () => 'nyc npm test',
"report": () => 'nyc report --reporter=text-lcov | coveralls || true'
};

19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,28 @@
"url": "git://github.com/coderaiser/align-spaces.git"
},
"scripts": {
"test": "tape 'test/*.js'",
"watch:test": "nodemon -w lib -w test -x \"npm test\"",
"lint": "redrun lint:*",
"lint:bin": "eslint bin --rule 'no-console:0' bin",
"lint:lib": "eslint lib test/*.js",
"coverage": "nyc npm test",
"report": "nyc report --reporter=text-lcov | coveralls || true"
"test": "madrun test",
"watch:test": "madrun watch:test",
"lint": "madrun lint",
"putout": "madrun putout",
"lint:bin": "madrun lint:bin",
"lint:lib": "madrun lint:lib",
"fix:lint": "madrun fix:lint",
"coverage": "madrun coverage",
"report": "madrun report"
},
"dependencies": {},
"keywords": [
"align-whitespaces"
],
"devDependencies": {
"@putout/eslint-config": "^1.1.0",
"coveralls": "^3.0.0",
"eslint": "^5.6.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-putout": "^1.5.0",
"nodemon": "^1.14.12",
"nyc": "^14.1.1",
"putout": "^4.30.0",
"redrun": "^7.0.2",
"supertape": "^1.2.0",
"try-catch": "^2.0.0"
Expand Down

0 comments on commit 5a28115

Please sign in to comment.