Class: JsProject

Inherits:
Generator show all
Defined in:
lib/generators/js_project.rb

Instance Method Summary collapse

Methods inherited from Generator

#initialize, #make_dir, #make_file, #pre_install

Constructor Details

This class inherits a constructor from Generator

Instance Method Details

#post_installObject



12
13
14
# File 'lib/generators/js_project.rb', line 12

def post_install
  `cd #{@base} && git init`
end

#runObject



4
5
6
7
8
9
10
# File 'lib/generators/js_project.rb', line 4

def run
  make_file("package.json")
  make_file("README.md")
  make_dir("test")
  make_dir("src")
  make_dir("demo")
end