@cley_faye/boilerplate 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/grunt/args.js CHANGED
@@ -128,7 +128,7 @@ const getOptionsFromGruntCLI = (optionProvider, configDef) => {
128
128
  result[keyName] = handleOptionDef(configDef[keyName], getFromOptionProvider(keyName, optionProvider));
129
129
  }
130
130
  catch (error) {
131
- throw new Error(`CLI Argument "${(0, util_js_1.camelToKebab)(keyName)}": ${error}`);
131
+ throw new Error(`CLI Argument "${(0, util_js_1.camelToKebab)(keyName)}": ${error}`, { cause: error });
132
132
  }
133
133
  });
134
134
  return result;
@@ -75,7 +75,7 @@ const createDynamicTask = (gruntConfig, targetName, pugOptions, pugTask, require
75
75
  // eslint-disable-next-line promise/prefer-await-to-then
76
76
  return pugOptions.dynamicData().then((extraData) => {
77
77
  // eslint-disable-next-line promise/always-return
78
- pugTask.options ?? (pugTask.options = {});
78
+ pugTask.options ??= {};
79
79
  pugTask.options.data = {
80
80
  ...pugTask.options.data,
81
81
  ...extraData,
@@ -93,10 +93,8 @@ const handle = (gruntConfig, targetName, sassOptions) => {
93
93
  },
94
94
  ],
95
95
  };
96
- if (sassTask.options.implementation === undefined) {
97
- // eslint-disable-next-line @typescript-eslint/no-require-imports
98
- sassTask.options.implementation = require("sass");
99
- }
96
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
97
+ sassTask.options.implementation ??= require("sass");
100
98
  const requiredTasks = [util.insertTask(gruntConfig, "sass", targetName, sassTask)];
101
99
  const watchTasks = [
102
100
  {
@@ -183,7 +183,7 @@ const registerTasks = (gruntConfig, targetName, webpackConfig) => {
183
183
  const computeWebpackResolve = (webpackOptions) => {
184
184
  const res = { ...webpackOptions.resolve };
185
185
  if (webpackOptions.typescript) {
186
- res.extensionAlias ?? (res.extensionAlias = {});
186
+ res.extensionAlias ??= {};
187
187
  res.extensionAlias[".js"] = [".ts", ".tsx", ".js", ".jsx"];
188
188
  res.extensionAlias[".mjs"] = [".mts", ".mtsx", ".mjs", ".mjsx"];
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cley_faye/boilerplate",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Boilerplate code generator for generic projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,36 +21,53 @@
21
21
  },
22
22
  "homepage": "https://github.com/CleyFaye/boilerplate#readme",
23
23
  "devDependencies": {
24
- "@eslint/js": "^9.39.0",
25
- "@keeex/eslint-config": "^2.6.0",
26
- "@types/express": "^5.0.5",
24
+ "@babel/core": "^8.1.0",
25
+ "@babel/plugin-transform-runtime": "^8.0.6",
26
+ "@babel/preset-env": "^8.0.7",
27
+ "@babel/preset-react": "^8.0.1",
28
+ "@eslint/js": "^10.0.1",
29
+ "@keeex/eslint-config": "^2.8.2",
30
+ "@types/express": "^5.0.6",
27
31
  "@types/grunt": "^0.4.32",
28
32
  "@types/http-errors": "^2.0.5",
29
33
  "@types/minimist": "^1.2.5",
30
- "@types/node": "^24.10.0",
34
+ "@types/node": "^24.19.2",
31
35
  "@types/webpack-bundle-analyzer": "^4.7.0",
32
- "eslint": "9.38",
33
- "eslint-import-resolver-typescript": "^4.4.4",
34
- "eslint-plugin-import-x": "^4.16.1",
35
- "eslint-plugin-promise": "^7.2.1",
36
- "eslint-plugin-tsdoc": "^0.4.0",
37
- "globals": "^16.5.0",
38
- "grunt": "^1.6.1",
36
+ "babel-loader": "^10.1.1",
37
+ "babel-plugin-transform-define": "^2.1.4",
38
+ "core-js": "^3.51.0",
39
+ "eslint": "^10.14.0",
40
+ "eslint-import-resolver-typescript": "^4.4.5",
41
+ "eslint-plugin-import-x": "^4.17.1",
42
+ "eslint-plugin-promise": "^7.3.0",
43
+ "eslint-plugin-tsdoc": "^0.5.4",
44
+ "express": "^5.3.0",
45
+ "globals": "^17.14.0",
46
+ "grunt": "^1.6.3",
39
47
  "grunt-banner": "^0.6.0",
40
48
  "grunt-contrib-clean": "^2.0.1",
49
+ "grunt-contrib-copy": "^1.0.0",
50
+ "grunt-contrib-pug": "^3.0.0",
51
+ "grunt-contrib-watch": "^1.1.0",
41
52
  "grunt-run": "^0.8.1",
53
+ "grunt-sass": "^4.1.0",
54
+ "grunt-webpack": "^8.0.0",
42
55
  "load-grunt-tasks": "^5.1.0",
43
56
  "logform": "^2.7.0",
44
- "prettier": "^3.6.2",
45
- "typescript": "^5.9.3",
46
- "typescript-eslint": "^8.46.2",
47
- "webpack": "^5.102.1"
57
+ "minimist": "^1.2.8",
58
+ "prettier": "^3.9.10",
59
+ "sass": "^1.107.1",
60
+ "ts-loader": "^9.6.2",
61
+ "typescript": "^6.0.3",
62
+ "typescript-eslint": "^8.72.1",
63
+ "webpack": "^5.112.2",
64
+ "webpack-bundle-analyzer": "^5.4.1"
48
65
  },
49
66
  "peerDependencies": {
50
- "@babel/core": "7.x",
51
- "@babel/plugin-transform-runtime": "7.x",
52
- "@babel/preset-env": "7.x",
53
- "@babel/preset-react": "7.x",
67
+ "@babel/core": "^8.1.0",
68
+ "@babel/plugin-transform-runtime": "^8.0.6",
69
+ "@babel/preset-env": "^8.0.7",
70
+ "@babel/preset-react": "^8.0.1",
54
71
  "babel-loader": "9.x || 10.x",
55
72
  "babel-plugin-transform-define": "2.x",
56
73
  "core-js": "3.x",
@@ -60,11 +77,11 @@
60
77
  "grunt-contrib-pug": "3.x",
61
78
  "grunt-contrib-watch": "1.x",
62
79
  "grunt-sass": "3.x||4.x",
63
- "grunt-webpack": "5.x||6.x||7.x",
80
+ "grunt-webpack": "^8.0.0",
64
81
  "minimist": "^1.2.8",
65
82
  "sass": "1.x",
66
83
  "ts-loader": "^9.4.1",
67
- "webpack-bundle-analyzer": "^4.9.1"
84
+ "webpack-bundle-analyzer": "^5.3.0"
68
85
  },
69
86
  "peerDependenciesMeta": {
70
87
  "@babel/core": {
@@ -126,5 +143,10 @@
126
143
  "/lib/**/*.js",
127
144
  "/lib/**/*.d.ts",
128
145
  "/grunt.js"
129
- ]
146
+ ],
147
+ "allowScripts": {
148
+ "@parcel/watcher": false,
149
+ "core-js": false,
150
+ "unrs-resolver": false
151
+ }
130
152
  }