Method: Creact::FileOperations#create_js
- Defined in:
- lib/creact/file_handlers.rb
#create_js(template = :mote) ⇒ Object
23 24 25 26 27 |
# File 'lib/creact/file_handlers.rb', line 23 def create_js(template=:mote) puts 'Creating js files...' @js_files = ['jquery.js', 'react.rb'].map { |file| get_absolute_path(file) } FileUtils.cp(@js_files, 'js') end |