Gulp fails to produce the bundle but does not give details about the error that caused it to crash:
In my project it fails to create main.js bundle and this is all I see:
[14:53:52] Finished 'markup' after 6.05 s
[14:53:54] gulp-notify: [Error running notifier] Could not send message: error is not defined
[14:53:54] Bundled main.js in 8.28 s
{
"browser": {
"jquery": "./bower_components/jquery/dist/jquery.js",
....
"utils": "./src/javascript/utils.coffee"
},
"browserify": {
"transform": [
"browserify-shim",
"coffeeify",
"hbsfy",
"jstify"
]
},
"browserify-shim": {
"jquery": "$",
"underscore": "_",
"backbone": {
"exports": "Backbone",
"depends": [
"jquery:$",
"underscore:_"
]
},
"backbone.marionette": {
"exports": "Marionette",
"depends": [
"backbone:Backbone"
]
},
"backbone.epoxy": {
"exports": "Epoxy",
"depends": [
"backbone:Backbone"
]
},
"pusher": "Pusher"
},
"devDependencies": {
"bower": "^1.3.12",
"browser-sync": "~1.3.6",
"browserify": "^8.0.2",
"browserify-shim": "^3.8.2",
"coffeeify": "~0.7.0",
"gulp": "^3.8.7",
"gulp-autoprefixer": "^2.0.0",
"gulp-changed": "^0.4.1",
"gulp-filesize": "0.0.6",
"gulp-imagemin": "^0.6.2",
"gulp-minify-css": "^0.3.11",
"gulp-notify": "^1.4.2",
"gulp-sass": "^1.1.0",
"gulp-sourcemaps": "^1.2.8",
"gulp-uglify": "^1.0.2",
"gulp-util": "^3.0.0",
"handlebars": "^1.3.0",
"hbsfy": "~2.0.0",
"jstify": "^0.7.0",
"lodash": "^2.4.1",
"node-underscorify": "0.0.13",
"pretty-hrtime": "~0.2.1",
"require-dir": "^0.1.0",
"vinyl-source-stream": "~0.1.1",
"watchify": "^2.2.1"
},
"dependencies": {},
"scripts": {
"postinstall": "node_modules/.bin/bower install"
}
}
browserify: {
bundleConfigs: [{
entries: src + '/javascript/main.js',
dest: dest,
outputName: 'main.js',
// list of externally available modules to exclude from the bundle
extensions: ['.coffee', '.hbs', ".tpl", ".tmpl"],
external: vendors
}, {
entries: src + '/javascript/utils.coffee',
dest: dest,
outputName: 'utils.js',
external: vendors
}, {
entries: src + '/javascript/locales.coffee',
dest: dest,
outputName: 'locales.js',
external: vendors
}]
p.s. I'm new to gulp and the other tools and I don't master them, so I might have made some configuration mistakes, hence the above snippets.