init
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
output
|
||||
**/obj/**
|
||||
**/bin/**
|
||||
17
gulpfile.js
Normal file
17
gulpfile.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}));
|
||||
});
|
||||
15
package.json
Normal file
15
package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "gulp-dotnet-cli-test",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-dotnet-cli": "^1.0.2"
|
||||
}
|
||||
}
|
||||
8
src/gulptst/Class1.cs
Normal file
8
src/gulptst/Class1.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace gulptst
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
}
|
||||
7
src/gulptst/gulptst.csproj
Normal file
7
src/gulptst/gulptst.csproj
Normal file
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user