Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orangewise/sprockets_standalone
https://github.com/orangewise/sprockets_standalone
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/orangewise/sprockets_standalone
- Owner: orangewise
- Created: 2013-09-08T19:10:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-10T07:06:08.000Z (about 11 years ago)
- Last Synced: 2024-04-20T10:22:41.354Z (7 months ago)
- Language: Ruby
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sprockets Standalone
Using Sprockets and AssetSync standalone, so it can be used in combination with a PHP website :)
Based on http://www.simonecarletti.com/blog/2011/09/using-sprockets-without-a-railsrack-project/
# Usage
bundle exec rake sprockets:compile environment=dev
or
bundle exec rake sync:assets environment=dev
# Directory structure
.
├── sprockets_standalone
| └── config
| └── asset_sync.yml
| ├── Gemfile
| ├── Gemfile.lock
| └── Rakefile
└── assets
├── dev
| └── build
│ ├── javascripts
│ │ └── all.js
│ └── stylesheets
│ └── all.css
├── test
| └── build
| ├── ...
| .
├── production
| └── build
| ├── ...
| .
└── src
├── images
│ └── ...
├── javascripts
│ └── all.js
| └── jquery
| └── jquery-1.10.2.min.js
└── stylesheets
└── all.css# Example all.js
//= require jquery/jquery-1.10.2.min
# Example all.css/*
*= require bootstrap/index
*/