I am trying to modify a script task that I borrowed from here ; after successfully completing a runner task in Visual Studio 2015 Task Runner Explorer , the files are not actually copied.
Here is the modified script:
/// <binding BeforeBuild='copy-assets' /> "use strict"; var _ = require('lodash'), gulp = require('gulp'); gulp.task('copy-assets', function() { var assets = { js: [ './node_modules/bootstrap/dist/js/bootstrap.js', './node_modules/systemjs/dist/system.src.js', './node_modules/angular2/bundles/angular2.dev.js', './node_modules/angular2/bundles/router.dev.js', './node_modules/angular2/bundles/angular2-polyfills.js', './node_modules/angular2/bundles/http.dev.js', './node_modules/rxjs/bundles/Rx.js', './node_modules/typescript/lib/typescript.js' ], css: ['./node_modules/bootstrap/dist/css/bootstrap.css'] }; _(assets).forEach(function(assets, type) { gulp.src(assets).pipe(gulp.dest('./webroot/' + type)); }); });
It seems that the task runner works without errors in Visual Studio 2015 Enterprise , but after that there are no files in my wwwroot / js or wwwroot / css

Here is the file structure:

What am I doing wrong and how to fix it? Any help is appreciated!
angular npm asp.net-core asp.net-core-mvc gulp
David Pine Jan 6 '16 at 15:17 2016-01-06 15:17
source share