0.1.2 • Published 10 years ago

transfigurify v0.1.2

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

transfigurify build status

Configure which browserify transforms get applied to your package via an environment variable.

package.json

{
  "browserify": {
    "transform": [
      "hbsfy",
      "transfigurify"
    ]
  },
  "transfigurify": {
    "test": [
      "brfs"
    ]
  },
  "dependencies": {
    "brfs": "0.0.9",
    "hbsfy": "~0.1.3",
    "transfigurify": "~0.1.0"
  }
}

In this configuration the hbsfy transform runs always, but the brfs transform is applied only if TRANSFIGURIFY_ENV=test, i.e:

TRANSFIGURIFY_ENV=test browserify main.js > bundle.js

Examples

Please review and try this full example to get a better understanding of how transfigurify works.

Reading the tests is also benefitial to that end.

Installation

npm install transfigurify

API

generated with docme

License

MIT