Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/cli/.npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.clang-format
.github
/.gitignore
!/templates/*/*/.gitignore
.travis.yml
appveyor.yml
node_modules
2 changes: 2 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


## Unreleased
* Fix bug with `init` templates and missing `.gitignore` files due to npm
renaming them to `.npmignore` on install of cli.
* Fix `test` bug which broke Windows support relating to path delimeters.
* Change the default value of --module-resolution to "node".
* Polymer `lint` and `analyze`, when run without files, will look for sources
Expand Down
10 changes: 6 additions & 4 deletions packages/cli/src/init/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ export function createApplicationGenerator(templateName: string):
`test/${elementName}/${elementName}_test.html`,
this.props);

this.fs.copyTpl(
this.templatePath('.gitignore'), '.gitignore', this.props);
this.fs.move(
this.destinationPath('gitignore'),
this.destinationPath('.gitignore'));
}

install() {
Expand Down Expand Up @@ -158,8 +159,9 @@ export function createApplicationGenerator(templateName: string):
`test/${elementName}/${elementName}_test.html`,
this.props);

this.fs.copyTpl(
this.templatePath('.gitignore'), '.gitignore', this.props);
this.fs.move(
this.destinationPath('gitignore'),
this.destinationPath('.gitignore'));
}

install() {
Expand Down
10 changes: 6 additions & 4 deletions packages/cli/src/init/element/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ export function createElementGenerator(templateName: string):
this.fs.copyTpl(
this.templatePath('test/index.html'), `test/index.html`, this.props);

this.fs.copyTpl(
this.templatePath('.gitignore'), '.gitignore', this.props);
this.fs.move(
this.destinationPath('gitignore'),
this.destinationPath('.gitignore'));
}

install() {
Expand Down Expand Up @@ -160,8 +161,9 @@ export function createElementGenerator(templateName: string):
this.fs.copyTpl(
this.templatePath('test/index.html'), `test/index.html`, this.props);

this.fs.copyTpl(
this.templatePath('.gitignore'), '.gitignore', this.props);
this.fs.move(
this.destinationPath('gitignore'),
this.destinationPath('.gitignore'));
}

install() {
Expand Down