No commit activity in last 3 years
No release in over 3 years
Sprocketize provides a command-line utility for the sprockets gem so it can be used without rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.1.2
 Project Readme

Sprocketize: Command-line utility for the sprockets gem Build Status

Usage

Usage: sprocketize [options] output_directory filename [filename ...]
    -a, --asset-root=DIRECTORY       Assets root path.
    -I, --include-dir=DIRECTORY      Adds the directory to the Sprockets load path.
    -d, --digest                     Incorporates a MD5 digest into all filenames.
    -m, --manifest [=DIRECTORY]      Writes a manifest for the assets. If no directory is
                                     specified the manifest will be written to the output directory.
    -g, --gzip                       Also create a compressed version of all Stylesheets and Javascripts.
    -s, --save                       Add given parameters to .sprocksrc
    -j [=COMPRESSOR],                Compress all Javascript using either closure, yui or uglifier. If no
                                     compiler is specified closure will be used.
        --compress-javascripts
    -c, --compress-stylesheets       Compress all Stylesheets with the YUI CSS compressor.
    -h, --help                       Show this help message.
    -v, --version                    Show version.

The options can also be set through a local options file in the asset root or through a global file in your home directory. target, assets and manifest_path are ignored when set in the global file.

#.sprocksrc
---
target: target output directory
paths:
- include paths
assets:
- all files here will be compiled
manifest: true or false
manifest_path: output path for the manifest file
digest: true or false
gzip: true or false
js_compressor: either closure, yui or uglifier
compress_css: true or false

Include paths should always be absolute. Asset paths are always relative to the asset root. The other paths can either be absolute or relative. Relative paths are always relative to the asset root.

License

Copyright © 2011 Mato Ilic <info@matoilic.ch>

Sprockets is distributed under an MIT-style license. See LICENSE for details.