Skip to content
This repository was archived by the owner on Jul 19, 2020. It is now read-only.

Commit 23963c2

Browse files
committed
add condition
1 parent d6f0f7d commit 23963c2

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

generators/app/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,12 @@ module.exports = class extends Generator {
440440
this.destinationPath('.editorconfig')
441441
);
442442

443-
this.fs.copy(
443+
this.fs.copyTpl(
444444
this.templatePath('_gitignore'),
445-
this.destinationPath('.gitignore')
445+
this.destinationPath('.gitignore'),
446+
{
447+
pkg: props
448+
}
446449
);
447450

448451
this.fs.copy(
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Package Managers
22
bower_components/
33
node_modules/
4-
5-
# Error Logs
64
*npm-debug.log*
75
yarn-error.log
86

97
# Yeoman
108
.yo-rc.json
119

10+
<% if (pkg.buildScript === 'postinstall') { %>
1211
# Compiled Source
1312
lib/
13+
<% } %>

0 commit comments

Comments
 (0)