build: update npm dependencies

This commit is contained in:
Olivier Combe
2017-09-25 10:43:45 +02:00
committed by Alex Rickabaugh
parent 2d5ef15e08
commit df91fd032d
79 changed files with 1259 additions and 1222 deletions

View File

@ -9,6 +9,7 @@
var fs = require('fs');
var path = require('path');
// tslint:disable:no-console
module.exports = function(gulp, plugins, config) {
function symlink(relativeFolder, linkDir) {
var sourceDir = path.join('..', relativeFolder);
@ -17,7 +18,7 @@ module.exports = function(gulp, plugins, config) {
try {
fs.symlinkSync(sourceDir, linkDir, 'dir');
} catch (e) {
var sourceDir = path.join(config.dir, relativeFolder);
sourceDir = path.join(config.dir, relativeFolder);
console.log('linking failed: trying to hard copy', linkDir, sourceDir);
copyRecursiveSync(sourceDir, linkDir);
}

View File

@ -1 +1,9 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
System.import('index').catch(console.error.bind(console));

View File

@ -34,7 +34,7 @@ function watch(globs, opts, tasks) {
} catch (e) {
return tasksDone(e);
}
}
};
}
var events = opts.events = opts.events || ['add', 'change', 'unlink'];
@ -51,8 +51,7 @@ function watch(globs, opts, tasks) {
var watcher =
chokidar.watch(globs, opts).on('all', handleEvent).on('error', function(err) { throw err; });
var log =
function watchLogger(triggerCount) {
var log = function watchLogger(triggerCount) {
// Don't report change for initial event
if (!ignoreInitial && !--triggerCount) return;
@ -68,10 +67,10 @@ function watch(globs, opts, tasks) {
var now = new Date();
return now.toLocaleDateString() + ' at ' + now.toLocaleTimeString();
}
}
};
if (opts.log !== undefined && !opts.log) {
log = function noopLog(triggerCount) {}
log = function noopLog(triggerCount) {};
}
var close = watcher.close.bind(watcher);
@ -116,6 +115,7 @@ function watch(globs, opts, tasks) {
timeoutId = null;
}
if (!useRunSequence && err) {
// tslint:disable-next-line:no-console
console.log('Watch task error:', err.toString());
}
}