diff options
author | claudiob <claudiob@inventati.org> | 2017-03-22 15:51:02 -0700 |
---|---|---|
committer | claudiob <claudiob@inventati.org> | 2017-03-22 15:54:19 -0700 |
commit | 1c6d394da188071588d07957ca7ad67025cab637 (patch) | |
tree | c53015faa1bff4d15912df4550cfa76e367f7cf7 /railties/lib/rails/generators/erb.rb | |
parent | 12b684985837bc8ee9ad15c174cf4e07ca82d7c4 (diff) | |
download | rails-1c6d394da188071588d07957ca7ad67025cab637.tar.gz rails-1c6d394da188071588d07957ca7ad67025cab637.tar.bz2 rails-1c6d394da188071588d07957ca7ad67025cab637.zip |
List options for `rails new --webpack=WEBPACK`
When you type `rails new -h`, the `--database=DATABASE` options display
this useful message:
> Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
However, the `--webpack=WEBPACK` option only displays this:
> Preconfigure for app-like JavaScript with Webpack
so it's hard to know *which* values are valid for `WEBPACK`.
This commit improves the help message to display:
> Preconfigure for app-like JavaScript with Webpack (options: react/vue/angular)
The implication of this commit is that the list needs to be manually updated
whenever rails/webpacker adds support for a new framework.
However, I don't imagine this list to change very frequently, and I think that
the benefit of display the list to the users is greater than the hustle of
updating the list when needed.
Diffstat (limited to 'railties/lib/rails/generators/erb.rb')
0 files changed, 0 insertions, 0 deletions