WebGL – working with GLSL source files
pheelicks.com
pheelicks.com
That way a separate Python script isn't required.
However, in the future I think it'd be nice if I could also have the GLSL code linted/compiled or minified, and this is probably out of the scope of what a Require.js plugin could do. Or am I wrong?
Basically track which files are dirty and what other files are dependent upon their results (like a MAKE file) and then execute the various rules you have setup. This can work both in the context of a database where the files are all provided by the user, or it can work like MAKE does on a local file system.
GruntJS does this as does Jake with local file systems.