8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/generators/breakfast/install_generator.rb', line 8
def install
if prerequisites_installed?
create_brunch_config
create_package_json
create_directory_structure
create_app_js_file
create_app_scss_file
create_gitkeep_files
run_npm_install
add_node_modules_to_gitignore
puts "\n ---> BREAKFAST INSTALLED SUCCESSFULLY\n ---> See https://github.com/devlocker/breakfast for documentation and examples.\n\n SUCCESS\n else\n puts <<-ERROR.strip_heredoc\n\n ---> ERROR - MISSING NODE & NPM\n\n ---> Node & npm are required to run Breakfast.\n ---> Please install them before attempting to continue.\n ---> https://nodejs.org\n ---> https://npmjs.org\n\n ERROR\n end\nend\n".strip_heredoc
|