lib/jets/builders/code_builder.rb
# Move the node modules to the tmp build folder to speed up project copying.
# A little bit risky because a ctrl-c in the middle of the project copying
# results in a missing node_modules but user can easily rebuild that.
#
# Tesing shows 6.623413 vs 0.027754 speed improvement.
Move the node modules to the tmp build folder to speed up project copying.
A little bit risky because a ctrl-c in the middle of the project copying
results in a missing node_modules but user can easily rebuild that.


Move the node modules to the tmp build folder to speed up project copying . A little bit risky because a ctrl - c in the middle of the project copying results in a missing node_modules but user can easily rebuild that .
def move_node_modules(source_folder, dest_folder)
      source = "#{source_folder}/node_modules"
      dest = "#{dest_folder}/node_modules"
      if File.exist?(source)
        FileUtils.mv(source, dest)
      end
    end
def move_node_modules ( source_folder , dest_folder ) source = "#{source_folder}/node_modules" dest = "#{dest_folder}/node_modules" if File . exist? ( source ) FileUtils . mv ( source , dest ) end end
Move the node modules to the tmp build folder to speed up project copying.
Move the node modules to the tmp build folder to speed up project copying .
source_folder
<not_specific>
dest_folder
<not_specific>