diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-03-22 19:36:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 19:36:48 -0400 |
commit | f76c5b90c5adb9679cceeeec9b3e92f4f2eca879 (patch) | |
tree | e578d3ab6a0cd756175ff41e0eddc7effba843bb /railties/lib | |
parent | 25473baf409185638073fe2f016f4b9dda284e50 (diff) | |
parent | 1c6d394da188071588d07957ca7ad67025cab637 (diff) | |
download | rails-f76c5b90c5adb9679cceeeec9b3e92f4f2eca879.tar.gz rails-f76c5b90c5adb9679cceeeec9b3e92f4f2eca879.tar.bz2 rails-f76c5b90c5adb9679cceeeec9b3e92f4f2eca879.zip |
Merge pull request #28534 from claudiob/list-webpackers
List options for `rails new --webpack=WEBPACK`
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 3e7f69e9eb..fbb6b5039c 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -13,6 +13,7 @@ module Rails 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 @@ module Rails 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" |