appmake 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/appmake/listeners/css.rb +3 -1
- data/lib/appmake/listeners/js.rb +8 -1
- data/lib/appmake/listeners/tpl.rb +1 -1
- data/lib/appmake/version.rb +1 -1
- metadata +1 -1
@@ -18,11 +18,13 @@ module Appmake
|
|
18
18
|
|
19
19
|
def self.compile
|
20
20
|
Basic.new.say_status :compile, "CSS"
|
21
|
+
|
21
22
|
Dir.glob "css/*" do |f|
|
22
23
|
name = f.split("/").last
|
23
24
|
|
24
25
|
if name[0] == name[0].upcase
|
25
|
-
|
26
|
+
new_name = name.gsub "scss", "css"
|
27
|
+
system "bundle exec sass css/#{name} public/#{new_name}"
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
data/lib/appmake/listeners/js.rb
CHANGED
@@ -17,7 +17,14 @@ module Appmake
|
|
17
17
|
|
18
18
|
def self.compile
|
19
19
|
Basic.new.say_status :compile, "JS"
|
20
|
-
|
20
|
+
|
21
|
+
Dir.glob "js/*" do |f|
|
22
|
+
name = f.split("/").last
|
23
|
+
|
24
|
+
if name[0] == name[0].upcase
|
25
|
+
system "webmake js/#{name} public/#{name}"
|
26
|
+
end
|
27
|
+
end
|
21
28
|
end
|
22
29
|
end
|
23
30
|
end
|
data/lib/appmake/version.rb
CHANGED