mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 23:15:14 -04:00
parent
010536371d
commit
de3ef202d5
1 changed files with 11 additions and 0 deletions
11
Gruntfile.js
11
Gruntfile.js
|
@ -88,11 +88,13 @@ module.exports = function (grunt) {
|
|||
);
|
||||
|
||||
grunt.registerTask("default", "Lints the code base", [
|
||||
"prettier",
|
||||
"eslint",
|
||||
"exec:repoSize",
|
||||
]);
|
||||
|
||||
grunt.registerTask("lint", "eslint");
|
||||
grunt.registerTask("format", ["prettier"]);
|
||||
|
||||
grunt.registerTask(
|
||||
"findModules",
|
||||
|
@ -127,6 +129,7 @@ module.exports = function (grunt) {
|
|||
grunt.loadNpmTasks("grunt-concurrent");
|
||||
grunt.loadNpmTasks("grunt-contrib-connect");
|
||||
grunt.loadNpmTasks("grunt-zip");
|
||||
grunt.loadNpmTasks("grunt-prettier");
|
||||
|
||||
// Project configuration
|
||||
const compileTime =
|
||||
|
@ -260,6 +263,14 @@ module.exports = function (grunt) {
|
|||
node: ["src/node/**/*.{js,mjs}"],
|
||||
tests: ["tests/**/*.{js,mjs}"],
|
||||
},
|
||||
prettier: {
|
||||
options: {
|
||||
progress: false,
|
||||
},
|
||||
files: {
|
||||
src: ["*.{js,mjs}", "src/**/*.{js,mjs}", "tests/**/*.{js,mjs}"],
|
||||
},
|
||||
},
|
||||
webpack: {
|
||||
options: webpackConfig,
|
||||
myConfig: webpackConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue