-
Notifications
You must be signed in to change notification settings - Fork 15
/
Gruntfile.coffee
77 lines (72 loc) · 2.3 KB
/
Gruntfile.coffee
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = (grunt) ->
require('time-grunt')(grunt)
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
bump:
options:
files: ['package.json']
updateConfigs: []
commit: true
commitMessage: 'Release v%VERSION%'
commitFiles: ['package.json']
createTag: true
tagName: 'v%VERSION%'
tagMessage: 'Version %VERSION%'
push: true
pushTo: 'upstream'
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
clean:
build: ['src/**/bin', 'src/**/obj', '*.nupkg']
assemblyinfo:
options:
files: ['src/AutoGrid.sln']
info:
title: '<%= pkg.name %>'
description: 'Magical replacement for the default WPF Grid.'
configuration: 'Debug'
company: '<%= pkg.company %>'
product: '<%= pkg.name %>'
copyright: 'Copyright 2015 © <%= pkg.company %>'
trademark: '<%= pkg.company %>'
version: '<%= pkg.version %>'
fileVersion: '<%= pkg.version %>'
nugetrestore:
restore:
src: 'src/AutoGrid.sln'
dest: 'src/packages/'
msbuild:
src: ['src/AutoGrid.sln']
options:
projectConfiguration: 'Debug'
targets: ['Clean', 'Rebuild']
stdout: true
version: 4.0
verbosity: 'quiet'
mspec:
options:
toolsPath: 'src/packages/Machine.Specifications.0.8.1/tools'
output: 'reports/mspec'
specs:
src: ['src/**/bin/Debug/*.Tests.dll']
nugetpack:
dist:
src: 'src/AutoGrid/AutoGrid.csproj'
dest: '.'
nugetpush:
dist:
src: '*.nupkg'
grunt.task.registerTask 'banner', () ->
console.log(grunt.file.read('banner.txt'))
# grunt.loadNpmTasks 'grunt-exec'
grunt.loadNpmTasks 'grunt-bump'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-dotnet-assembly-info'
grunt.loadNpmTasks 'grunt-msbuild'
grunt.loadNpmTasks 'grunt-nuget'
grunt.loadNpmTasks 'grunt-dotnet-mspec'
grunt.registerTask 'default', ['ci']
grunt.registerTask 'publish', ['banner','nugetpush']
grunt.registerTask 'release', ['publish']
grunt.registerTask 'deploy', ['publish']
grunt.registerTask 'ci', ['banner','clean','assemblyinfo','nugetrestore','msbuild','mspec','nugetpack']
null