appmake 0.1.18 → 0.1.20

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/appmake.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.name = "appmake"
8
8
  gem.version = Appmake::VERSION
9
9
  gem.authors = ["Sebastian Sito", "Sławomir Kołodziej"]
10
- gem.email = ["sebastian@hypenode.com"]
10
+ gem.email = ["sebastian@hypenode.com", "hfrntt@gmail.com"]
11
11
  gem.description = %q{Appmake allows you to easily develop single-page apps in HTML5}
12
12
  gem.summary = %q{Appmake app bootstrapper}
13
13
  gem.homepage = "https://github.com/sebastiansito/appmake"
@@ -10,22 +10,26 @@ module Appmake
10
10
  self.compile()
11
11
  end
12
12
 
13
- listener = Listen.to "js", :filter => /\.coffee$/
13
+ listener = Listen.to "coffee", :filter => /\.coffee$/
14
14
  listener.change(&callback)
15
15
  listener.start(block)
16
16
  end
17
17
 
18
18
  def self.compile
19
- Basic.new.say_status :compile, "CoffeScript"
19
+ shell = Color.new
20
+
21
+ shell.say_status :compile, "CoffeScript", :green
20
22
 
21
- Dir.glob "js/*.coffee" do |f|
23
+ Dir.glob "coffee/*.coffee" do |f|
22
24
  name = f.split("/").last
23
25
  new_name = name.gsub "coffee", "js"
24
26
 
25
- system "./node_modules/.bin/coffee -c js/#{name}"
27
+ shell.say_status :cmd, "./node_modules/.bin/coffee -c coffee/#{name} && mv coffee/#{new_name} js/#{new_name}", :blue
28
+ system "./node_modules/.bin/coffee -c coffee/#{name} > /dev/null && mv coffee/#{new_name} js/#{new_name} > /dev/null"
26
29
 
27
30
  if name[0] == name[0].upcase
28
- system "./node_modules/.bin/webmake js/#{new_name} public/js/#{new_name}"
31
+ shell.say_status :cmd, "./node_modules/.bin/webmake js/#{new_name} public/js/#{new_name}", :blue
32
+ system "./node_modules/.bin/webmake js/#{new_name} public/js/#{new_name} > /dev/null"
29
33
  end
30
34
  end
31
35
  end
@@ -17,14 +17,17 @@ module Appmake
17
17
  end
18
18
 
19
19
  def self.compile
20
- Basic.new.say_status :compile, "CSS"
20
+ shell = Color.new
21
+
22
+ shell.say_status :compile, "CSS", :green
21
23
 
22
24
  Dir.glob "css/*" do |f|
23
25
  name = f.split("/").last
24
26
 
25
27
  if name[0] == name[0].upcase
26
28
  new_name = name.gsub "scss", "css"
27
- system "bundle exec sass css/#{name} public/css/#{new_name}"
29
+ shell.say_status :cmd, "bundle exec sass css/#{name} public/css/#{new_name}", :blue
30
+ system "bundle exec sass css/#{name} public/css/#{new_name} > /dev/null"
28
31
  end
29
32
  end
30
33
  end
@@ -16,13 +16,16 @@ module Appmake
16
16
  end
17
17
 
18
18
  def self.compile
19
- Basic.new.say_status :compile, "JS"
19
+ shell = Color.new
20
+
21
+ shell.say_status :compile, "JavaScript", :green
20
22
 
21
23
  Dir.glob "js/*.js" do |f|
22
24
  name = f.split("/").last
23
25
 
24
26
  if name[0] == name[0].upcase
25
- system "webmake js/#{name} public/js/#{name}"
27
+ shell.say_status :cmd, "./node_modules/.bin/webmake js/#{name} public/js/#{name}", :blue
28
+ system "./node_modules/.bin/webmake js/#{name} public/js/#{name} > /dev/null"
26
29
  end
27
30
  end
28
31
  end
@@ -16,8 +16,12 @@ module Appmake
16
16
  end
17
17
 
18
18
  def self.compile
19
- Basic.new.say_status :compile, "TPL"
20
- system("npm run-script tpl")
19
+ shell = Color.new
20
+
21
+ shell.say_status :compile, "Templates", :green
22
+
23
+ shell.say_status :cmd, "./node_modules/.bin/dot-module -d tpl/ -o js/templates.js", :blue
24
+ system("./node_modules/.bin/dot-module -d tpl/ -o js/templates.js > /dev/null")
21
25
  end
22
26
  end
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Appmake
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.20"
3
3
  end
data/lib/appmake.rb CHANGED
@@ -17,7 +17,6 @@ module Appmake
17
17
  def init
18
18
  template "templates/package.json.tt", "package.json"
19
19
  template "templates/README.md.tt", "README.md"
20
- system "npm install"
21
20
 
22
21
  empty_directory "css"
23
22
  template "templates/css/App.scss.tt", "css/App.scss"
@@ -26,6 +25,8 @@ module Appmake
26
25
  empty_directory "js"
27
26
  template "templates/js/App.js.tt", "js/App.js"
28
27
 
28
+ empty_directory "coffee"
29
+
29
30
  empty_directory "tpl"
30
31
  template "templates/tpl/welcome.html.tt", "tpl/welcome.html"
31
32
 
@@ -35,6 +36,8 @@ module Appmake
35
36
  empty_directory "public/img"
36
37
  template "templates/public/index.html.tt", "public/index.html"
37
38
 
39
+ system "npm install"
40
+
38
41
  Listeners::Css.compile
39
42
  Listeners::Coffee.compile
40
43
  Listeners::Tpl.compile
@@ -1,2 +1,2 @@
1
- $bodyColor: #A47;
2
- $bodyBackgroundColor: #BCF;
1
+ $bodyColor: #444;
2
+ $bodyBackgroundColor: #DDD;
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.18
4
+ version: 0.1.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -79,6 +79,7 @@ dependencies:
79
79
  description: Appmake allows you to easily develop single-page apps in HTML5
80
80
  email:
81
81
  - sebastian@hypenode.com
82
+ - hfrntt@gmail.com
82
83
  executables:
83
84
  - appmake
84
85
  extensions: []