File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ module.exports = function(grunt) {
8585 grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
8686 grunt . loadNpmTasks ( 'grunt-jasmine-node' ) ;
8787
88- grunt . registerTask ( 'bower' , 'Creates an updated bower.json to the dist folder ' , function ( ) {
88+ grunt . registerTask ( 'bower' , 'Creates an updated bower.json' , function ( ) {
8989 var done = this . async ( ) ;
9090 fs . readFile ( './templates/bower.json' , 'UTF-8' , function ( e , text ) {
9191 if ( e ) {
@@ -96,13 +96,13 @@ module.exports = function(grunt) {
9696 text = text . replace ( '{{sdk_version}}' , package_info . version ) ;
9797 text = text . replace ( '{{description}}' , package_info . description ) ;
9898 text = text . replace ( '{{license}}' , package_info . license ) ;
99- fs . writeFile ( './dist/ bower.json' , text , function ( e ) {
99+ fs . writeFile ( './bower.json' , text , function ( e ) {
100100 if ( e ) {
101101 console . err ( 'A problem occured while creating bower.json' ) ;
102102 done ( ) ;
103103 return ;
104104 }
105- console . log ( "Wrote bower.json file in app/sdk-js/dist/ " ) ;
105+ console . log ( "Wrote bower.json file" ) ;
106106 done ( ) ;
107107 } ) ;
108108 } ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " oauth-js" ,
33 "version" : " {{sdk_version}}" ,
4- "main" : " oauth.min.js" ,
4+ "main" : " dist/ oauth.min.js" ,
55 "description" : " {{description}}" ,
6- "license" : " {{license}}"
6+ "license" : " {{license}}" ,
7+ "ignore" : [
8+ " coffee" ,
9+ " coverage" ,
10+ " js" ,
11+ " node_modules" ,
12+ " tests" ,
13+ " templates" ,
14+ " Gruntfile.js" ,
15+ " package.json" ,
16+ " .gitignore"
17+ ]
718}
You can’t perform that action at this time.
0 commit comments