-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathGruntfile.js
More file actions
24 lines (22 loc) · 809 Bytes
/
Copy pathGruntfile.js
File metadata and controls
24 lines (22 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = function(grunt) {
grunt.initConfig({
exec: {
build_source: {
cmd: 'dotnet restore src/Codefiction.TechRadar && dotnet build src/Codefiction.TechRadar'
},
build_tests: {
cmd: 'dotnet restore test/Codefiction.TechRadar.Tests && dotnet build test/Codefiction.TechRadar.Tests'
},
run_tests: {
cmd: 'dotnet test test/Codefiction.TechRadar.Tests'
},
build_pack: {
cmd: 'dotnet publish ./src/Codefiction.TechRadar -c Release -o ./dist'
}
},
clean: ['./dist/']
});
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['clean', 'exec']);
};