-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.madrun.js
More file actions
21 lines (18 loc) · 886 Bytes
/
.madrun.js
File metadata and controls
21 lines (18 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict';
const {run} = require('madrun');
module.exports = {
'test': () => `tape 'test/*.js'`,
'test:vscode': () => 'vscode-test',
'watch:test': async () => `nodemon -w lib -w test -x "${await run('test')}"`,
'lint': () => `putout .`,
'fresh:lint': () => run('lint', '--fresh'),
'lint:fresh': () => run('lint', '--fresh'),
'fix:lint': () => run('lint', '--fix'),
'coverage': async () => `c8 ${await run('test')}`,
'patch': () => 'vsce publish patch --allow-star-activation',
'minor': () => 'vsce publish minor --allow-star-activation',
'report': () => 'c8 report --reporter=lcov',
'package': () => 'vsce package --allow-star-activation',
'upload': () => `putasset --filename vscode-putout-${readVersion()}.vsix --tag v${readVersion()} --r vscode-putout -o putoutjs`,
};
const readVersion = () => require('./package').version;