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