add target/ to .gitignore
This commit is contained in:
parent
33a38b7c73
commit
4730b9e3c5
|
@ -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) ->
|
||||
|
|
Loading…
Reference in New Issue