From de3ef202d5f872bdb55f4c891c80c13ad121fe54 Mon Sep 17 00:00:00 2001 From: Hare Sudhan Date: Sun, 25 Feb 2024 16:23:41 -0500 Subject: [PATCH] Revert "revert gruntfile" This reverts commit 010536371dc7e970845d14ffb22eb7cd34eddc3c. --- Gruntfile.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 0feed4e1..c2ba1186 100755 --- a/Gruntfile.js +++ b/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,