From 30aa4e05ef71d6cbf375d6d3e93003dece39b6fe Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 11 Apr 2018 18:08:42 +0000 Subject: [PATCH] ESM: 'grunt test' now generates configs before running --- Gruntfile.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 57d36c2e..df06ba2e 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -30,7 +30,7 @@ module.exports = function (grunt) { grunt.registerTask("test", "A task which runs all the tests in test/tests.", - ["exec:tests"]); + ["exec:generateConfig", "exec:tests"]); grunt.registerTask("docs", "Compiles documentation in the /docs directory.", @@ -362,6 +362,13 @@ module.exports = function (grunt) { sitemap: { command: "node build/prod/sitemap.js > build/prod/sitemap.xml" }, + generateConfig: { + command: [ + "node --experimental-modules src/core/config/scripts/generateOpsIndex.mjs", + "node --experimental-modules src/core/config/scripts/generateConfig.mjs", + "echo ---\nConfig scripts finished.\n---\n" + ].join(";") + }, tests: { command: "node --experimental-modules test/index.mjs" }