-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.madrun.js
More file actions
18 lines (16 loc) 路 672 Bytes
/
Copy path.madrun.js
File metadata and controls
18 lines (16 loc) 路 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {run, cutEnv} from 'madrun';
const env = {
PUTOUT_INSTRUMENT: 1,
};
export default {
'wisdom': () => run(['lint', 'coverage']),
'test': () => [env, `tape 'lib/**/*.spec.js' test/*.js`],
'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'),
'coverage': async () => [env, `c8 ${await cutEnv('test')}`],
'coverage:html': async () => [env, `c8 --reporter=lcov ${await cutEnv('test')}`],
'report': () => 'c8 report --reporter=lcov',
};