This repository was archived by the owner on Apr 20, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( grunt ) {
2
2
3
3
grunt . initConfig ( {
4
+ pkg : grunt . file . readJSON ( 'package.json' ) ,
4
5
meta : {
5
6
banner :
6
7
'/*' +
@@ -52,6 +53,38 @@ module.exports = function (grunt) {
52
53
grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
53
54
grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
54
55
grunt . loadNpmTasks ( 'grunt-contrib-qunit' ) ;
56
+ grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
57
+ grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
58
+
59
+ grunt . registerTask ( 'nuget' , 'Register NuGet-RxJSjQuery' , function ( ) {
60
+ var done = this . async ( ) ;
61
+
62
+ //invoke nuget.exe
63
+ grunt . util . spawn ( {
64
+ cmd : ".nuget/nuget.exe" ,
65
+ args : [
66
+ //specify the .nuspec file
67
+ "pack" ,
68
+ "nuget/RxJS-Bridges-jQuery/RxJS-Bridges-jQuery.nuspec" ,
69
+
70
+ //specify where we want the package to be created
71
+ "-OutputDirectory" ,
72
+ "nuget" ,
73
+
74
+ //override the version with whatever is currently defined in package.json
75
+ "-Version" ,
76
+ grunt . config . get ( "pkg" ) . version
77
+ ]
78
+ } , function ( error , result ) {
79
+ if ( error ) {
80
+ grunt . log . error ( error ) ;
81
+ } else {
82
+ grunt . log . write ( result ) ;
83
+ }
84
+
85
+ done ( ) ;
86
+ } ) ;
87
+ } ) ;
55
88
56
89
// Default task(s).
57
90
grunt . registerTask ( 'default' , [ 'concat:basic' , 'uglify:basic' , 'qunit' ] ) ;
You can’t perform that action at this time.
0 commit comments