-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.madrun.mjs
21 lines (20 loc) · 1002 Bytes
/
.madrun.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {run} from 'madrun';
export default {
'start': () => 'node bin/console',
'start:dev': () => 'NODE_ENV=development npm start',
'build-progress': () => 'webpack --progress',
'build:client': () => run('build-progress', '--mode production'),
'build:client:dev': async () => `NODE_ENV=development ${await run('build-progress', '--mode development')}`,
'build:start': () => run(['build:client', 'start']),
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
'build': () => run('build:client*'),
'wisdom': () => run('build'),
'watcher': () => 'nodemon -w client -w server --exec',
'watch:lint': async () => await run('watcher', `'npm run lint'`),
'watch:client': () => run('build:client', '--watch'),
'watch:client:dev': () => run('build:client:dev', '--watch'),
'lint': () => 'putout .',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
};