0.0.1 • Published 10 years ago

sweetjsify v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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