chore: cloudcmd: lint

This commit is contained in:
coderaiser 2023-01-30 16:06:32 +02:00
parent bdddc5752d
commit 8e25a02568
4 changed files with 9 additions and 1 deletions

View file

@ -57,6 +57,7 @@ export default {
'watch:test:server': async () => `nodemon -w client -w test/client -x ${await run('test:server')}`,
'watch:coverage': async () => [testEnv, `nodemon -w server -w test -w common -x ${await cutEnv('coverage')}`],
'build': async () => run('6to5:*'),
'build:dev': async () => run('build:client:dev'),
'build:client': () => run('6to5:client'),
'build:client:dev': () => run('6to5:client:dev'),
'heroku-postbuild': () => run('6to5:client'),

View file

@ -8,6 +8,9 @@
"app.json",
"fontello.json"
],
"rules": {
"webpack/apply-externals": "off"
},
"match": {
"base64": {
"convert-typeof-to-is-type": "off"

View file

@ -116,7 +116,7 @@ module.exports = {
},
};
function externals({request}, fn) {
function externals(context, request, fn) {
if (!isDev)
return fn();

View file

@ -48,6 +48,7 @@
"build:start:dev": "madrun build:start:dev",
"lint:all": "madrun lint:all",
"lint": "madrun lint",
"lint:progress": "madrun lint:progress",
"watch:lint": "madrun watch:lint",
"fresh:lint": "madrun fresh:lint",
"lint:fresh": "madrun lint:fresh",
@ -65,6 +66,8 @@
"6to5": "madrun 6to5",
"6to5:client": "madrun 6to5:client",
"6to5:client:dev": "madrun 6to5:client:dev",
"pre6to5:client": "madrun pre6to5:client",
"pre6to5:client:dev": "madrun pre6to5:client:dev",
"watch:client": "madrun watch:client",
"watch:client:dev": "madrun watch:client:dev",
"watch:server": "madrun watch:server",
@ -73,6 +76,7 @@
"watch:test:server": "madrun watch:test:server",
"watch:coverage": "madrun watch:coverage",
"build": "madrun build",
"build:dev": "madrun build:dev",
"build:client": "madrun build:client",
"build:client:dev": "madrun build:client:dev",
"heroku-postbuild": "madrun heroku-postbuild"