Browse Source

ESM: Added generateConfig calls to relevant grunt tasks

n1474335 7 years ago
parent
commit
ebcc5bd9c8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Gruntfile.js

+ 3 - 3
Gruntfile.js

@@ -26,7 +26,7 @@ module.exports = function (grunt) {
 
 
     grunt.registerTask("node",
     grunt.registerTask("node",
         "Compiles CyberChef into a single NodeJS module.",
         "Compiles CyberChef into a single NodeJS module.",
-        ["clean:node", "clean:config", "webpack:node", "chmod:build"]);
+        ["clean:node", "clean:config", "exec:generateConfig", "webpack:node", "chmod:build"]);
 
 
     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.",
@@ -38,7 +38,7 @@ module.exports = function (grunt) {
 
 
     grunt.registerTask("prod",
     grunt.registerTask("prod",
         "Creates a production-ready build. Use the --msg flag to add a compile message.",
         "Creates a production-ready build. Use the --msg flag to add a compile message.",
-        ["eslint", "clean:prod", "webpack:web", "inline", "chmod"]);
+        ["eslint", "clean:prod", "exec:generateConfig", "webpack:web", "inline", "chmod"]);
 
 
     grunt.registerTask("default",
     grunt.registerTask("default",
         "Lints the code base",
         "Lints the code base",
@@ -46,7 +46,7 @@ module.exports = function (grunt) {
 
 
     grunt.registerTask("inline",
     grunt.registerTask("inline",
         "Compiles a production build of CyberChef into a single, portable web page.",
         "Compiles a production build of CyberChef into a single, portable web page.",
-        ["webpack:webInline", "runInliner", "clean:inlineScripts"]);
+        ["exec:generateConfig", "webpack:webInline", "runInliner", "clean:inlineScripts"]);
 
 
 
 
     grunt.registerTask("runInliner", runInliner);
     grunt.registerTask("runInliner", runInliner);