appmake 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- system "bundle exec sass css/#{name} public/#{name}"
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
@@ -17,7 +17,14 @@ module Appmake
17
17
 
18
18
  def self.compile
19
19
  Basic.new.say_status :compile, "JS"
20
- system("npm run-script build")
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
@@ -17,7 +17,7 @@ module Appmake
17
17
 
18
18
  def self.compile
19
19
  Basic.new.say_status :compile, "TPL"
20
- system("npm run-script tpl")
20
+ system("dot-module -d tpl/ -o js/templates.js")
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Appmake
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appmake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: