Skip to content

Commit 12a8064

Browse files
committed
chore(gulpfile.js): Fix some hint issues in gulpfile.js
Closes angular#3905
1 parent ad1bd5f commit 12a8064

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

gulpfile.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,8 @@ gulp.task('versions.dart', function() {
531531

532532
// Reuse the Travis scripts
533533
// TODO: rename test_*.sh to test_all_*.sh
534-
gulp.task('test.all.js', shell.task(['./scripts/ci/test_js.sh']))
535-
gulp.task('test.all.dart', shell.task(['./scripts/ci/test_dart.sh']))
534+
gulp.task('test.all.js', shell.task(['./scripts/ci/test_js.sh']));
535+
gulp.task('test.all.dart', shell.task(['./scripts/ci/test_dart.sh']));
536536

537537
// karma tests
538538
// These tests run in the browser and are allowed to access
@@ -590,7 +590,7 @@ gulp.task('test.unit.js.sauce', ['build.js.dev'], function (done) {
590590
captureTimeout: 120000,
591591
reporters: ['dots'],
592592
browsers: browserConf.browsersToRun},
593-
function(err) {done(); process.exit(err ? 1 : 0)});
593+
function(err) {done(); process.exit(err ? 1 : 0);});
594594
} else {
595595
throw new Error('ERROR: no Saucelabs browsers provided, add them with the --browsers option');
596596
}
@@ -688,7 +688,7 @@ gulp.task('test.unit.js/ci', function (done) {
688688
gulp.task('test.unit.js.sauce/ci', function (done) {
689689
karma.server.start({configFile: __dirname + '/karma-js.conf.js',
690690
singleRun: true, browserNoActivityTimeout: 240000, captureTimeout: 120000, reporters: ['dots', 'saucelabs'], browsers: sauceConf.aliases.CI},
691-
function(err) {done(); process.exit(err ? 1 : 0)});
691+
function(err) {done(); process.exit(err ? 1 : 0);});
692692
});
693693

694694
gulp.task('test.unit.dart/ci', function (done) {
@@ -864,12 +864,12 @@ gulp.task('build/pure-packages.dart', function() {
864864
// path: ../angular2
865865
//
866866
var pubspec = yaml.safeLoad(file.contents.toString());
867-
var overrides = pubspec['dependency_overrides'];
867+
var overrides = pubspec.dependency_overrides;
868868
if (overrides) {
869869
Object.keys(overrides).forEach(function(pkg) {
870-
var overridePath = overrides[pkg]['path'];
870+
var overridePath = overrides[pkg].path;
871871
if (overridePath.startsWith(originalPrefix)) {
872-
overrides[pkg]['path'] = overridePath.replace(originalPrefix, '../');
872+
overrides[pkg].path = overridePath.replace(originalPrefix, '../');
873873
}
874874
});
875875
file.contents = new Buffer(yaml.safeDump(pubspec));
@@ -1025,7 +1025,7 @@ gulp.task('!bundle.js.prod', ['build.js.prod'], function() {
10251025
{
10261026
sourceMaps: true
10271027
}
1028-
)
1028+
);
10291029
});
10301030
});
10311031

@@ -1048,7 +1048,7 @@ gulp.task('!bundle.js.min', ['build.js.prod'], function() {
10481048
sourceMaps: true,
10491049
minify: true
10501050
}
1051-
)
1051+
);
10521052
});
10531053
});
10541054

@@ -1288,7 +1288,7 @@ gulp.task('build.dart.material.css', function() {
12881288
});
12891289

12901290
gulp.task('build.dart.material', ['build/packages.dart'], function(done) {
1291-
runSequence('build/packages.dart', 'build.dart.material.css', sequenceComplete(done))
1291+
runSequence('build/packages.dart', 'build.dart.material.css', sequenceComplete(done));
12921292
});
12931293

12941294
gulp.task('cleanup.builder', function() {

0 commit comments

Comments
 (0)