@brainly-gene/tools
Advanced tools
Comparing version 0.2.0-alpha.17 to 0.2.1-alpha.0
{ | ||
"name": "@brainly-gene/tools", | ||
"version": "0.2.0-alpha.17", | ||
"version": "0.2.1-alpha.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "generators": "./generators.json", |
@@ -59,2 +59,5 @@ "use strict"; | ||
} | ||
if (e2e !== false) { | ||
(0, utilities_1.updateCypressTsConfig)(tree, e2eDir); | ||
} | ||
(0, maybeExcludeRewrites_1.maybeExcludeRewrites)(tree, schema); | ||
@@ -65,2 +68,15 @@ if (e2e !== false) { | ||
(0, updateEslint_1.updateEslint)(tree, appDir); | ||
if (e2e !== false) { | ||
(0, devkit_1.updateJson)(tree, (0, devkit_1.joinPathFragments)(e2eDir, './.eslintrc.json'), (eslintConfig) => { | ||
return Object.assign(Object.assign({}, eslintConfig), { overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.js', '*.jsx'], | ||
rules: { | ||
'babel/new-cap': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
}, | ||
}, | ||
] }); | ||
}); | ||
} | ||
yield (0, storybook_configuration_1.default)(tree, { | ||
@@ -67,0 +83,0 @@ name: projectName, |
@@ -22,2 +22,3 @@ "use strict"; | ||
const excludeTestsBoilerplate_1 = require("./utils/excludeTestsBoilerplate"); | ||
const utilities_1 = require("../utilities"); | ||
function default_1(tree, schema) { | ||
@@ -57,3 +58,23 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
if (e2e !== false) { | ||
(0, utilities_1.updateCypressTsConfig)(tree, e2eDir); | ||
} | ||
(0, maybeExcludeRewrites_1.maybeExcludeRewrites)(tree, schema); | ||
if (e2e !== false) { | ||
(0, excludeTestsBoilerplate_1.excludeTestsBoilerplate)(tree); | ||
} | ||
(0, updateEslint_1.updateEslint)(tree, appDir); | ||
if (e2e !== false) { | ||
(0, devkit_1.updateJson)(tree, (0, devkit_1.joinPathFragments)(e2eDir, './.eslintrc.json'), (eslintConfig) => { | ||
return Object.assign(Object.assign({}, eslintConfig), { overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.js', '*.jsx'], | ||
rules: { | ||
'babel/new-cap': 'off', | ||
'import/no-extraneous-dependencies': 'off', | ||
}, | ||
}, | ||
] }); | ||
}); | ||
} | ||
yield (0, storybook_configuration_1.default)(tree, { | ||
@@ -60,0 +81,0 @@ name: projectName, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
840053
11003