kriswallsmith/assetic — pull request #214 by dancannon (2012-04-03 19:29:48+00:00)
Title: Added RequireJS filter

This PR adds a RequireJS filter. It is based on the LESS filter and uses node to optimise the code.

To use the filter you should pass assetic the configuration file such as the file below. Then r.js creates the compiled javascript file which is read and passed back to assetic.

```javascript
require.config({
deps: ["main"]
});
```

I did notice a problem with the node implementation for LESS when using windows. When setting the NODE_PATH env variable it causes node to not properly run. When commenting out line 90 in LessFilter.php node properly returns the compiled css. Is this code needed as most(if not all) node installations already set the NODE_PATH variable.

I hope I have done this PR properly, if not let me know and I will make the necassary changes if possible