-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.madrun.js
More file actions
24 lines (22 loc) · 854 Bytes
/
.madrun.js
File metadata and controls
24 lines (22 loc) · 854 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
import {run, cutEnv} from 'madrun';
const env = {
NODE_OPTIONS: '"--import supertape/css"',
};
export default {
'watch': () => 'nodemon --watch lib --exec',
'watch:client': () => run('compile:client', '--watch'),
'watch:test': () => run('watch', 'npm test'),
'watch:lint': async () => await run('watch', `'npm run lint'`),
'watch:lint:js': () => run('watch', '"run lint:js"'),
'watch:coverage': () => run('watch', 'redrun coverage'),
'coverage': async () => [env, `c8 ${await cutEnv('test')}`],
'report': () => 'c8 report --reporter=lcov',
'lint': () => 'putout .',
'fix:lint': async () => await run('lint', '--fix'),
'test': () => [env, `tape 'lib/**/*.spec.js'`],
'test:update': async () => [
await cutEnv('redrun test'), {
...env,
UPDATE_FIXTURE: 1,
}],
};