Merge pull request #28534 from claudiob/list-webpackers

List options for `rails new --webpack=WEBPACK`
This commit is contained in:
Rafael França 2017-03-22 19:36:48 -04:00 committed by GitHub
commit f76c5b90c5

@ -13,6 +13,7 @@ class AppBase < Base # :nodoc:
DATABASES = %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver )
JDBC_DATABASES = %w( jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc )
DATABASES.concat(JDBC_DATABASES)
WEBPACKS = %w( react vue angular )
attr_accessor :rails_template
add_shebang_option!
@ -34,7 +35,7 @@ def self.add_shared_options_for(name)
desc: "Preconfigure for selected JavaScript library"
class_option :webpack, type: :string, default: nil,
desc: "Preconfigure for app-like JavaScript with Webpack"
desc: "Preconfigure for app-like JavaScript with Webpack (options: #{WEBPACKS.join('/')})"
class_option :skip_yarn, type: :boolean, default: false,
desc: "Don't use Yarn for managing JavaScript dependencies"