Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Add missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
greypants committed Feb 10, 2015
1 parent c64268c commit 9704308
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions gulp/tasks/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ var browserifyTask = function(callback, devMode) {

if(devMode) {
// Add watchify args and debug (sourcemaps) option
_.extend(bundleConfig, watchify.args, { debug: true })
_.extend(bundleConfig, watchify.args, { debug: true });
// A watchify require/external bug that prevents proper recompiling,
// so (for now) we'll ignore these options during development
bundleConfig = _.omit(bundleConfig, ['external', 'require'])
bundleConfig = _.omit(bundleConfig, ['external', 'require']);
}

var b = browserify(bundleConfig);
Expand Down Expand Up @@ -57,19 +57,19 @@ var browserifyTask = function(callback, devMode) {
b = watchify(b);
// Rebundle on update
b.on('update', bundle);
bundleLogger.watch(bundleConfig.outputName)
bundleLogger.watch(bundleConfig.outputName);
} else {
// Sort out shared dependencies.
// b.require exposes modules externally
if(bundleConfig.require) b.require(bundleConfig.require)
if(bundleConfig.require) b.require(bundleConfig.require);
// b.external excludes modules from the bundle, and expects
// they'll be available externally
if(bundleConfig.external) b.external(bundleConfig.external)
if(bundleConfig.external) b.external(bundleConfig.external);
}

var reportFinished = function() {
// Log when bundling completes
bundleLogger.end(bundleConfig.outputName)
bundleLogger.end(bundleConfig.outputName);

if(bundleQueue) {
bundleQueue--;
Expand All @@ -91,4 +91,4 @@ var browserifyTask = function(callback, devMode) {
gulp.task('browserify', browserifyTask);

// Exporting the task so we can call it directly in our watch task, with the 'devMode' option
module.exports = browserifyTask
module.exports = browserifyTask;
2 changes: 1 addition & 1 deletion gulp/tasks/karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var karmaTask = function(done) {
karma.server.start({
configFile: process.cwd() + '/karma.conf.js',
singleRun: true
}, done)
}, done);
};

gulp.task('karma', karmaTask);
Expand Down
2 changes: 1 addition & 1 deletion gulp/tasks/markup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var gulp = require('gulp');
var config = require('../config').markup
var config = require('../config').markup;
var browserSync = require('browser-sync');

gulp.task('markup', function() {
Expand Down
2 changes: 1 addition & 1 deletion gulp/tasks/watchify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var gulp = require('gulp');
var browserifyTask = require('./browserify')
var browserifyTask = require('./browserify');

gulp.task('watchify', function(callback) {
// Start browserify task with devMode === true
Expand Down

0 comments on commit 9704308

Please sign in to comment.