plcs
所属分类:单片机开发
开发工具:JavaScript
文件大小:1020KB
下载次数:0
上传日期:2010-08-02 18:08:49
上 传 者:
sh-1993
说明: 所有编程语言备忘单中的备忘单。
(The cheatsheet of all programming language cheatsheets.)
文件列表:
Rakefile (105, 2010-08-03)
Thorfile (275, 2010-08-03)
app (0, 2010-08-03)
app\helpers (0, 2010-08-03)
app\helpers\haml.rb (467, 2010-08-03)
app\helpers\main.rb (850, 2010-08-03)
app\models (0, 2010-08-03)
app\models\reference.rb (1761, 2010-08-03)
app\routes (0, 2010-08-03)
app\routes\css.rb (559, 2010-08-03)
app\routes\site.rb (937, 2010-08-03)
app\views (0, 2010-08-03)
app\views\home.haml (1527, 2010-08-03)
app\views\layout.haml (436, 2010-08-03)
config.ru (82, 2010-08-03)
config (0, 2010-08-03)
config\appconfig.example.yml (114, 2010-08-03)
config\nano_sources.list (154, 2010-08-03)
data (0, 2010-08-03)
data\css.yml (5280, 2010-08-03)
data\markup.yml (829, 2010-08-03)
data\programming.yml (32422, 2010-08-03)
data\vim.yml (1184, 2010-08-03)
dependencies (295, 2010-08-03)
init.rb (433, 2010-08-03)
lib (0, 2010-08-03)
lib\array_ext.rb (174, 2010-08-03)
lib\nano (0, 2010-08-03)
lib\nano\config.rb (763, 2010-08-03)
lib\nano\nano.rb (193, 2010-08-03)
lib\nano\nano.thor (1353, 2010-08-03)
lib\nano\nano (0, 2010-08-03)
lib\nano\nano\actions.rb (9224, 2010-08-03)
lib\tasks (0, 2010-08-03)
... ...
Nanomonk
========
This is a skeleton without anything but `monk-glue` and a new command, `monk install`.
The goal is to have a skeleton that will let you create the skeleton you want,
free from the restrictions of the default gems that most monk skeletons ship with.
Instructions
------------
First: install rvm and monk.
Add the `nano` skeleton.
monk add nano git://github.com/rstacruz/nanomonk
Create a new app from this skeleton.
monk init myapp -s nano
cd myapp
Install a templating system. It's probably best to do this first!
monk install haml
Install an ORM if need one.
monk install ohm
# or: datamapper, datamapper-sqlite
Try a few more packages!
monk install contest
monk install rtopia
monk install less
monk install sinatra-minify
monk install jquery # Even non-gems can work
Start it up!
monk start
Info
----
When you do a `monk install`, it queries the GitHub repo to see if there is a
recipe for the gem you want to install.
Some gems have recipes for them: for instance, the `ohm` gem will have a recipe
to create the other necessary files such as configuration files and Rake tasks.
If a recipe doesn't exist for the gem, it'll simply be installed and vendored.
Have a look at the current recipes at the [Nanomonk recipes index](http://github.com/rstacruz/nanomonk-recipes/tree/master/recipes/).
Assumptions
-----------
You have to be using RVM.
Tips and tricks
---------------
You can simulate the original Monk skeleton with:
monk install haml ohm
monk install quietbacktrace override spawn ffaker stories contest --test
And you can also add in some useful extras (most of there are used in the Sinefunc skeleton):
monk install sinatra-minify sinatra-helpers sinatra-i18n sinatra-security rtopia
monk install pagination less sinatra-minify jquery
monk install webrat --test
To do
-----
- gem_install_from_git?
- Recipes
- more ORMs: activerecord, datamapper, candy, mongoid
- more templating systems: erb, ...
- more test systems: stories, rspec
近期下载者:
相关文件:
收藏者: