Skip to content

Commit

Permalink
feat(generator): create .babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed May 17, 2017
1 parent 7eabfe7 commit e34de96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export default class extends Generator {
this.templatePath('esdoc.json'),
this.destinationPath('.esdoc.json')
)

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

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 @@ -25,6 +25,7 @@ describe('generator:app', () => {
'package.json',
'CODE_OF_CONDUCT.md',
'LICENSE.md',
'.babelrc',
'.editorconfig',
'.gitignore',
'.npmignore',
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["env", { "targets": { "node": 4 } }]]
}

0 comments on commit e34de96

Please sign in to comment.