Skip to content

Commit

Permalink
feat(init): generate README
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed May 28, 2019
1 parent 25ab7e6 commit c090b17
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/generators/init-generator.ts
Expand Up @@ -291,6 +291,13 @@ export default class InitGenerator extends Generator {
);
}

// Generate README
this.fs.copyTpl(
path.resolve(__dirname, "./templates/README.md"),
this.destinationPath("README.md")
);

// Genrate tsconfig
if (this.langType === LangType.Typescript) {
const tsConfigTemplatePath = "./templates/tsconfig.json.js";
this.fs.extendJSON(this.destinationPath("tsconfig.json"), require(tsConfigTemplatePath));
Expand Down
15 changes: 15 additions & 0 deletions packages/generators/templates/README.md
@@ -0,0 +1,15 @@
# 🚀 Welcome to your new awesome project!

This project has been created using **webpack scaffold**, you can now run

```
npm run build
```

or

```
yarn build
```

to bundle your application

0 comments on commit c090b17

Please sign in to comment.