Skip to content

Commit

Permalink
update .gitignore excluding generated files
Browse files Browse the repository at this point in the history
- env/dev - development only files regenerated by re-natal
- index.*.js
- figwheel-server.log
  • Loading branch information
drapanjanas committed Dec 31, 2015
1 parent 1fd4dfc commit 3cf752f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ copyFigwheelBridge = (projNameUs) ->
exec "cp #{resources}figwheel-bridge.js ."
edit "figwheel-bridge.js", [[projNameUsRx, projNameUs]]

updateGitIgnore = () ->
fs.appendFileSync(".gitignore", "\n# Generated by re-natal\n#\nenv/dev\nindex.android.js\nindex.ios.js")
fs.appendFileSync(".gitignore", "\n# Figwheel\n#\nfigwheel_server.log")

init = (projName) ->
if projName.toLowerCase() is 'react' or !projName.match validNameRx
logErr 'Invalid project name. Use an alphanumeric CamelCase name.'
Expand Down Expand Up @@ -302,6 +306,8 @@ init = (projName) ->
\"require('react-native/local-cli/cli').init('.', '#{projName}')\"
"

updateGitIgnore()

generateConfig projName

copyFigwheelBridge(projNameUs)
Expand Down

0 comments on commit 3cf752f

Please sign in to comment.