Skip to content

Commit bda8bec

Browse files
committed
feat(generators): update writing() to copy .env.example .env file
1 parent e4406a0 commit bda8bec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

generators/app/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ module.exports = class extends Generator {
7272
this.destinationPath(),
7373
this.props,
7474
);
75+
76+
this.fs.copy(
77+
this.destinationPath('.env.example'),
78+
this.destinationPath('.env'),
79+
);
7580
}
7681

7782
install() {

generators/app/templates/src/components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface RouteOptions {
99

1010
const path = '/';
1111

12-
const routes = (_: RouteOptions) => {
12+
const routes = (_: RouteOptions): Router => {
1313
const router = Router();
1414

1515
// TODO: register components to router

0 commit comments

Comments
 (0)