Skip to content

Commit

Permalink
Added clean and nuget push
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcginnes committed Aug 8, 2014
1 parent e982649 commit 2d552ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ module.exports = (grunt) ->
push: true
pushTo: 'upstream'
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
clean:
build: ['src/**/bin', 'src/**/obj', '*.nupkg']
assemblyinfo:
options:
files: ['src/AutoGrid.sln']
Expand Down Expand Up @@ -51,18 +53,23 @@ module.exports = (grunt) ->
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 'ci', ['banner','assemblyinfo','nugetrestore','msbuild','mspec','nugetpack']
grunt.registerTask 'publish', ['nugetpush']
grunt.registerTask 'ci', ['banner','clean','assemblyinfo','nugetrestore','msbuild','mspec','nugetpack']

null
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"devDependencies": {
"grunt-bump": "0.0.15",
"grunt-contrib-clean": "^0.6.0",
"grunt-dotnet-mspec": "^0.1.0",
"grunt-exec": "^0.4.5",
"grunt-nuget": "^0.1.3",
Expand Down

0 comments on commit 2d552ce

Please sign in to comment.