sprockets-assistant/README.md

37 lines
774 B
Markdown
Raw Permalink Normal View History

2012-08-10 20:09:51 +00:00
# Sprockets Assistant
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 20:09:51 +00:00
## Usage
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 20:09:51 +00:00
This starts a server on localhost:8080. Hack away.
2012-08-10 20:09:51 +00:00
## `assistant_config.rb`
2012-08-10 20:09:51 +00:00
Prett simple DSL:
### `append_path`
Add a load path to Sprockets.
2012-08-10 20:09:51 +00:00
### `middleware`
2012-08-10 20:09:51 +00:00
Define a middleware stack.
2012-08-10 20:09:51 +00:00
### `app`
This is the guts of a `Sinatra::Base` app.
2012-08-10 20:09:51 +00:00
### `compile`
A list of files to compile with `sprockets-assistant compile`. YUI compressor is used to make the
JS files really small.