Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit fd2f57a

Browse files
committed
fix(srcgen): Add ".gitignore" file to template "web-app-empty"
1 parent ad005d7 commit fd2f57a

6 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/generators/app-empty.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export class AppEmptyGenerator extends Base {
3636
'classPrefix': _.upperFirst(_.camelCase(appName)),
3737
'title': _.upperFirst(_.words(appName).join(' '))
3838
},
39-
'spec': 'spec'
39+
'spec': 'spec',
40+
'gitignore': ''
4041
}
4142
);
4243
return await this.srcgen(
File renamed without changes.

srcgen/web-app-empty/README!.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
<prompt name="app.classPrefix" message="Application class prefix">AppName</prompt>
55
<prompt name="app.title" message="Application title">Frame title</prompt>
66
<prompt name="spec" message="No change">spec</prompt>
7+
<prompt name="gitignore" message="No change"></prompt>
78
```

test/fixture/apps/app1/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html><html><head>
2-
<meta name="version" content="1.8.7">
2+
<meta name="version" content="2.0.0">
33
</head>
44
<body>
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "@test/app3",
3-
"version": "1.8.7"
3+
"version": "2.0.0"
44
}

test/fixture/libs/lib1/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@test/lib1",
3-
"version": "1.8.7",
3+
"version": "2.0.0",
44
"peerDependencies": {
55
"@angular/common": "5.2.9",
66
"@angular/compiler": "5.2.9",

0 commit comments

Comments
 (0)