sweetjsify

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i sweetjsify

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • psyho