add target/ to .gitignore

This commit is contained in:
Artur Girenko 2016-01-29 21:27:34 +01:00
parent 33a38b7c73
commit 4730b9e3c5
1 changed files with 4 additions and 1 deletions

View File

@ -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 = () ->
@ -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) ->