Skip to content

Commit

Permalink
chore: madrun
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 11, 2024
1 parent 2e28d2e commit 36750dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .madrun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import {run, cutEnv} from 'madrun';
const env = {};

export default {
//'wisdom': () => run(['lint', 'coverage', 'test:dts']),
'wisdom': () => run(['lint', 'coverage', 'test:dts']),
'test': () => [env, `tape 'lib/**/*.spec.js' test/*.js 'rules/**/*.spec.js'`],
'test:dts': () => 'check-dts test/*.ts',
'watch:test': async () => [env, `nodemon -w lib -w test -x ${await cutEnv('test')}`],
'lint': () => `putout .`,
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'lint': () => run('lint:*'),
'lint:redlint': () => 'redlint scan',
'lint:putout': () => 'putout .',
'fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('fix:lint:*'),
'fix:lint:redlint': () => 'redlint fix',
'fix:lint:putout': () => run('lint:putout', '--fix'),
'coverage': async () => [env, `c8 ${await cutEnv('test')}`],
'coverage:html': async () => [env, `c8 --reporter=lcov ${await cutEnv('test')}`],
'report': () => 'c8 report --reporter=lcov',
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@
"url": "git://github.com/putoutjs/printer.git"
},
"scripts": {
"wisdom": "madrun wisdom",
"test": "madrun test",
"test:dts": "madrun test:dts",
"watch:test": "madrun watch:test",
"lint": "madrun lint",
"lint:redlint": "madrun lint:redlint",
"lint:putout": "madrun lint:putout",
"fresh:lint": "madrun fresh:lint",
"lint:fresh": "madrun lint:fresh",
"fix:lint": "madrun fix:lint",
"fix:lint:putout": "madrun fix:lint:putout",
"fix:lint:redlint": "madrun fix:lint:redlint",
"coverage": "madrun coverage",
"coverage:html": "madrun coverage:html",
"report": "madrun report"
Expand Down Expand Up @@ -66,6 +71,7 @@
"montag": "^1.0.0",
"nodemon": "^3.0.1",
"putout": "^36.0.0",
"redlint": "^3.16.0",
"samadhi": "^2.8.0",
"supertape": "^10.0.0",
"try-catch": "^3.0.0",
Expand Down

0 comments on commit 36750dc

Please sign in to comment.