提交 f76c5b90 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28534 from claudiob/list-webpackers

List options for `rails new --webpack=WEBPACK`
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册