@genesislcap/webpack-builder 15.66.0 → 15.67.0

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/README.md CHANGED
@@ -15,6 +15,16 @@ likely contain npm scripts to simply this:
15
15
 
16
16
  `"dev:webpack:https": "genx dev --https -b webpack"`
17
17
 
18
+ # Web app manifest
19
+
20
+ The `pwa` option in `genx.config.ts` generates a web app manifest and icons with
21
+ [webpack-pwa-manifest](https://github.com/arthurbergmz/webpack-pwa-manifest). The builder doesn't
22
+ install it, so an app that sets `pwa` needs it in its own devDependencies:
23
+
24
+ ```shell
25
+ npm install --save-dev webpack-pwa-manifest@^4.3.0
26
+ ```
27
+
18
28
 
19
29
 
20
30
  ## Installation
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAiB7C,eAAO,MAAM,OAAO,GAAI,KAAK,YAAY,KAAG,aAAa,CAAC,SAAS,CA8ElE,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/config/plugins.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAkC7C,eAAO,MAAM,OAAO,GAAI,KAAK,YAAY,KAAG,aAAa,CAAC,SAAS,CA8ElE,CAAC"}
@@ -11,10 +11,22 @@ const html_webpack_plugin_1 = tslib_1.__importDefault(require("html-webpack-plug
11
11
  const mini_css_extract_plugin_1 = tslib_1.__importDefault(require("mini-css-extract-plugin"));
12
12
  const webpack_1 = require("webpack");
13
13
  const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
14
- const webpack_pwa_manifest_1 = tslib_1.__importDefault(require("webpack-pwa-manifest"));
15
14
  const webpackbar_1 = tslib_1.__importDefault(require("webpackbar"));
16
15
  const workbox_webpack_plugin_1 = require("workbox-webpack-plugin");
17
16
  const federation_1 = require("./federation");
17
+ const createPwaManifestPlugin = (options) => {
18
+ let PwaManifestPlugin;
19
+ try {
20
+ PwaManifestPlugin = require('webpack-pwa-manifest');
21
+ }
22
+ catch (error) {
23
+ if (error.code !== 'MODULE_NOT_FOUND') {
24
+ throw error;
25
+ }
26
+ throw new Error('The genx `pwa` option needs webpack-pwa-manifest. Add it to your app: npm install --save-dev webpack-pwa-manifest@^4.3.0');
27
+ }
28
+ return new PwaManifestPlugin(options);
29
+ };
18
30
  const getTemplate = (cwd) => {
19
31
  const templateApp = (0, node_path_1.resolve)(cwd, 'index.html');
20
32
  const template = (0, node_fs_1.existsSync)(templateApp)
@@ -69,7 +81,7 @@ const plugins = (ctx) => {
69
81
  openAnalyzer: false,
70
82
  }),
71
83
  pwa &&
72
- new webpack_pwa_manifest_1.default(Object.assign(Object.assign({}, (0, build_kit_1.objToSnakeCase)(pwa)), { name: pwa.name, icons: Array.isArray(pwa.icons) &&
84
+ createPwaManifestPlugin(Object.assign(Object.assign({}, (0, build_kit_1.objToSnakeCase)(pwa)), { name: pwa.name, icons: Array.isArray(pwa.icons) &&
73
85
  pwa.icons.map((icon) => ({
74
86
  sizes: icon.sizes,
75
87
  src: (0, node_path_1.resolve)(cwd, icon.src),
@@ -13,6 +13,10 @@ export declare const appStyleRules: {
13
13
  postcssOptions: {
14
14
  plugins: (string | (string | {
15
15
  browsers: string;
16
+ features: {
17
+ 'float-clear-logical-values': boolean;
18
+ 'logical-properties-and-values': boolean;
19
+ };
16
20
  })[])[];
17
21
  };
18
22
  };
@@ -32,6 +36,10 @@ export declare const appStyleRules: {
32
36
  postcssOptions: {
33
37
  plugins: (string | (string | {
34
38
  browsers: string;
39
+ features: {
40
+ 'float-clear-logical-values': boolean;
41
+ 'logical-properties-and-values': boolean;
42
+ };
35
43
  })[])[];
36
44
  };
37
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"styleRules.d.ts","sourceRoot":"","sources":["../../../src/config/rules/styleRules.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAC"}
1
+ {"version":3,"file":"styleRules.d.ts","sourceRoot":"","sources":["../../../src/config/rules/styleRules.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAC"}
@@ -17,6 +17,11 @@ const postCSSLoader = () => ({
17
17
  'postcss-preset-env',
18
18
  {
19
19
  browsers: 'last 2 versions',
20
+ // since v8 these fallbacks assume left-to-right, which breaks RTL; browsers support them natively
21
+ features: {
22
+ 'float-clear-logical-values': false,
23
+ 'logical-properties-and-values': false,
24
+ },
20
25
  },
21
26
  ],
22
27
  ],
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@genesislcap/webpack-builder",
3
3
  "description": "Webpack builder",
4
- "version": "15.66.0",
4
+ "version": "15.67.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "engines": {
9
- "node": ">=22.0.0"
9
+ "node": ">=22.15.0"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "npm run clean && tsc -b ./tsconfig.json && npm run copyfiles",
@@ -17,13 +17,13 @@
17
17
  "lint:fix": "genx lint -l ox --fix"
18
18
  },
19
19
  "dependencies": {
20
- "@genesislcap/build-kit": "15.66.0",
20
+ "@genesislcap/build-kit": "15.67.0",
21
21
  "@pixability-ui/federated-types": "^0.2.0",
22
22
  "@types/webpack-env": "^1.18.4",
23
23
  "camel-case": "^4.1.2",
24
24
  "circular-dependency-plugin": "^5.2.2",
25
25
  "consola": "^3.0.2",
26
- "copy-webpack-plugin": "^11.0.0",
26
+ "copy-webpack-plugin": "^14.0.0",
27
27
  "css-loader": "^6.6.0",
28
28
  "handlebars-loader": "^1.7.3",
29
29
  "html-loader": "^3.1.0",
@@ -32,21 +32,29 @@
32
32
  "postcss": "^8.4.31",
33
33
  "postcss-import": "^14.0.0",
34
34
  "postcss-loader": "^6.2.1",
35
- "postcss-preset-env": "^7.0.1",
35
+ "postcss-preset-env": "^11.0.0",
36
36
  "style-loader": "^3.3.1",
37
37
  "terser-webpack-plugin": "^5.3.1",
38
- "ts-loader": "9.3.1",
39
- "webpack": "^5.91.0",
38
+ "ts-loader": "^9.6.2",
39
+ "webpack": "^5.101.0",
40
40
  "webpack-bundle-analyzer": "^4.10.1",
41
- "webpack-dev-server": "^5.0.4",
41
+ "webpack-dev-server": "^6.0.0",
42
42
  "webpack-merge": "^5.10.0",
43
- "webpack-pwa-manifest": "^4.3.0",
44
43
  "webpackbar": "^7.0.0",
45
44
  "workbox-webpack-plugin": "^7.0.0"
46
45
  },
47
46
  "devDependencies": {
48
47
  "copyfiles": "^2.4.1",
49
- "pkg-types": "^1.0.2"
48
+ "pkg-types": "^1.0.2",
49
+ "webpack-pwa-manifest": "^4.3.0"
50
+ },
51
+ "peerDependencies": {
52
+ "webpack-pwa-manifest": "^4.3.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "webpack-pwa-manifest": {
56
+ "optional": true
57
+ }
50
58
  },
51
59
  "repository": {
52
60
  "type": "git",