Create tx task which performs 'tx pull' followed by 'locale-patch'

// FREEBIE
This commit is contained in:
Sam Lanning 2016-01-23 10:28:43 +00:00 committed by lilia
parent c5a9714a0a
commit b7fd862aa6
2 changed files with 7 additions and 0 deletions

View file

@ -189,6 +189,11 @@ module.exports = function(grunt) {
}
}
},
exec: {
'tx-pull': {
cmd: 'tx pull'
}
}
});
Object.keys(grunt.config.get('pkg').devDependencies).forEach(function(key) {
@ -217,6 +222,7 @@ module.exports = function(grunt) {
});
});
grunt.registerTask('tx', ['exec:tx-pull', 'locale-patch']);
grunt.registerTask('dev', ['default', 'connect', 'watch']);
grunt.registerTask('test', ['jshint', 'jscs', 'connect', 'saucelabs-mocha']);
grunt.registerTask('default', ['concat', 'sass', 'locale-patch', 'copy']);

View file

@ -12,6 +12,7 @@
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-sass": "^0.8.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"grunt-jscs": "^1.1.0",
"grunt-preen": "^1.0.0",
"grunt-saucelabs": "^8.3.3"