mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
ESM: 'grunt test' now generates configs before running
This commit is contained in:
parent
4e38b09e18
commit
30aa4e05ef
1 changed files with 8 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
grunt.registerTask("test",
|
grunt.registerTask("test",
|
||||||
"A task which runs all the tests in test/tests.",
|
"A task which runs all the tests in test/tests.",
|
||||||
["exec:tests"]);
|
["exec:generateConfig", "exec:tests"]);
|
||||||
|
|
||||||
grunt.registerTask("docs",
|
grunt.registerTask("docs",
|
||||||
"Compiles documentation in the /docs directory.",
|
"Compiles documentation in the /docs directory.",
|
||||||
|
@ -362,6 +362,13 @@ module.exports = function (grunt) {
|
||||||
sitemap: {
|
sitemap: {
|
||||||
command: "node build/prod/sitemap.js > build/prod/sitemap.xml"
|
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: {
|
tests: {
|
||||||
command: "node --experimental-modules test/index.mjs"
|
command: "node --experimental-modules test/index.mjs"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue