Skip to content

Commit

Permalink
feat(generator): create .npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed May 17, 2017
1 parent 62cb38d commit fc290c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export default class extends Generator {
this.templatePath('gitignore'),
this.destinationPath('.gitignore')
)

this.fs.copy(
this.templatePath('npmignore'),
this.destinationPath('.npmignore')
)
}

install() {
Expand Down
1 change: 1 addition & 0 deletions src/app/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('generator:app', () => {
'CODE_OF_CONDUCT.md',
'.editorconfig',
'.gitignore',
'.npmignore',
])
})
describe('CODE_OF_CONDUCT.md', () => {
Expand Down
9 changes: 9 additions & 0 deletions src/app/templates/npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.babelrc
.editorconfig
.esdoc.json
.travis.yml
yarn.lock
node_modules/
src/
types/*
!types/index.d.ts

0 comments on commit fc290c3

Please sign in to comment.