【文件属性】:
文件名称:generator-rails-mithril:将mithril.js和require.js与Ruby on Rails项目集成的快速方法
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-26 12:44:09
JavaScript
发电机铁轨米特里尔
发电机
入门
要运行此版本的yeoman generator。 首先,请确保您已经安装了yeoman
$ npm install -g yo
要从npm安装generator-rails-mithril,请运行:
$ npm install -g generator-rails-mithril
Rails 4. *的用法
首先,使用常规的rails命令创建Ruby on Rails项目,但将其跳过:
$ rails new app-name --skip-bundle
最后,启动生成器:
$ cd app-name
$ yo rails-mithril
对所有“覆盖”操作回答“是”。 如果您使用的数据库不同于sqlite3,则配置config / database.yml。
其他依赖
SASS(宝石安装sass)
指南针(宝石安装指南针)
模板
我基于
【文件预览】:
generator-rails-mithril-master
----.jshintrc(351B)
----.DS_Store(6KB)
----.gitattributes(12B)
----component()
--------templates()
--------index.js(677B)
----.travis.yml(239B)
----test()
--------test-load.js(264B)
--------test-creation.js(848B)
----README.md(3KB)
----.editorconfig(214B)
----.gitignore(20B)
----app()
--------templates()
--------index.js(9KB)
----CHANGELOG.md(268B)
----package.json(705B)