bin/sv in smallvictories-0.0.14 vs bin/sv in smallvictories-0.0.15
- old
+ new
@@ -7,11 +7,13 @@
Usage: sv [COMMAND] [OPTIONS]
Commands:
bootstrap, bootstrap FOLDER Setup folder with default files
compile Compile files
+ deploy Minify and copy files to deploy folder
inline Inline CSS in your HTML files
+ minify Minify files for production
watch Watch for changes and compile files
help Prints this help document
version Prints the small victories gem version
Options:
@@ -36,10 +38,17 @@
compiler.compile_css
compiler.compile_js
compiler.compile_html
end
+def deploy folder=nil
+ config = SmallVictories::Configuration.new
+ deployer = SmallVictories::Deployer.new(config: config)
+ minify
+ deployer.copy folder
+end
+
def inline
config = SmallVictories::Configuration.new
compiler = SmallVictories::Compiler.new(config: config)
compiler.compile_css
compiler.compile_js
@@ -74,9 +83,11 @@
puts help
when 'bootstrap'
bootstrap ARGV[1]
when 'compile'
compile
+when 'deploy'
+ deploy ARGV[1]
when 'inline'
inline
when 'watch'
watch
else