Add strapi-lint to strapi-utils strapi-generate -api

This commit is contained in:
soupette 2018-05-02 14:08:28 +02:00
parent bb26c6ea8e
commit 18edd24790
4 changed files with 19 additions and 7 deletions

View File

@ -16,6 +16,9 @@
"lodash": "^4.17.4",
"pluralize": "^6.0.0"
},
"devDependencies": {
"strapi-lint": "3.0.0-alpha.12"
},
"scripts": {
"prepublishOnly": "npm prune"
},
@ -43,4 +46,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}

View File

@ -19,6 +19,9 @@
"reportback": "^2.0.1",
"strapi-utils": "3.0.0-alpha.12"
},
"devDependencies": {
"strapi-lint": "3.0.0-alpha.12"
},
"author": {
"name": "Strapi team",
"email": "hi@strapi.io",
@ -43,4 +46,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}

View File

@ -21,6 +21,9 @@
"lodash": "^4.17.4",
"pino": "^4.7.1"
},
"devDependencies": {
"strapi-lint": "3.0.0-alpha.12"
},
"author": {
"email": "hi@strapi.io",
"name": "Strapi team",
@ -45,4 +48,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}

View File

@ -59,19 +59,22 @@ shell.echo('');
// Remove existing binary.
shell.rm('-f', '/usr/local/bin/strapi.js');
shell.cd('packages/strapi-utils');
shell.cd('packages/strapi-lint');
watcher('📦 Linking strapi-lint...', 'npm link');
shell.cd('../strapi-utils');
watcher('', 'npm install ../strapi-lint --no-optional');
watcher('📦 Linking strapi-utils...', 'npm link');
shell.cd('../strapi-generate');
watcher('', 'npm install ../strapi-utils');
watcher('', 'npm install ../strapi-lint --no-optional');
watcher('📦 Linking strapi-generate...', 'npm link');
shell.cd('../strapi-generate-api');
watcher('', 'npm install ../strapi-lint --no-optional');
watcher('📦 Linking strapi-generate-api...', 'npm link');
shell.cd('../strapi-lint');
watcher('📦 Linking strapi-lint...', 'npm link');
shell.cd('../strapi-helper-plugin');
watcher('', 'npm install ../strapi-lint --no-optional');
watcher('📦 Linking strapi-helper-plugin...', 'npm link');