洞察同层渲染如何提升跨平台小程序开发的效率与灵活性
618
2022-10-09
Granite一种Rails应用程序体系结构框架(Rails框架)
Granite
Granite is an alternative Rails application architecture framework.
Installation
Add this line to your application's Gemfile:
gem 'granite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install granite
Usage
Please see our official documentation or check the granite application example.
Versioning
We use semantic versioning for our releases.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/toptal/granite.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Running specs
To run specs you can run
bin/setuprspec
Or, alternatively you can copy and adapt the spec/support/database.yml for your environment:
cp spec/support/database.yml.example spec/support/database.yml[Necessary customization here]psql -c 'create database granite;' -U graniterspec
Using Granite's Rubocop config
Add this to your Rubocop config file:
require: - rubocop-granite
This will add config for Lint/UselessAccessModifier to treat projector as separate context. It is equivalent to:
Lint/UselessAccessModifier: ContextCreatingMethods: - projector
License
Granite is released under the MIT License.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~