Improve dev logging when patching RN packager

This commit is contained in:
Mike Fikes 2017-07-21 08:48:16 -04:00
parent 7a04012acd
commit 942871af47
No known key found for this signature in database
GPG Key ID: D3F44FFC0D945679

View File

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