-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.madrun.mjs
28 lines (26 loc) · 1.2 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
24
25
26
27
28
import {run} from 'madrun';
export default {
'watch': () => 'nodemon --watch lib --watch test --exec',
'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': () => 'c8 npm test',
'report': () => 'c8 report --reporter=lcov',
'lint': () => 'putout .',
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'test': () => `tape --no-check-scopes 'test/**/*.js'`,
'test:update': () => 'UPDATE_FIXTURE=1 npm test',
'build': () => 'webpack --progress --mode production',
'wisdom': () => run('build'),
'wisdom:done': () => run('upload:*'),
'upload:main': () => upload('dist/smalltalk.min.js'),
'upload:main:map': () => upload('dist/smalltalk.min.js.map'),
'upload:native': () => upload('dist/smalltalk.native.min.js'),
'upload:native:map': () => upload('dist/smalltalk.native.min.js.map'),
};
function upload(name) {
return 'putasset -o coderaiser -r smalltalk -t v`version`' + ` -f ${name}`;
}