-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.madrun.js
23 lines (21 loc) Β· 949 Bytes
/
.madrun.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {run, cutEnv} from 'madrun';
const env = {
SUPERTAPE_CHECK_ASSERTIONS_COUNT: 0,
SUPERTAPE_CHECK_SCOPES: 0,
};
export default {
'lint': () => 'putout .',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'test': () => [env, 'tape test/**/*.js'],
'watch:test': async () => [env, await run('watcher', await cutEnv('test'))],
'watch:tape': () => 'nodemon -w test -w lib --exec tape',
'watch:coverage:base': async () => [env, await run('watcher', `nyc ${await cutEnv('test')}`)],
'watch:coverage:tape': () => run('watcher', 'nyc tape'),
'watch:coverage': async () => [env, await cutEnv('watch:coverage:base')],
'watcher': () => 'nodemon -w test -w lib --exec',
'coverage': async () => [env, `c8 ${await cutEnv('test')}`],
'report': () => 'c8 report --reporter=lcov',
'postpublish': () => 'npm i -g',
};