sweetjsify
v0.0.1
Published
Sweet.js transform for Browserify
Downloads
2
Readme
Sweetjsify
A sweet.js transform for Browserify.
Usage
The transform will process all javascript (.js and .sjs) files, which have the following directive inside:
"use macros";
// any other code
The macros to use are defined in your package.json
file:
{
// other stuff ...
"sweetjsify": {
"modules": {
"./path/tomodule",
"other/path"
}
}
}
You can also configure the transform programatically:
var sweetjsify = require('sweetjsify').configure({
modules: ['some/module']
});
Installation
Install the module using npm:
$ npm install sweetjsify
License
MIT
Author
Adam Pohorecki