mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
e6c1d928ec
commit
27ddaf726d
2 changed files with 15 additions and 9 deletions
11
.madrun.mjs
11
.madrun.mjs
|
|
@ -13,19 +13,12 @@ export default {
|
|||
'start:dev': async () => `NODE_ENV=development ${await run('start')}`,
|
||||
'build:start': () => run(['build:client', 'start']),
|
||||
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
|
||||
'lint:all': () => run(['lint', 'lint:css', 'spell']),
|
||||
'lint:all': () => run(['lint', 'spell']),
|
||||
'lint': () => 'putout .',
|
||||
'spell': () => 'yaspeller .',
|
||||
'fix:lint': () => run('lint', '--fix'),
|
||||
'lint:stream': () => run('lint:base', '-f stream'),
|
||||
|
||||
'test:base': () => {
|
||||
const cmd = 'tape';
|
||||
const names = `'test/**/*.js' '{client,static,common,server}/**/*.spec.js'`;
|
||||
|
||||
return `${cmd} ${names}`;
|
||||
},
|
||||
|
||||
'test:base': () => `tape 'test/**/*.js' '{client,static,common,server}/**/*.spec.js' -f fail`,
|
||||
'test': async () => `${env} ${await run('test:base')}`,
|
||||
'test:client': () => `tape 'test/client/**/*.js'`,
|
||||
'test:server': () => `tape 'test/**/*.js' 'server/**/*.spec.js' 'common/**/*.spec.js'`,
|
||||
|
|
|
|||
13
.nycrc.json
Normal file
13
.nycrc.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"check-coverage": false,
|
||||
"all": false,
|
||||
"exclude": [
|
||||
"**/*.spec.js",
|
||||
"**/fixture",
|
||||
"**/*.*.js"
|
||||
],
|
||||
"branches": 100,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"statements": 100
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue