gadicohen:modules

v0.1.0Published 9 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

gadicohen:modules

Minimalist require support, with glslify hack.

Don't use this

Rather use:

I guess it's ok to use this if you have a good reason:

  • Writing a plugin that needs to work with multiple build systems
  • Want the glslify hack for Famous mixed mode shaders
  • Dev work with local fork, etc.

Example:

lib/modules.require:

famous = require('./famous');

package.js:

1Package.onUse(function(api) {
2  api.use('gadicohen:modules@0.0.1', 'client');
3  api.addFiles('lib/modules.require', 'client');
4  api.export('famous', 'client');
5});