Merge pull request #125 from mfikes/master

Improve dev logging when patching RN packager
This commit is contained in:
Artūr Girenko 2017-07-28 08:45:23 +03:00 committed by GitHub
commit e5ab773ad2
1 changed files with 2 additions and 1 deletions

View File

@ -368,9 +368,10 @@ updateGitIgnore = () ->
patchReactNativePackager = () ->
installDeps()
log "Patching react-native packager to serve *.map files"
log "Patching the React Native packager to serve *.map files."
edit "node_modules/metro-bundler/build/Server/index.js",
[[/match.*\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
log "If the React Native packager is running, please restart it."
shimCljsNamespace = (ns) ->
filePath = "src/" + ns.replace(/\./g, "/") + ".cljs"