bin/spinebox in spinebox-0.0.2 vs bin/spinebox in spinebox-0.0.3
- old
+ new
@@ -18,10 +18,16 @@
# New application
on "new APP", "Create a new APP", :if => proc { ['new', 'n'].include?(ARGV.first) } do
ARGV.shift
Spinebox::Generator.new(ARGV.first)
- puts ">> Created new spinebox in './#{ARGV.first}'. Let's go!"
+ exit(0)
+ end
+
+ # Compile
+ on "compile, precompile", "Compile files to the public dir", :if => proc { ['compile', 'precompile'].include?(ARGV.first) } do
+ Spinebox.boot!
+ Spinebox::Compiler.compile
exit(0)
end
# Run server
on "s, server", "Run the development server", :if => proc { ['server', 's'].include?(ARGV.first) } do
\ No newline at end of file