update .gitignore excluding generated files
- env/dev - development only files regenerated by re-natal - index.*.js - figwheel-server.log
This commit is contained in:
parent
1fd4dfc5d6
commit
3cf752f257
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue