CLI to create rails projects interactively.
- Rails 7+
- Support in selecting rails new options
- database
- javascript
- css
- asset pipeline
- skips
- Support in adding gems
gem install mogu
mogu help
Create rails projects interactively.
mogu new
? Please input app path
>
? Do you want api mode? (Choose with ↑ ↓ ⏎)
> 1. no
2. yes
? Choose customizes (Toggle options. Choose with ↑ ↓ ⏎, filter with 'f')
> 1. ☐ database (Default: sqlite3)
2. ☐ javascript (Default: importmap)
3. ☐ css
4. ☐ asset pipline (Default: sprokets)
5. ☐ skips
0. Done
? Choose database (Choose with ↑ ↓ ⏎, filter with 'f')
> 1. sqlite3
2. mysql
3. postgresql
...
? Choose javascript (Choose with ↑ ↓ ⏎, filter with 'f')
> 1. importmap
2. webpack
3. esbuild
4. rollup
? Choose css (Choose with ↑ ↓ ⏎, filter with 'f')
> 1. tailwind
2. bootstrap
3. bulma
4. postcss
5. sass
? Choose asset pipline (Choose with ↑ ↓ ⏎, filter with 'f')
> 1. sprokets
2. propshaft
? Choose skips (Toggle options. Choose with ↑ ↓ ⏎, filter with 'f')
> 1. ☐ test
0. Done
Add gems to rails projects.
mogu gem
? Choose gems (Toggle options. Choose with ↑ ↓ ⏎, filter with 'f')
> 1. ☐ brakeman
2. ☐ solargraph
3. ☐ rspec
4. ☐ rubocop
0. Done
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/mogurastore/mogu.
The gem is available as open source under the terms of the MIT License.