clean workspace on use-figwheel command, otherwise require_img macro is not recompiled and might be outdated.

This commit is contained in:
Artur Girenko 2015-12-06 20:53:49 +01:00
parent 577f7c6954
commit cd3b3b5755
1 changed files with 3 additions and 0 deletions

View File

@ -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 + "');"