don't initialize index files
This commit is contained in:
parent
5a6c874425
commit
7a563862af
@ -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 };
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user