appmake 0.0.36 → 0.0.37
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/listeners/css.rb +1 -3
- data/lib/appmake/listeners/js.rb +3 -1
- data/lib/appmake/listeners/tpl.rb +4 -2
- data/lib/appmake/version.rb +1 -1
- metadata +1 -1
data/lib/appmake/listeners/js.rb
CHANGED
@@ -3,6 +3,8 @@ require "listen"
|
|
3
3
|
module Appmake
|
4
4
|
module Listeners
|
5
5
|
class Js
|
6
|
+
include Thor::Shell
|
7
|
+
|
6
8
|
def self.listen(block = true)
|
7
9
|
callback = Proc.new do |modified, added, removed|
|
8
10
|
self.compile()
|
@@ -14,7 +16,7 @@ module Appmake
|
|
14
16
|
end
|
15
17
|
|
16
18
|
def self.compile
|
17
|
-
|
19
|
+
Basic.new.say_status :compile, "JS"
|
18
20
|
system("webmake js/app.js public/app.js")
|
19
21
|
end
|
20
22
|
end
|
@@ -3,6 +3,8 @@ require "listen"
|
|
3
3
|
module Appmake
|
4
4
|
module Listeners
|
5
5
|
class Tpl
|
6
|
+
include Thor::Shell
|
7
|
+
|
6
8
|
def self.listen(block = true)
|
7
9
|
callback = Proc.new do |modified, added, removed|
|
8
10
|
self.compile()
|
@@ -14,8 +16,8 @@ module Appmake
|
|
14
16
|
end
|
15
17
|
|
16
18
|
def self.compile
|
17
|
-
|
18
|
-
system("node bin/compile_templates.js")
|
19
|
+
Basic.new.say_status :compile, "CSS"
|
20
|
+
system("node bin/compile_templates.js &> /dev/null")
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
data/lib/appmake/version.rb
CHANGED