Skip to content

Commit c9f05a2

Browse files
committed
feat: add .gitignore config for init app
1 parent 732c09d commit c9f05a2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

commands/init.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,21 @@ cli-tool make test ./commands/
7171
`);
7272

7373
// generate other files
74-
await _write(path.join(output, '.gitignore'), `node_modules/
74+
await _write(path.join(output, '.gitignore'), `package-lock.json
75+
pnpm-lock.yaml
76+
node_modules/
7577
runtime/
76-
package-lock.json`);
78+
79+
.idea/
80+
.vscode/
81+
82+
.appveyor.yml
83+
.github/
84+
85+
.nyc_output/
86+
nyc.config.js
87+
coverage/
88+
`);
7789
await _write(path.join(output, '.eslintrc'), await _read(path.join(__dirname, '../', '.eslintrc')));
7890

7991
printer.print('-'.repeat(25).input).println();

0 commit comments

Comments
 (0)