moode-haml-toolkit 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/moode-haml-toolkit/version.rb +1 -1
- metadata +2 -6
- data/bin/webbuild +0 -53
- data/bin/webclean +0 -40
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moode-haml-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: moode mobile development toolkit
|
15
15
|
email:
|
@@ -20,8 +20,6 @@ executables:
|
|
20
20
|
- mdbuild
|
21
21
|
- mdclean
|
22
22
|
- mdk
|
23
|
-
- webbuild
|
24
|
-
- webclean
|
25
23
|
extensions: []
|
26
24
|
extra_rdoc_files: []
|
27
25
|
files:
|
@@ -35,8 +33,6 @@ files:
|
|
35
33
|
- bin/mdbuild
|
36
34
|
- bin/mdclean
|
37
35
|
- bin/mdk
|
38
|
-
- bin/webbuild
|
39
|
-
- bin/webclean
|
40
36
|
- lib/moode-haml-toolkit.rb
|
41
37
|
- lib/moode-haml-toolkit/component_generator.rb
|
42
38
|
- lib/moode-haml-toolkit/component_helper.rb
|
data/bin/webbuild
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "rubygems"
|
4
|
-
require "thor"
|
5
|
-
require "thor/group"
|
6
|
-
|
7
|
-
@@project_name = ARGV[0]
|
8
|
-
|
9
|
-
class WebBuild < Thor::Group
|
10
|
-
include Thor::Actions
|
11
|
-
source_root Dir.pwd
|
12
|
-
def initialize(args=[], options={}, config={})
|
13
|
-
super
|
14
|
-
self.destination_root = "../app"
|
15
|
-
@android_dir = "android/assets/www"
|
16
|
-
@ios_dir = "ios/www"
|
17
|
-
end
|
18
|
-
|
19
|
-
def compile_html
|
20
|
-
run "gen"
|
21
|
-
end
|
22
|
-
|
23
|
-
def copy_page
|
24
|
-
copy_file "index.html", @android_dir + "/index.html"
|
25
|
-
directory :pages, @android_dir
|
26
|
-
|
27
|
-
copy_file "index.html", @ios_dir + "/index.html"
|
28
|
-
directory :pages, @ios_dir
|
29
|
-
end
|
30
|
-
|
31
|
-
def copy_css
|
32
|
-
directory :css, @android_dir
|
33
|
-
directory :css, @ios_dir
|
34
|
-
end
|
35
|
-
|
36
|
-
def copy_js
|
37
|
-
directory :js, @android_dir
|
38
|
-
directory :js, @ios_dir
|
39
|
-
end
|
40
|
-
|
41
|
-
def copy_lib
|
42
|
-
directory :lib, @android_dir
|
43
|
-
directory :lib, @ios_dir
|
44
|
-
end
|
45
|
-
|
46
|
-
def copy_image
|
47
|
-
directory :img, @android_dir
|
48
|
-
directory :img, @ios_dir
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
53
|
-
WebBuild.start
|
data/bin/webclean
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "rubygems"
|
4
|
-
require "thor"
|
5
|
-
require "thor/group"
|
6
|
-
|
7
|
-
@@project_name = ARGV[0]
|
8
|
-
|
9
|
-
class WebBuild < Thor::Group
|
10
|
-
include Thor::Actions
|
11
|
-
source_root Dir.pwd
|
12
|
-
def initialize(args=[], options={}, config={})
|
13
|
-
super
|
14
|
-
self.destination_root= "../app/android/assets/www"
|
15
|
-
end
|
16
|
-
|
17
|
-
def delete_page
|
18
|
-
remove_file "index.html"
|
19
|
-
remove_dir "pages"
|
20
|
-
end
|
21
|
-
|
22
|
-
def copy_css
|
23
|
-
remove_dir "css"
|
24
|
-
end
|
25
|
-
|
26
|
-
def copy_js
|
27
|
-
remove_dir "js"
|
28
|
-
end
|
29
|
-
|
30
|
-
def copy_lib
|
31
|
-
remove_dir "lib"
|
32
|
-
end
|
33
|
-
|
34
|
-
def copy_image
|
35
|
-
remove_dir "img"
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
WebBuild.start
|