Skip to content

Commit

Permalink
added grunt task to transifex pulling and improved the registered tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Feb 2, 2014
1 parent 6a2f8ef commit ddf6f7b
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,25 @@ module.exports = function( grunt ){
},

shell: {
txpull: {
options: {
stdout: true
},
command: [
'cd i18n',
'tx pull -a -f',
].join( '&&' )
},
generatemos: {
options: {
stdout: true
},
command: [
'cd i18n/languages',
'for i in *.po; do msgfmt $i -o ${i%%.*}.mo; done',
'ls'
].join( '&&' )
}
},
}

});

Expand All @@ -61,7 +72,15 @@ module.exports = function( grunt ){
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );

// Register tasks
grunt.registerTask( 'default', []);
grunt.registerTask( 'dev', ['less:compile', 'cssmin', 'shell:generatemos' ] );
grunt.registerTask( 'default', [
'less',
'cssmin',
]);

grunt.registerTask( 'dev', [
'default',
'shell:txpull',
'shell:generatemos'
]);

};

0 comments on commit ddf6f7b

Please sign in to comment.