build: update npm dependencies
This commit is contained in:

committed by
Alex Rickabaugh

parent
2d5ef15e08
commit
df91fd032d
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user