forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuget.js
29 lines (27 loc) · 825 Bytes
/
nuget.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
module.exports = function (grunt) {
// If this fails you might need to follow:
//
// http://stackoverflow.com/questions/15181888/nuget-on-linux-error-getting-response-stream
//
// $ sudo mozroots --import --machine --sync
// $ sudo certmgr -ssl -m https://go.microsoft.com
// $ sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
// $ sudo certmgr -ssl -m https://nuget.org
grunt.config('nugetpack', {
dist: {
src: 'Moment.js.nuspec',
dest: './'
}
});
grunt.config('nugetpush', {
dist: {
src: 'Moment.js.*.nupkg'
}
});
grunt.config('clean.nuget', {
src: 'Moment.js.*.nupkg'
});
grunt.registerTask('nuget-publish', [
'nugetpack', 'nugetpush', 'clean:nuget'
]);
};