class Barnardos::Generators::InstallGenerator

Constants

DEV_PACKAGES
PACKAGES

Public Instance Methods

install() click to toggle source
# File lib/generators/barnardos/install_generator.rb, line 23
def install
  directory 'inputs', 'app/inputs'
  directory 'helpers', 'app/helpers'

  `yarn add #{PACKAGES.join(' ')}`
  `yarn add #{DEV_PACKAGES.join(' ')} --dev`
  copy_file 'postcss.config.js', 'postcss.config.js'
  rake 'webpacker:clobber'
  `yarn`
end