update .gitignore excluding generated files

- env/dev - development only files regenerated by re-natal
- index.*.js
- figwheel-server.log
This commit is contained in:
Artur Girenko 2015-12-31 18:57:50 +01:00
parent 1fd4dfc5d6
commit 3cf752f257
1 changed files with 6 additions and 0 deletions

View File

@ -217,6 +217,10 @@ copyFigwheelBridge = (projNameUs) ->
exec "cp #{resources}figwheel-bridge.js ."
edit "figwheel-bridge.js", [[projNameUsRx, projNameUs]]
updateGitIgnore = () ->
fs.appendFileSync(".gitignore", "\n# Generated by re-natal\n#\nenv/dev\nindex.android.js\nindex.ios.js")
fs.appendFileSync(".gitignore", "\n# Figwheel\n#\nfigwheel_server.log")
init = (projName) ->
if projName.toLowerCase() is 'react' or !projName.match validNameRx
logErr 'Invalid project name. Use an alphanumeric CamelCase name.'
@ -302,6 +306,8 @@ init = (projName) ->
\"require('react-native/local-cli/cli').init('.', '#{projName}')\"
"
updateGitIgnore()
generateConfig projName
copyFigwheelBridge(projNameUs)