@griddo/cx 11.7.6-rc.0 → 11.7.6-rc.1

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.
Files changed (2) hide show
  1. package/gatsby-node.ts +22 -25
  2. package/package.json +4 -4
package/gatsby-node.ts CHANGED
@@ -7,46 +7,43 @@ import { isComponentLibrary } from "./exporter/utils/instance";
7
7
  import { getBuildPagesFromStore, pageSizeLog } from "./src/gatsby-node-utils";
8
8
 
9
9
  // process.env available through gatsbyBuildCommand.
10
- const showGriddoBuildLogs = JSON.parse(
11
- process.env.GRIDDO_BUILD_LOGS || "false"
12
- );
10
+ const showGriddoBuildLogs = JSON.parse(process.env.GRIDDO_BUILD_LOGS || "false");
13
11
  const assetPrefixWithDomain = process.env.SPAWN_ASSET_PREFIX_WITH_DOMAIN;
14
- const needsAssetDomainPrefix =
15
- !!assetPrefixWithDomain && assetPrefixWithDomain !== "";
12
+ const needsAssetDomainPrefix = !!assetPrefixWithDomain && assetPrefixWithDomain !== "";
16
13
  const nodeOptions = process.env.NODE_OPTIONS;
17
14
 
18
15
  const template = path.resolve("./src/components/template.tsx");
19
16
  const dbFilePath = isComponentLibrary
20
- ? path.resolve(__dirname, "../../..", ".cx-cache", "db.json")
21
- : path.resolve(__dirname, "../..", ".cx-cache", "db.json");
17
+ ? path.resolve(__dirname, "../../..", ".cx-cache", "db.json")
18
+ : path.resolve(__dirname, "../..", ".cx-cache", "db.json");
22
19
 
23
20
  const pages = getBuildPagesFromStore<GatsbyPageObject>({
24
- withSizeProp: showGriddoBuildLogs,
25
- dbFilePath,
21
+ withSizeProp: showGriddoBuildLogs,
22
+ dbFilePath,
26
23
  });
27
24
 
28
25
  const createPages: GatsbyNode["createPages"] = async ({ actions }) => {
29
- console.log(`read assetPrefixWithDomain=${assetPrefixWithDomain}`);
30
- console.log(`set needsAssetDomainPrefix=${needsAssetDomainPrefix}`);
31
- console.log(`using NODE_OPTIONS in gatsby-node.ts: ${nodeOptions}`);
26
+ console.log(`read assetPrefixWithDomain=${assetPrefixWithDomain}`);
27
+ console.log(`set needsAssetDomainPrefix=${needsAssetDomainPrefix}`);
28
+ console.log(`using NODE_OPTIONS in gatsby-node.ts: ${nodeOptions}`);
32
29
 
33
- for await (const page of pages) {
34
- if (!page) {
35
- return;
36
- }
30
+ for await (const page of pages) {
31
+ if (!page) {
32
+ return;
33
+ }
37
34
 
38
- page.component = template;
35
+ page.component = template;
39
36
 
40
- actions.createPage(page);
37
+ actions.createPage(page);
41
38
 
42
- const path = page.path;
43
- const id = page.context.id;
44
- const size = pageSizeLog(Math.round(page.size || 0));
39
+ const path = page.path;
40
+ const id = page.context.id;
41
+ const size = pageSizeLog(Math.round(page.size || 0));
45
42
 
46
- if (showGriddoBuildLogs) {
47
- console.log(`Creating page ${path} - ${id} - ${size}`);
48
- }
49
- }
43
+ if (showGriddoBuildLogs) {
44
+ console.log(`Creating page ${path} - ${id} - ${size}`);
45
+ }
46
+ }
50
47
  };
51
48
 
52
49
  export { onCreateWebpackConfig } from "./src/gatsby-node-utils";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "11.7.6-rc.0",
4
+ "version": "11.7.6-rc.1",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -46,7 +46,7 @@
46
46
  "watch:ts-lint": "tsc --noEmit --watch"
47
47
  },
48
48
  "dependencies": {
49
- "@svgr/webpack": "5.5.0",
49
+ "@svgr/webpack": "^5.0.0",
50
50
  "find-up-simple": "1.0.1",
51
51
  "gatsby": "5.15.0",
52
52
  "html-react-parser": "5.2.6",
@@ -63,7 +63,7 @@
63
63
  "cheerio": "1.1.2"
64
64
  },
65
65
  "peerDependencies": {
66
- "@griddo/core": "11.7.5",
66
+ "@griddo/core": "*",
67
67
  "@types/react": ">=18 <19",
68
68
  "@types/react-dom": ">=18 <19",
69
69
  "react": ">=18 <19",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "f66a1f3378c5f35a178406b98338533202c5105c"
92
+ "gitHead": "223e520fd758d21a2d55457978102bc1f1f35efb"
93
93
  }