From b7fd862aa633fe942160116725ca2966676d52ae Mon Sep 17 00:00:00 2001 From: Sam Lanning Date: Sat, 23 Jan 2016 10:28:43 +0000 Subject: [PATCH] Create tx task which performs 'tx pull' followed by 'locale-patch' // FREEBIE --- Gruntfile.js | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 45aecffd..6f133f2a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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']); diff --git a/package.json b/package.json index d1b2adc3..77e4da7c 100644 --- a/package.json +++ b/package.json @@ -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"