From cd3b3b5755e708e0c7ce10d55c5bec8897b4a7d6 Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Sun, 6 Dec 2015 20:53:49 +0100 Subject: [PATCH] clean workspace on use-figwheel command, otherwise require_img macro is not recompiled and might be outdated. --- re-natal.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/re-natal.coffee b/re-natal.coffee index d3e6c54..319b735 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -389,6 +389,9 @@ generateDevScripts = (devHost) -> projName = readConfig().name projNameHyph = projName.replace(camelRx, '$1-$2').toLowerCase() + log 'Cleaning...' + exec 'lein clean' + fs.writeFileSync 'index.ios.js', "require('figwheel-bridge').start('" + projName + "','ios', '" + devHost + "');" log 'index.ios.js was regenerated' fs.writeFileSync 'index.android.js', "require('figwheel-bridge').start('" + projName + "','android', '" + devHost + "');"