Skip to content

Commit

Permalink
feat(generator): create .esdoc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed May 17, 2017
1 parent d3a4c45 commit 7eabfe7
Show file tree
Hide file tree
Showing 3 changed files with 10 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 @@ -111,6 +111,11 @@ export default class extends Generator {
this.templatePath('npmignore'),
this.destinationPath('.npmignore')
)

this.fs.copy(
this.templatePath('esdoc.json'),
this.destinationPath('.esdoc.json')
)
}

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 @@ -28,6 +28,7 @@ describe('generator:app', () => {
'.editorconfig',
'.gitignore',
'.npmignore',
'.esdoc.json',
])
})
describe('CODE_OF_CONDUCT.md', () => {
Expand Down
4 changes: 4 additions & 0 deletions src/app/templates/esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "./src",
"destination": "./docs"
}

0 comments on commit 7eabfe7

Please sign in to comment.