mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 19:43:22 +00:00
Remove eslint from project generation to gain speed and keep node compat
This commit is contained in:
parent
0367a55751
commit
c0683cad2f
@ -100,8 +100,8 @@ module.exports = async function createProject(
|
|||||||
error: error.stderr.slice(-1024),
|
error: error.stderr.slice(-1024),
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`${chalk.red('Error')} while installing dependencies:`);
|
console.error(`${chalk.red('Error')} while installing dependencies:`);
|
||||||
console.log(error.stderr);
|
console.error(error.stderr);
|
||||||
|
|
||||||
await captureStderr('didNotInstallProjectDependencies', error);
|
await captureStderr('didNotInstallProjectDependencies', error);
|
||||||
|
|
||||||
|
@ -24,18 +24,11 @@ module.exports = opts => {
|
|||||||
develop: 'strapi develop',
|
develop: 'strapi develop',
|
||||||
start: 'strapi start',
|
start: 'strapi start',
|
||||||
build: 'strapi build',
|
build: 'strapi build',
|
||||||
strapi: 'strapi', // Allow to use `npm run strapi` CLI,
|
strapi: 'strapi',
|
||||||
lint: 'eslint .',
|
|
||||||
},
|
|
||||||
devDependencies: {
|
|
||||||
'babel-eslint': '^10.0.0',
|
|
||||||
eslint: '^6.3.0',
|
|
||||||
'eslint-config-airbnb': '^18.0.0',
|
|
||||||
'eslint-plugin-import': '^2.18.0',
|
|
||||||
'eslint-plugin-react': '^7.14.0',
|
|
||||||
},
|
},
|
||||||
|
devDependencies: {},
|
||||||
dependencies: Object.assign(
|
dependencies: Object.assign(
|
||||||
{ lodash: '^4.17.5' },
|
{},
|
||||||
strapiDependencies.reduce((acc, key) => {
|
strapiDependencies.reduce((acc, key) => {
|
||||||
acc[key] = strapiVersion;
|
acc[key] = strapiVersion;
|
||||||
return acc;
|
return acc;
|
||||||
|
@ -5,9 +5,9 @@ module.exports = function checkBeforeInstall() {
|
|||||||
var semver = currentNodeVersion.split('.');
|
var semver = currentNodeVersion.split('.');
|
||||||
var major = semver[0];
|
var major = semver[0];
|
||||||
|
|
||||||
if (major < 10 || major == 11) {
|
if (major < 10) {
|
||||||
console.error(`You are running Node ${currentNodeVersion}`);
|
console.error(`You are running Node ${currentNodeVersion}`);
|
||||||
console.error('Strapi requires Node 10 or Node 12 and higher.');
|
console.error('Strapi requires Node 10 and higher.');
|
||||||
console.error('Please make sure to use the right version of Node.');
|
console.error('Please make sure to use the right version of Node.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user