Class: Appmake::Appmake

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/appmake.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/appmake.rb', line 9

def self.source_root
	File.dirname(File.dirname(__FILE__))
end

Instance Method Details

#initObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/appmake.rb', line 14

def init
	empty_directory "bin"
	template"templates/bin/compile_templates.js.tt", "bin/compile_templates.js"

	empty_directory "css"
	template"templates/css/app.scss.tt", "css/app.scss"
	template"templates/css/body.scss.tt", "css/body.scss"

	empty_directory "js"
	template"templates/js/lib/doT.js.tt", "js/lib/doT.js"
	template"templates/js/app.js.tt", "js/app.js"

	empty_directory "tpl"
	template "templates/tpl/welcome.html.tt", "tpl/welcome.html"

	empty_directory "public"
	template "templates/public/index.html.tt", "public/index.html"
end

#watchObject



34
35
36
# File 'lib/appmake.rb', line 34

def watch
	Listeners::Js.listen(false)
end