-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
executable file
·75 lines (70 loc) · 2.23 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
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/MultiStyle.sln']
info:
title: '<%= pkg.name %>'
description: 'Compose your WPF styles just like in CSS.'
configuration: 'Debug'
company: '<%= pkg.company %>'
product: '<%= pkg.name %>'
copyright: 'Copyright 2014 © <%= pkg.company %>'
trademark: '<%= pkg.company %>'
version: '<%= pkg.version %>'
fileVersion: '<%= pkg.version %>'
nugetrestore:
restore:
src: 'src/MultiStyle.sln'
dest: 'src/packages/'
msbuild:
src: ['src/MultiStyle.sln']
options:
projectConfiguration: 'Debug'
targets: ['Clean', 'Rebuild']
stdout: true
version: 4.0
verbosity: 'quiet'
xunit:
tests:
src: ['src/**/bin/Debug/*.Tests.dll']
nugetpack:
dist:
src: 'src/MultiStyle/MultiStyle.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.loadNpmTasks 'grunt-xunit'
grunt.registerTask 'default', ['ci']
grunt.registerTask 'publish', ['banner','bump','nugetpush']
grunt.registerTask 'release', ['publish']
grunt.registerTask 'deploy', ['publish']
grunt.registerTask 'ci', ['banner','clean','assemblyinfo','nugetrestore','msbuild','xunit','nugetpack']
null