Skip to content

Commit 60f8c74

Browse files
author
benholloway
committed
removed uglifyify from shrinkwrap
1 parent 90ac47b commit 60f8c74

File tree

5 files changed

+74
-131
lines changed

5 files changed

+74
-131
lines changed

lib/build/browserify-debug.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
'use strict';
2+
3+
var through = require('through2'),
4+
fs = require('fs');
5+
6+
/**
7+
* Transform that writes out the current state of the file next to the original.
8+
* Primarily for source map visualisation.
9+
* @see http://sokra.github.io/source-map-visualization
10+
* @param {string} [extension] An extention to append to the file
11+
* @returns {Function} Browserify transform
12+
*/
13+
function debugTransform(extension) {
14+
return function(file) {
15+
var chunks = [];
16+
17+
function transform(chunk, encoding, done) {
18+
/* jshint validthis:true */
19+
chunks.push(chunk);
20+
this.push(chunk);
21+
done();
22+
}
23+
24+
function flush(done) {
25+
var filename = [file, extension || 'gen'].join('.');
26+
var data = chunks.join('');
27+
fs.writeFile(filename, data, done);
28+
}
29+
30+
return through(transform, flush);
31+
};
32+
}
33+
34+
module.exports = debugTransform;

lib/build/esmangleify.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ var codegen = require('escodegen'),
99
merge = require('lodash.merge');
1010

1111
/**
12-
* Esprima based minifier transform for browserify
13-
* @see http://sokra.github.io/source-map-visualization
12+
* Esprima based minifier transform for browserify.
1413
*/
1514
function esmangleify(opt) {
1615

npm-shrinkwrap.json

Lines changed: 36 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
"task-yargs": "latest",
105105
"through-pipes": "latest",
106106
"through2": "latest",
107-
"uglifyify": "latest",
108107
"watchify": "latest",
109108
"yargs": "latest"
110109
},

0 commit comments

Comments
 (0)