Skip to content

Commit

Permalink
add default .babelrc to RN project generator
Browse files Browse the repository at this point in the history
  • Loading branch information
namuol committed May 29, 2016
1 parent 5571794 commit 59e8721
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions local-cli/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ module.exports = yeoman.generators.NamedBase.extend({
this.templatePath('_buckconfig'),
this.destinationPath('.buckconfig')
);
this.fs.copy(
this.templatePath('_babelrc'),
this.destinationPath('.babelrc')
);
},

writing: function() {
Expand Down
3 changes: 3 additions & 0 deletions local-cli/generator/templates/_babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}

0 comments on commit 59e8721

Please sign in to comment.