bangpound / assetic-codekit
Assetic filters to support proprietary Codekit extensions
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/bangpound/assetic-codekit
Requires
- kriswallsmith/assetic: ~1.1
This package is auto-updated.
Last update: 2025-09-12 06:10:43 UTC
README
This project is to support the proprietary and undocumented Codekit extensions so that you can build a Codekit project without that application.
Javascript and CoffeeScript
For these languages, Codekit supports prepending and appending other scripts within the output. When a file contains comments like these:
// @codekit-prepend "a.coffee" // @codekit-append "b.js"
# @codekit-prepend "a.coffee" # @codekit-append "b.js"
You can use this filter to support those directives.
For example:
<?php $coffee = new \Assetic\Filter\CoffeeScriptFilter('/usr/local/bin/coffee'); $coffee->setBare(true); $asset = new FileAsset('script.coffee', array( new \Bangpound\Assetic\Filter\CodekitCoffeeScriptFilter($coffee), $coffee, ));