项目作者: majjoha

项目描述 :
Scaffold Ruby applications effortlessly.
高级语言: Ruby
项目地址: git://github.com/majjoha/create-ruby-app.git
创建时间: 2019-03-13T10:43:28Z
项目社区:https://github.com/majjoha/create-ruby-app

开源协议:ISC License

下载


Create Ruby App

CI
Gem Version

create-ruby-app is an opinionated tool for scaffolding Ruby applications
effortlessly inspired by Create React
App
. It generates only the
essentials needed to start working.

It specifically targets non-Rails applications. For Ruby on Rails apps, it might
be worth looking into Rails Application
Templates

instead, and if you are building a gem, please take a look at the bundle gem
command.

Requirements

  • Ruby (version 2.7.1 or newer).

Installation

  1. gem install create-ruby-app

Usage

  1. create-ruby-app new NAME [--ruby RUBY] [--gems GEMS]

Example

  1. create-ruby-app new my-app --gems sinatra,sequel --ruby ruby-2.7.1

This will generate the following project structure with
Sinatra and Sequel
added to the Gemfile.

  1. my_app
  2. ├── bin/
  3. └── my_app
  4. ├── lib/
  5. ├── my_app/
  6. └── my_app.rb
  7. ├── spec/
  8. ├── lib/
  9. └── my_app/
  10. └── spec_helper.rb
  11. ├── .ruby-version
  12. └── Gemfile

Once the project is generated, it will run bundle install so you can start
working.

License

See LICENSE.