Files
gulp-dotnet-cli-testing/gulpfile.js
Tommy Parnell a0b41d465e init
2018-01-03 22:55:26 -05:00

17 lines
446 B
JavaScript

let {restore, build, pack} = require('gulp-dotnet-cli');
const path = require('path');
let gulp = require('gulp');
let nupkgPath = path.resolve(process.cwd(), 'output');
console.log(nupkgPath);
gulp.task('pack', ()=>{
return gulp.src('**/*.csproj')
.pipe(restore())
.pipe(build())
.pipe(pack({
output: nupkgPath,
noBuild: true,
noRestore: true,
echo: true
}));
});