appmake 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/appmake.rb +16 -0
- data/lib/appmake/version.rb +1 -1
- metadata +1 -1
data/lib/appmake.rb
CHANGED
@@ -32,6 +32,7 @@ module Appmake
|
|
32
32
|
empty_directory "public"
|
33
33
|
empty_directory "public/css"
|
34
34
|
empty_directory "public/js"
|
35
|
+
empty_directory "public/img"
|
35
36
|
template "templates/public/index.html.tt", "public/index.html"
|
36
37
|
|
37
38
|
Listeners::Css.compile
|
@@ -47,5 +48,20 @@ module Appmake
|
|
47
48
|
Listeners::Tpl.listen(false)
|
48
49
|
Listeners::Js.listen(true)
|
49
50
|
end
|
51
|
+
|
52
|
+
desc "install", "install various libs"
|
53
|
+
def install(name, version)
|
54
|
+
if name == "jquery"
|
55
|
+
system("curl http://code.jquery.com/jquery-#{version}.min.js -o public/jquery-#{version}.min.js")
|
56
|
+
elsif name == "underscore"
|
57
|
+
system("curl http://underscorejs.org/underscore-min.js -o public/underscore.min.js")
|
58
|
+
elsif name == "backbone"
|
59
|
+
system("curl http://backbonejs.org/backbonejs-min.js -o public/backbonejs.min.js")
|
60
|
+
elsif name == "bootstrap"
|
61
|
+
system("curl http://twitter.github.com/bootstrap/assets/bootstrap.zip -o public/bootstrap.zip && cd public && unzip bootstrap.zip && mv bootstrap/js/bootstrap.min.js js/ && mv bootstrap/css/bootstrap.min.css css/ && mv bootstrap/css/bootstrap-responsive.min.css css/ && mv bootstrap/img/* img/ && rm -rf bootstrap && rm bootstrap.zip")
|
62
|
+
else
|
63
|
+
abort "error: unsupported install: #{name}"
|
64
|
+
end
|
65
|
+
end
|
50
66
|
end
|
51
67
|
end
|
data/lib/appmake/version.rb
CHANGED