-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.madrun.js
More file actions
25 lines (22 loc) · 912 Bytes
/
.madrun.js
File metadata and controls
25 lines (22 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {defineEnv} from 'supertape/env';
import {run, cutEnv} from './lib/madrun.js';
const noop = () => {};
const env = defineEnv({
progressBarMin: 20,
});
export default {
'lint': () => 'putout .',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'test': () => [env, `tape 'test/**/*.js' '{lib,bin}/**/*.spec.{js,mjs}'`],
'watch:test': async () => await run('watcher', await cutEnv('test')),
'watch:tape': () => 'nodemon -w test -w lib --exec tape',
'watch:lint': async () => await run('watcher', await run('lint')),
'watcher': () => 'nodemon -w test -w lib -w bin --exec',
'coverage': async () => [`c8 ${await cutEnv('test')}`, env],
'report': () => 'c8 report --reporter=lcov',
'postpublish': () => 'npm i -g',
'hello': noop,
'prepare': () => 'echo "> prepare"',
};