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 11module . exports = function ( grunt ) {
22
33 grunt . initConfig ( {
4+ pkg : grunt . file . readJSON ( 'package.json' ) ,
45 meta : {
56 banner :
67 '/*' +
@@ -52,6 +53,38 @@ module.exports = function (grunt) {
5253 grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
5354 grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
5455 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+ } ) ;
5588
5689 // Default task(s).
5790 grunt . registerTask ( 'default' , [ 'concat:basic' , 'uglify:basic' , 'qunit' ] ) ;
You can’t perform that action at this time.
0 commit comments