moode-haml-toolkit 0.0.2 → 0.0.3
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/bin/mdbuild +42 -0
- data/bin/mdclean +39 -0
- data/bin/mdk +1 -1
- data/lib/moode-haml-toolkit/version.rb +1 -1
- metadata +6 -2
data/bin/mdbuild
ADDED
@@ -0,0 +1,42 @@
|
|
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/assets/www"
|
15
|
+
end
|
16
|
+
|
17
|
+
def compile_html
|
18
|
+
run "mdk"
|
19
|
+
end
|
20
|
+
def copy_page
|
21
|
+
copy_file "index.html"
|
22
|
+
end
|
23
|
+
|
24
|
+
def copy_css
|
25
|
+
directory :css
|
26
|
+
end
|
27
|
+
|
28
|
+
def copy_js
|
29
|
+
directory :js
|
30
|
+
end
|
31
|
+
|
32
|
+
def copy_lib
|
33
|
+
directory :lib
|
34
|
+
end
|
35
|
+
|
36
|
+
def copy_image
|
37
|
+
directory :img
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
WebBuild.start
|
data/bin/mdclean
ADDED
@@ -0,0 +1,39 @@
|
|
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/assets/www"
|
15
|
+
end
|
16
|
+
|
17
|
+
def delete_page
|
18
|
+
remove_file "index.html"
|
19
|
+
end
|
20
|
+
|
21
|
+
def copy_css
|
22
|
+
remove_dir "css"
|
23
|
+
end
|
24
|
+
|
25
|
+
def copy_js
|
26
|
+
remove_dir "js"
|
27
|
+
end
|
28
|
+
|
29
|
+
def copy_lib
|
30
|
+
remove_dir "lib"
|
31
|
+
end
|
32
|
+
|
33
|
+
def copy_image
|
34
|
+
remove_dir "img"
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
WebBuild.start
|
data/bin/mdk
CHANGED
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: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,13 +9,15 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: moode mobile development toolkit
|
15
15
|
email:
|
16
16
|
- tj19832@gmail.com
|
17
17
|
executables:
|
18
18
|
- md-watch
|
19
|
+
- mdbuild
|
20
|
+
- mdclean
|
19
21
|
- mdk
|
20
22
|
extensions: []
|
21
23
|
extra_rdoc_files: []
|
@@ -26,6 +28,8 @@ files:
|
|
26
28
|
- README.md
|
27
29
|
- Rakefile
|
28
30
|
- bin/md-watch
|
31
|
+
- bin/mdbuild
|
32
|
+
- bin/mdclean
|
29
33
|
- bin/mdk
|
30
34
|
- lib/moode-haml-toolkit.rb
|
31
35
|
- lib/moode-haml-toolkit/version.rb
|