From e551fdef071e59eb4b2b9d34012edd7cd60ae824 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Thu, 25 Aug 2022 10:44:37 +0300 Subject: [PATCH] data: allow running pipeline without wiping temp Data pipeline ran with separate versions use different folders, so it makes sense to allow running multiple data pipelines without wiping in between. The default is still to wipe clean, so nobody will get caught by surprise. --- tasks/data.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/data.js b/tasks/data.js index e24195cb..37be2001 100644 --- a/tasks/data.js +++ b/tasks/data.js @@ -4,7 +4,9 @@ module.exports = function (grunt) { grunt.registerTask('data', 'Build timezone data.', function (version) { version = version || 'latest'; - grunt.task.run('clean:data'); + if (!grunt.option('dirty-run')) { + grunt.task.run('clean:data'); + } grunt.task.run([ 'data-download:' + version,