bin/scms in scms-3.2.0 vs bin/scms in scms-4.0.0

- old
+ new

@@ -116,21 +116,23 @@ FileUtils.cp_r(Dir["#{File.join(Folders[:assets], "blank-template")}/*"], newWorkingDir) end exit end -monkeyhook = File.join(Folders[:website], "scripts", "air-monkey-hook.js") +monkeyhookDir = File.join(Folders[:website], "scripts") +monkeyhook = File.join(monkeyhookDir, "air-monkey-hook.js") if options[:mode] == "cms" + Dir.mkdir(monkeyhookDir, 755) unless File::directory?(monkeyhookDir) FileUtils.cp(File.join(Folders[:assets], "air-monkey-hook.js"), monkeyhook) else FileUtils.rm(monkeyhook) if File.exist?(monkeyhook) && options[:publish] end -settings = Scms.getsettings(Folders[:config]) +settings = Scms.getSettings(Folders[:config]) Scms.sassall(Folders[:website]) Scms.bundle(settings, Folders[:website]) -Scms.build(Folders[:website], settings, options[:mode]) -Scms.copywebsite(Folders[:website], Folders[:destination]) if Folders[:destination] != '' +Scms.build(Folders[:website], settings, options) +Scms.copyWebsite(Folders[:website], Folders[:destination]) if Folders[:destination] != '' if options[:watch] ScmsWatcher.watch(settings, options, Folders[:config]) sleep unless options[:server] end \ No newline at end of file