-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.madrun.mjs
23 lines (22 loc) · 1.11 KB
/
.madrun.mjs
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} from 'madrun';
export default {
'start': () => 'node bin/edward package.json',
'start:dev': async () => `NODE_ENV=development ${await run('start')}`,
'lint': () => 'putout .',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'watch:server': () => run('watcher', 'bin/edward.js package.json'),
'build': () => run('build:client*'),
'build:start': () => run(['build:client', 'start']),
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
'prebuild': () => 'rimraf dist*',
'build-progress': () => 'webpack --progress',
'build:client': () => run('build-progress', '--mode production'),
'build:client:dev': async () => `NODE_ENV=development ${await run('build-progress')} --mode development`,
'watcher': () => 'nodemon -w client -w server --exec',
'watch:lint': async () => await run('watcher', await run('lint')),
'watch:client': () => run('build:client', '--watch'),
'watch:client:dev': () => run('build:client:dev', '--watch'),
'wisdom': () => run('build'),
};