From 4730b9e3c523b981b3bf9e4c89ec9c447009dc8f Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Fri, 29 Jan 2016 21:27:34 +0100 Subject: [PATCH] add target/ to .gitignore --- re-natal.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) ->