Skip to content

Commit

Permalink
add target/ to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
drapanjanas committed Jan 29, 2016
1 parent 33a38b7 commit 4730b9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ copyFigwheelBridge = (projNameUs) ->
edit "figwheel-bridge.js", [[projNameUsRx, projNameUs]]

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

patchReactNativePackager = () ->
Expand Down Expand Up @@ -524,6 +524,9 @@ doUpgrade = (config) ->
log 'upgraded .re-natal'

edit '.gitignore', [[/^\s*env\/dev\s*$/m, ""]]
gignore = readFile '.gitignore'
if (!gignore.match /^\s*target\/\s*$/m)
fs.appendFileSync(".gitignore", "\ntarget/\n")
log 'upgraded .gitignore'

useComponent = (name) ->
Expand Down

0 comments on commit 4730b9e

Please sign in to comment.