Skip to content

Commit

Permalink
Bump browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
charlierudolph authored and jbpros committed Sep 13, 2015
1 parent ec9dd6c commit 69c51f2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
28 changes: 12 additions & 16 deletions bundler.js
Expand Up @@ -47,22 +47,18 @@ function Bundler(bundlePath) {
_callback = null;
};

var operation = browserify({debug: true, standalone: 'Cucumber'})
.transform({global: true}, fixGherkinLexers)
.transform({global:true}, 'uglifyify')
.exclude('./lib/cucumber/cli') // TODO: doesn't work, fix this
.require('./bundle-main', { expose: 'cucumber' })
.bundle()
.pipe(exorcist(mapPath))
.pipe(fs.createWriteStream(bundlePath, 'utf8'));

operation.on('error', function (err) {
callback(err);
});

operation.on('finish', function () {
callback();
});
browserify({debug: true, standalone: 'Cucumber'})
.transform({global: true}, fixGherkinLexers)
// Disabled for now due to https://github.com/AndreasMadsen/stack-chain/issues/5
//.transform({global:true}, 'uglifyify')
.require('./bundle-main', { expose: 'cucumber' })
.bundle()
.on('error', callback)
.pipe(exorcist(mapPath))
.on('error', callback)
.pipe(fs.createWriteStream(bundlePath, 'utf8'))
.on('error', callback)
.on('finish', callback);
}
};

Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -84,7 +84,6 @@
"node": ">=0.8"
},
"dependencies": {
"browserify": "5.11.1",
"coffee-script": "1.10.0",
"cucumber-html": "0.2.3",
"gherkin": "2.12.2",
Expand All @@ -96,15 +95,16 @@
"walkdir": "0.0.10"
},
"devDependencies": {
"browserify": "11.1.0",
"connect": "3.4.0",
"exorcist": "0.4.0",
"jasmine-node": "1.14.5",
"jshint": "2.8.0",
"mkdirp": "0.5.1",
"rimraf": "2.4.3",
"serve-static": "1.10.0",
"through": "2.3.8",
"uglifyify": "3.0.1",
"exorcist": "0.4.0"
"uglifyify": "3.0.1"
},
"scripts": {
"test": "jshint bundler.js bin lib spec && jasmine-node spec && node bin/cucumber.js -p build"
Expand Down
5 changes: 4 additions & 1 deletion scripts/release.js
Expand Up @@ -5,5 +5,8 @@ var Bundler = require('../bundler')
var bundlePath = path.join(__dirname, '..', 'release', 'cucumber.js');
var bundler = Bundler(bundlePath);
bundler.bundle(function (err) {
console.log(bundlePath, "written.");
if (err)
console.error(err)
else
console.log(bundlePath, "written.");
});

0 comments on commit 69c51f2

Please sign in to comment.