forked from davidebbo/WAWSDeploy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
40 lines (35 loc) · 910 Bytes
/
Gruntfile.js
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ["dist"],
shell: {
makeDir: {
command: 'mkdir dist'
}
},
nugetpack: {
dist: {
src: 'WAWSDeploy/*.nuspec',
dest: 'dist/'
}
},
nugetpush: {
dist: {
src: 'dist/*.nupkg',
options: {
source: "http://chocolatey.org/"
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-clean');
// load the shell plugin for cmd goodies
grunt.loadNpmTasks('grunt-shell');
// Load the plugin that provides the "nuget" task.
grunt.loadNpmTasks('grunt-nuget');
// Default task(s).
grunt.registerTask('default', ['clean', 'shell', 'nugetpack']);
// Build and publish to nuget task
grunt.registerTask('publish', ['clean', 'shell', 'nugetpack', 'nugetpush']);
};