appmake 0.0.17 → 0.0.18
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 +5 -5
- metadata +1 -1
data/lib/appmake.rb
CHANGED
@@ -31,8 +31,8 @@ class Appmake
|
|
31
31
|
FileUtils.mkdir "js/lib"
|
32
32
|
end
|
33
33
|
|
34
|
-
puts "=> touch /js/
|
35
|
-
FileUtils.touch "js/
|
34
|
+
puts "=> touch /js/app_tpl.js"
|
35
|
+
FileUtils.touch "js/app_tpl.js"
|
36
36
|
|
37
37
|
puts "=> create /js/compile_templates.js"
|
38
38
|
f = File.new("js/compile_templates.js", "w+")
|
@@ -61,7 +61,7 @@ class Appmake
|
|
61
61
|
system("bundle exec sass css/app.scss css/app.css")
|
62
62
|
|
63
63
|
puts "=> rebuilding JS"
|
64
|
-
system("webmake js/
|
64
|
+
system("webmake js/app_tpl.js js/app.js")
|
65
65
|
end
|
66
66
|
|
67
67
|
def self.watch
|
@@ -85,10 +85,10 @@ class Appmake
|
|
85
85
|
|
86
86
|
js_callback = Proc.new do |modified, added, removed|
|
87
87
|
puts "=> rebuilding JS"
|
88
|
-
system("webmake js/
|
88
|
+
system("webmake js/app_tpl.js js/app.js")
|
89
89
|
end
|
90
90
|
|
91
|
-
js_listener = Listen.to "js", :filter => /\.
|
91
|
+
js_listener = Listen.to "js", :filter => /\.js$/
|
92
92
|
js_listener.change(&js_callback)
|
93
93
|
js_listener.start
|
94
94
|
end
|