diff --git a/re-natal.coffee b/re-natal.coffee index eb3271e..16e8b3d 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -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) ->