Skip to content

Commit c090b17

Browse files
committedMay 28, 2019
feat(init): generate README
1 parent 25ab7e6 commit c090b17

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
 

‎packages/generators/init-generator.ts

+7
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@ export default class InitGenerator extends Generator {
291291
);
292292
}
293293

294+
// Generate README
295+
this.fs.copyTpl(
296+
path.resolve(__dirname, "./templates/README.md"),
297+
this.destinationPath("README.md")
298+
);
299+
300+
// Genrate tsconfig
294301
if (this.langType === LangType.Typescript) {
295302
const tsConfigTemplatePath = "./templates/tsconfig.json.js";
296303
this.fs.extendJSON(this.destinationPath("tsconfig.json"), require(tsConfigTemplatePath));
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# 🚀 Welcome to your new awesome project!
2+
3+
This project has been created using **webpack scaffold**, you can now run
4+
5+
```
6+
npm run build
7+
```
8+
9+
or
10+
11+
```
12+
yarn build
13+
```
14+
15+
to bundle your application

0 commit comments

Comments
 (0)
Please sign in to comment.