Sha256: 5c5a447abca339ad1b9b63fb7802841b34015aecc17c05b82d1107c9b6aeaf07
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
class GulpAssetsGenerator < Rails::Generators::Base desc "Setup up the folder structure for Gulp Assets" source_root File.expand_path('../../../template', __FILE__) def create_frontend_folder directory 'frontend' copy_file ".eslintrc" end def create_webpack_config copy_file 'webpack.common.config.js' copy_file 'webpack.config.js' copy_file 'webpack.hot.config.js' # TODO replace host dynamically end def create_gulpfile copy_file 'gulpfile.js' end def create_module template "package.json" end def install_dependencies run "npm install" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gulp_assets-1.0.0.pre.2 | lib/generators/gulp_assets_generator.rb |