don't initialize index files

This commit is contained in:
Timo Hocker 2020-04-23 17:07:54 +02:00
parent 5a6c874425
commit 7a563862af
2 changed files with 2 additions and 5 deletions

View File

@ -23,8 +23,6 @@ const gitignore = `/node_modules/
/coverage/
`;
const index = '';
const npmrc = `@scode:registry=https://npm.scode.ovh
`;
@ -41,4 +39,4 @@ const tsconfig = `{
}
`;
export { eslintrc, gitignore, index, npmrc, tsconfig };
export { eslintrc, gitignore, npmrc, tsconfig };

View File

@ -10,7 +10,7 @@ import { Input } from 'enquirer';
import { Snippet } from '../../Snippet';
import { apply_template, modify_json, run_command } from '../../Helper';
import { eslintrc, gitignore, index, npmrc, tsconfig } from './Assets';
import { eslintrc, gitignore, npmrc, tsconfig } from './Assets';
export default class Node implements Snippet {
public async start (): Promise<void> {
@ -27,7 +27,6 @@ export default class Node implements Snippet {
await apply_template (eslintrc, path.join (folder, '.eslintrc.js'));
await apply_template (npmrc, path.join (folder, '.npmrc'));
await apply_template (index, path.join (folder, 'index.js'));
await apply_template (gitignore, path.join (folder, '.gitignore'));
if (use_ts)
await apply_template (tsconfig, path.join (folder, 'tsconfig.json'));