@corva/create-app 0.48.0-3 → 0.48.0-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/package.js +2 -0
- package/lib/main.js +7 -1
- package/package.json +1 -1
- package/common/node/.eslintrc.js +0 -1
- package/common/node/.prettierrc +0 -1
package/lib/constants/package.js
CHANGED
package/lib/main.js
CHANGED
|
@@ -438,7 +438,13 @@ async function addTemplate(root, manifest, runtime) {
|
|
|
438
438
|
// We can't have .gitignore file in our templates.
|
|
439
439
|
// It's missing when @corva/create-app is installed.
|
|
440
440
|
// That's why we manually rename gitignore to .gitignore after copying template
|
|
441
|
-
|
|
441
|
+
const targetGitignore = path.join(root, '.gitignore');
|
|
442
|
+
|
|
443
|
+
fs.renameSync(path.join(root, 'gitignore'), targetGitignore);
|
|
444
|
+
|
|
445
|
+
if (runtime.language === 'typescript' && manifest.isNode()) {
|
|
446
|
+
await fs.appendFile(targetGitignore, '\n**/*.js\n');
|
|
447
|
+
}
|
|
442
448
|
|
|
443
449
|
logger.log(chalk.green('Done: copying app template!'));
|
|
444
450
|
}
|
package/package.json
CHANGED
package/common/node/.eslintrc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { extends: '@corva/eslint-config-node' };
|
package/common/node/.prettierrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"@corva/eslint-config-node/prettier"
|