17 lines
446 B
JavaScript
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
|
|
}));
|
|
}); |