Comparing version 0.0.1 to 0.0.2
@@ -72,2 +72,7 @@ 'use strict'; | ||
function deumdify(browserify) { | ||
// | ||
// Bail out if there is no UMD wrapper. | ||
// | ||
if (!browserify._options.standalone) return; | ||
browserify.pipeline.push(createStream()); | ||
@@ -74,0 +79,0 @@ browserify.on('reset', function reset() { |
{ | ||
"name": "deumdify", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Browserify plugin to expose a standalone bundle as a property of the global object", | ||
@@ -10,3 +10,5 @@ "files": [ | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"coverage": "istanbul cover node_modules/.bin/_mocha -- --reporter spec", | ||
"test": "mocha --reporter spec", | ||
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec" | ||
}, | ||
@@ -31,3 +33,14 @@ "repository": { | ||
"first-chunk-stream": "1.0.x" | ||
}, | ||
"devDependencies": { | ||
"browserify": "6.2.x", | ||
"concat-stream": "1.4.x", | ||
"istanbul": "0.3.x", | ||
"jsdom": "1.1.x", | ||
"mocha": "2.0.x", | ||
"pre-commit": "0.0.x" | ||
}, | ||
"peerDependencies": { | ||
"browserify": "5.1.0 - 6" | ||
} | ||
} |
# deUMDify | ||
[![Build Status](https://travis-ci.org/primus/deumdify.svg?branch=master)](https://travis-ci.org/primus/deumdify) | ||
[![NPM version](https://badge.fury.io/js/deumdify.svg)](http://badge.fury.io/js/deumdify) | ||
[![Coverage Status](https://img.shields.io/coveralls/primus/deumdify.svg)](https://coveralls.io/r/primus/deumdify?branch=master) | ||
This module is a [Browserify](http://browserify.org/) plugin that will expose a | ||
standalone bundle as a property of the global object omitting AMD and CommonJS | ||
support. | ||
The reason for this plugin is that Browserify does not give the ability to | ||
generate a standalone bundle without an UMD wrapper. | ||
support. The reason for this plugin is that Browserify does not give the ability | ||
to generate a standalone bundle without an UMD wrapper. | ||
@@ -17,2 +20,10 @@ ## Install | ||
### Command Line | ||
```sh | ||
browserify main.js -s Foo -p deumdify > bundle.js | ||
``` | ||
### API | ||
Register the [plugin](https://github.com/substack/node-browserify#bpluginplugin-opts). | ||
@@ -19,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4059
75
2
48
5
6