-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathgulpfile.js
More file actions
38 lines (34 loc) · 1.08 KB
/
gulpfile.js
File metadata and controls
38 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const gulp = require('gulp');
const exec = require('gulp-exec');
const options = {
continueOnError: false, // default = false, true means don't emit error event
pipeStdout: false // default = false, true means stdout is written to file.contents
};
var reportOptions = {
err: true, // default = true, false means don't write err
stderr: true, // default = true, false means don't write stderr
stdout: true // default = true, false means don't write stdout
};
gulp.task('auth', function() {
return gulp
.src('./**')
.pipe(
exec(
'dotnet run --no-build --project ./src/AspNetCore.IdentityServer4.Auth/AspNetCore.IdentityServer4.Auth.csproj'
)
)
.pipe(exec.reporter(reportOptions));
});
gulp.task('webapi', function() {
return gulp
.src('./**')
.pipe(
exec(
'dotnet run --no-build --project ./src/AspNetCore.IdentityServer4.WebApi/AspNetCore.IdentityServer4.WebApi.csproj'
)
)
.pipe(exec.reporter(reportOptions));
});
gulp.task('run', gulp.parallel('auth', 'webapi', function(){
console.log('Excuted...');
}));