Skip to content

Commit

Permalink
remove command enable-source-maps
Browse files Browse the repository at this point in the history
  • Loading branch information
drapanjanas committed May 5, 2019
1 parent 158c3e7 commit 68f16c4
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -374,26 +374,6 @@ updateGitIgnore = (platforms) ->

fs.appendFileSync(".gitignore", "\n# Figwheel\n#\nfigwheel_server.log")

findPackagerFileToPatch = () ->
files = [
"node_modules/metro/src/Server/index.js",
"node_modules/metro-bundler/src/Server/index.js",
"node_modules/metro-bundler/build/Server/index.js",
"node_modules/react-native/packager/src/Server/index.js"]
fileToPatch = files[0];
for f in files
if fs.existsSync(f)
fileToPatch = f
fileToPatch

patchReactNativePackager = () ->
installDeps()
fileToPatch = findPackagerFileToPatch()
log "Patching file #{fileToPatch} to serve *.map files."
edit fileToPatch,
[[/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"
filePath = filePath.replace(/-/g, "_")
Expand Down Expand Up @@ -1009,11 +989,6 @@ cli.command 'require-all'
.action () ->
inferComponents()

cli.command 'enable-source-maps'
.description 'patches RN packager to server *.map files from filesystem, so that chrome can download them.'
.action () ->
patchReactNativePackager()

cli.command 'set-figwheel-port <port>'
.description 'configures the port of figwheel server (port 3449 is default)'
.option '-g --global', 'use global .re-natal config instead of .re-natal.local'
Expand Down

0 comments on commit 68f16c4

Please sign in to comment.