https://github.com/gadicc/meteor-modules
Minimalist require support, with glslify hack.
https://github.com/gadicc/meteor-modules
Last synced: about 1 year ago
JSON representation
Minimalist require support, with glslify hack.
- Host: GitHub
- URL: https://github.com/gadicc/meteor-modules
- Owner: gadicc
- Created: 2015-05-24T13:19:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T10:03:34.000Z (almost 11 years ago)
- Last Synced: 2025-02-17T21:18:58.531Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
## gadicohen:modules
Minimalist require support, with glslify hack.
*Don't use this*
Rather use:
* [raix:famono](https://atmospherejs.com/?q=famono)
* [rocket:module](https://atmospherejs.com/rocket/module)
* [cosmos:browserify](https://atmospherejs.com/cosmos/browserify)
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:**
```js
Package.onUse(function(api) {
api.use('gadicohen:modules@0.0.1', 'client');
api.addFiles('lib/modules.require', 'client');
api.export('famous', 'client');
});
```