wasBayesSharp – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 module.exports = function(grunt) {
2 require('load-grunt-tasks')(grunt);
3 require('time-grunt')(grunt);
4  
5 grunt.initConfig({
6  
7 pkg: grunt.file.readJSON('package.json'),
8  
9 nugetpush: {
10 dist: {
11 src: 'pub/BayesSharp.<%= pkg.version %>.0.nupkg'
12 }
13 },
14  
15 shell: {
16 nugetpack: {
17 options: {
18 stdout: true
19 },
20 command: 'md pub & nuget pack BayesSharp/BayesSharp.csproj -Prop Configuration=Release -OutputDirectory pub'
21 }
22 },
23  
24 assemblyinfo: {
25 options: {
26 files: ['BayesSharp/BayesSharp.csproj', 'Tests/UnitTests/UnitTests.csproj'],
27 info: {
28 description: '<%= pkg.description %>',
29 configuration: 'Release',
30 company: '<%= pkg.author %>',
31 product: '<%= pkg.name %>',
32 copyright: 'Copyright © <%= pkg.author %> ' + (new Date().getYear() + 1900),
33 version: '<%= pkg.version %>.0',
34 fileVersion: '<%= pkg.version %>.0'
35 }
36 }
37 },
38  
39 msbuild: {
40 src: ['BayesSharp.sln'],
41 options: {
42 verbosity: 'minimal',
43 projectConfiguration: 'Release',
44 version: 4.0,
45 targets: ['Clean', 'Rebuild'],
46 stdout: true
47 }
48 },
49  
50 nunit: {
51 options: {
52 files: ['Tests/UnitTests/bin/Release/BayesSharp.UnitTests.dll']
53 }
54 }
55  
56 });
57 grunt.registerTask('default', ['assemblyinfo', 'msbuild', 'nunit', 'shell:nugetpack']);
58 grunt.registerTask('push', ['default', 'nugetpush']);
59 };