FYI, here are examples from real life:
init:
https://github.com/fontello/fontello/blob/master/lib/init/assets.js#L42
css: https://github.com/fontello/fontello/blob/master/assets/css/app.css
Note, that we use stylus & built custom bootstrap files with less, in the
same time. That's very convenient.
Also, mincer allows easy helper injection into all processors in the same
time (except less).
For example, you can define asset_path(...), and then use it both in jade
and stylus and ejs files.
Vitaly
вторник, 19 июня 2012 г., 22:50:47 UTC+4 пользователь ixti написал:
>
> Hi,
>
> I'm happy to announce [Mincer][1] v0.2.0, a powerful web assets
> processor pipeline, that gives you freedom to right your assets using
> any languages/processor you like (Stylus, LESS, CoffeScript, EJS). More
> than that it gives you ability to put them in a pipeline (e.g. first
> compile as EJS, then as CoffeScript).
>
> Mincer can be used as a stanalone CLI based assets processor:
>
> ```
> $ mincer --include assets/javascript --include assets/stylesheets \
> --output public/assets application.js application.css
> ```
>
> Also it can be used programatically to build assets into directory
> (same as above, but using API):
>
> ``` javascript
> var env = new Mincer.Environment(__dirname);
>
> env.appendPath('assets/javascripts');
> env.appendPath('assets/stylesheets');
>
>
> var manifest = new Mincer.Manifest(env.index);
> var files = ['application.js', 'application.css'];
>
> manifest.compile(files, function (err, manifest) {
> // all done
> });
> ```
>
> Also it gives you a powerful http request handler that can be used as
> a standalone server or connect/express endpoint:
>
> ```
> connect.use('/assets/', Mincer.createServer(env));
> ```
>
> You can see examples under examples directory in the [repo][2].
>
> I would really appreciate any comments, bug reports, ideas. Feel free
> to ask any questions you have about Mincer.
>
>
> [1]: https://github.com/nodeca/mincer
> [2]: https://github.com/nodeca/mincer/tree/master/examples
>
>
> --
> Sincerely yours,
> Aleksey V. Zapparov A.K.A. ixti
> FSF Member #7118
> Mobile Phone: +34 677 990 688
> Homepage: http://www.ixti.net
> JID: [email protected]
>
> *Origin: Happy Hacking!
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en