aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/tasks/nuget.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/tasks/nuget.js')
-rw-r--r--library/moment/tasks/nuget.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/moment/tasks/nuget.js b/library/moment/tasks/nuget.js
new file mode 100644
index 000000000..7827b2400
--- /dev/null
+++ b/library/moment/tasks/nuget.js
@@ -0,0 +1,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'
+ ]);
+};