2012-08-10 20:09:51 +00:00
|
|
|
# Sprockets Assistant
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
An upgraded `Sprockets::Secretary`. A simple way to let me build little libraries and widgets and
|
|
|
|
things for various projects, while still taking advantage of all the Sprockets libraries and goodness
|
|
|
|
that I use elsewhere.
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
## Usage
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
gem install sprockets-assistant
|
|
|
|
sprockets-assistant create my_project
|
|
|
|
cd my_project
|
|
|
|
bundle exec sprockets-assistant
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
This starts a server on localhost:8080. Hack away.
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
## `assistant_config.rb`
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
Prett simple DSL:
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
### `middleware`
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
Define a middleware stack.
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
### `app`
|
|
|
|
|
|
|
|
This is the guts of a `Sinatra::Base` app.
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
### `compile`
|
2012-08-10 15:35:06 +00:00
|
|
|
|
2012-08-10 20:09:51 +00:00
|
|
|
A list of files to compile with `sprockets-assistant compile`.
|
2012-08-10 15:35:06 +00:00
|
|
|
|