@griddo/cx 1.75.178 → 1.75.180
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 +22 -14
- package/build/index.js +49 -0
- package/gatsby-browser.tsx +140 -0
- package/gatsby-config.ts +40 -0
- package/gatsby-node.ts +130 -0
- package/gatsby-ssr.tsx +63 -0
- package/index.js +4 -0
- package/package.json +119 -100
- package/scripts/build-reset.ts +9 -0
- package/scripts/griddo-exporter.ts +302 -0
- package/src/components/Head.tsx +207 -0
- package/src/components/template.tsx +90 -0
- package/src/components/types.ts +35 -0
- package/src/components/utils.ts +138 -0
- package/src/html.tsx +31 -0
- package/src/services/auth.ts +64 -0
- package/src/services/distributors.ts +153 -0
- package/src/services/domains.ts +27 -0
- package/src/services/navigation.ts +169 -0
- package/src/services/robots.ts +64 -0
- package/src/services/settings.ts +52 -0
- package/src/services/sites.ts +199 -0
- package/src/services/store-with-for-loop.ts +513 -0
- package/src/services/store-with-promise-all.ts +515 -0
- package/src/services/store.ts +513 -0
- package/src/types/api.ts +155 -0
- package/src/types/global.ts +72 -0
- package/src/types/navigation.ts +25 -0
- package/src/types/pages.ts +145 -0
- package/src/types/sites.ts +64 -0
- package/src/types/templates.ts +11 -0
- package/src/utils/api.ts +326 -0
- package/src/utils/cache.ts +114 -0
- package/src/utils/domains.ts +32 -0
- package/src/utils/folders.ts +147 -0
- package/src/utils/instance.ts +71 -0
- package/src/utils/pages.ts +534 -0
- package/src/utils/searches.ts +102 -0
- package/src/utils/shared.ts +131 -0
- package/src/utils/sites.ts +280 -0
- package/.babelrc +0 -7
- package/LICENSE +0 -1
- package/gatsby-browser.js +0 -115
- package/gatsby-config.js +0 -38
- package/gatsby-node.js +0 -273
- package/gatsby-ssr.js +0 -43
- package/scripts/griddo-exporter.js +0 -133
- package/src/api/index.js +0 -172
- package/src/components/template.js +0 -261
- package/src/html.js +0 -30
- package/src/images/readme.md +0 -1
- package/src/scripts/build-reset.js +0 -12
- package/src/services/auth.js +0 -44
- package/src/services/distributors.js +0 -85
- package/src/services/domains.js +0 -16
- package/src/services/navigation.js +0 -104
- package/src/services/robots.js +0 -37
- package/src/services/settings.js +0 -25
- package/src/services/sites.js +0 -110
- package/src/utils/cache.js +0 -70
- package/src/utils/component-lib-helpers.js +0 -56
- package/src/utils/dataLayer.js +0 -47
- package/src/utils/delay.js +0 -5
- package/src/utils/domains.js +0 -24
- package/src/utils/folders.js +0 -123
- package/src/utils/helpers.js +0 -144
- package/src/utils/index.js +0 -44
- package/src/utils/package.js +0 -20
- package/src/utils/pages.js +0 -236
- package/src/utils/searches.js +0 -62
- package/src/utils/sites.js +0 -207
- package/static/griddo-full-logo.png +0 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
import type { GatsbyBrowser } from "gatsby";
|
|
3
|
+
|
|
4
|
+
// Core providers
|
|
5
|
+
import { SessionProvider } from "@griddo/core";
|
|
6
|
+
|
|
7
|
+
// External libraries
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
|
|
10
|
+
// Instance
|
|
11
|
+
// @ts-expect-error
|
|
12
|
+
import { browser } from "components";
|
|
13
|
+
|
|
14
|
+
// Gatsby Browser API
|
|
15
|
+
|
|
16
|
+
export const disableCorePrefetching = () => {
|
|
17
|
+
if (browser.disableCorePrefetching) {
|
|
18
|
+
browser.disableCorePrefetching();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const onClientEntry = () => {
|
|
23
|
+
if (browser.onClientEntry) {
|
|
24
|
+
browser.onClientEntry();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const onInitialClientRender = () => {
|
|
29
|
+
if (browser.onInitialClientRender) {
|
|
30
|
+
browser.onInitialClientRender();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const onPostPrefetchPathname: GatsbyBrowser["onPostPrefetchPathname"] = (
|
|
35
|
+
props
|
|
36
|
+
) => {
|
|
37
|
+
if (browser.onPostPrefetchPathname) {
|
|
38
|
+
browser.onPostPrefetchPathname(props);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const onPreRouteUpdate: GatsbyBrowser["onPreRouteUpdate"] = (props) => {
|
|
43
|
+
if (browser.onPreRouteUpdate) {
|
|
44
|
+
browser.onPreRouteUpdate(props);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const onPrefetchPathname: GatsbyBrowser["onPrefetchPathname"] = (
|
|
49
|
+
props
|
|
50
|
+
) => {
|
|
51
|
+
if (browser.onPrefetchPathname) {
|
|
52
|
+
browser.onPrefetchPathname(props);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const onRouteUpdateDelayed: GatsbyBrowser["onRouteUpdateDelayed"] = (
|
|
57
|
+
props
|
|
58
|
+
) => {
|
|
59
|
+
if (browser.onServiceWorkerActive) {
|
|
60
|
+
browser.onRouteUpdateDelayed(props);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const onServiceWorkerActive: GatsbyBrowser["onServiceWorkerActive"] = (
|
|
65
|
+
props
|
|
66
|
+
) => {
|
|
67
|
+
if (browser.onServiceWorkerActive) {
|
|
68
|
+
browser.onServiceWorkerActive(props);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const onServiceWorkerInstalled: GatsbyBrowser["onServiceWorkerInstalled"] =
|
|
73
|
+
(props) => {
|
|
74
|
+
if (browser.onServiceWorkerInstalled) {
|
|
75
|
+
browser.onServiceWorkerInstalled(props);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const onServiceWorkerRedundant: GatsbyBrowser["onServiceWorkerRedundant"] =
|
|
80
|
+
(props) => {
|
|
81
|
+
if (browser.onServiceWorkerRedundant) {
|
|
82
|
+
browser.onServiceWorkerRedundant(props);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const onServiceWorkerUpdateFound: GatsbyBrowser["onServiceWorkerUpdateFound"] =
|
|
87
|
+
(props) => {
|
|
88
|
+
if (browser.onServiceWorkerUpdateFound) {
|
|
89
|
+
browser.onServiceWorkerUpdateFound(props);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const onServiceWorkerUpdateReady: GatsbyBrowser["onServiceWorkerUpdateReady"] =
|
|
94
|
+
(props) => {
|
|
95
|
+
if (browser.onServiceWorkerUpdateReady) {
|
|
96
|
+
browser.onServiceWorkerUpdateReady(props);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const registerServiceWorker: GatsbyBrowser["registerServiceWorker"] =
|
|
101
|
+
() => {
|
|
102
|
+
if (browser.registerServiceWorker) {
|
|
103
|
+
return browser.registerServiceWorker();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export const replaceHydrateFunction: GatsbyBrowser["replaceHydrateFunction"] =
|
|
108
|
+
() => {
|
|
109
|
+
if (browser.replaceHydrateFunction) {
|
|
110
|
+
return browser.replaceHydrateFunction();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const shouldUpdateScroll: GatsbyBrowser["shouldUpdateScroll"] = (
|
|
115
|
+
props
|
|
116
|
+
) => {
|
|
117
|
+
if (browser.shouldUpdateScroll) {
|
|
118
|
+
return browser.shouldUpdateScroll(props);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const wrapPageElement: GatsbyBrowser["wrapPageElement"] = (props) => {
|
|
123
|
+
if (browser.wrapPageElement) {
|
|
124
|
+
return browser.wrapPageElement(props);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const wrapRootElement: GatsbyBrowser["wrapRootElement"] = (props) => {
|
|
129
|
+
return (
|
|
130
|
+
<SessionProvider>
|
|
131
|
+
{browser.wrapRootElement ? browser.wrapRootElement(props) : props.element}
|
|
132
|
+
</SessionProvider>
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const onRouteUpdate: GatsbyBrowser["onRouteUpdate"] = (props) => {
|
|
137
|
+
if (browser.onRouteUpdate) {
|
|
138
|
+
browser.onRouteUpdate(props);
|
|
139
|
+
}
|
|
140
|
+
};
|
package/gatsby-config.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
import type { GatsbyConfig } from "gatsby";
|
|
3
|
+
|
|
4
|
+
// External libraries
|
|
5
|
+
import dotenv from "dotenv";
|
|
6
|
+
|
|
7
|
+
// Utils
|
|
8
|
+
import { resolveComponentsPath } from "./src/utils/instance";
|
|
9
|
+
|
|
10
|
+
dotenv.config();
|
|
11
|
+
|
|
12
|
+
// Envs
|
|
13
|
+
const GRIDDO_ASSET_PREFIX = process.env.GRIDDO_ASSET_PREFIX || undefined;
|
|
14
|
+
|
|
15
|
+
// Gatsby configuration file from client
|
|
16
|
+
const { plugins, ...gatsbyConfig } = require(resolveComponentsPath(
|
|
17
|
+
"builder.config.js"
|
|
18
|
+
));
|
|
19
|
+
|
|
20
|
+
const config: GatsbyConfig = {
|
|
21
|
+
// cliente config
|
|
22
|
+
...gatsbyConfig,
|
|
23
|
+
plugins: [
|
|
24
|
+
// client plugins
|
|
25
|
+
...plugins,
|
|
26
|
+
|
|
27
|
+
// defaults plugins
|
|
28
|
+
"gatsby-plugin-provide-react",
|
|
29
|
+
"gatsby-plugin-react-svg",
|
|
30
|
+
"gatsby-plugin-react-helmet", // TODO: Remove with Gatsby@5.5.0
|
|
31
|
+
"gatsby-plugin-no-sourcemaps",
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
if (GRIDDO_ASSET_PREFIX) {
|
|
36
|
+
config.assetPrefix = GRIDDO_ASSET_PREFIX;
|
|
37
|
+
config.pathPrefix = undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default config;
|
package/gatsby-node.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
import type { GatsbyNode } from "gatsby";
|
|
3
|
+
import type { StoreMode } from "./src/types/global";
|
|
4
|
+
|
|
5
|
+
// External libraries
|
|
6
|
+
import dotenv from "dotenv";
|
|
7
|
+
import path from "path";
|
|
8
|
+
|
|
9
|
+
// Services
|
|
10
|
+
import { RobotsService } from "./src/services/robots";
|
|
11
|
+
import { StoreService } from "./src/services/store";
|
|
12
|
+
|
|
13
|
+
// Utils
|
|
14
|
+
import { initCache } from "./src/utils/cache";
|
|
15
|
+
import {
|
|
16
|
+
prepareServe,
|
|
17
|
+
prepareStaticFolder,
|
|
18
|
+
updateDist,
|
|
19
|
+
} from "./src/utils/folders";
|
|
20
|
+
import { isComponentLibraryEnv, projectAliases } from "./src/utils/instance";
|
|
21
|
+
import { generateSitemaps, setPagesRenderEnd } from "./src/utils/sites";
|
|
22
|
+
import { logInfo, logPageSize, msToSec, splash } from "./src/utils/shared";
|
|
23
|
+
|
|
24
|
+
dotenv.config();
|
|
25
|
+
|
|
26
|
+
// Envs
|
|
27
|
+
const IS_SERVE = !!process.env.IS_SERVE && !!JSON.parse(process.env.IS_SERVE);
|
|
28
|
+
const GRIDDO_STORE_MODE = (process.env.GRIDDO_STORE_MODE ||
|
|
29
|
+
"file") as StoreMode;
|
|
30
|
+
|
|
31
|
+
// Consts
|
|
32
|
+
const storeDirPath = path.resolve(__dirname, "./.store/");
|
|
33
|
+
|
|
34
|
+
// -----------------------------------------------------------------------------
|
|
35
|
+
// onPreInit
|
|
36
|
+
// -----------------------------------------------------------------------------
|
|
37
|
+
export const onPreInit = async () => {
|
|
38
|
+
splash();
|
|
39
|
+
initCache();
|
|
40
|
+
prepareStaticFolder();
|
|
41
|
+
StoreService.init(storeDirPath, { mode: GRIDDO_STORE_MODE });
|
|
42
|
+
await StoreService.saveBuildData();
|
|
43
|
+
|
|
44
|
+
console.log("\n✨ onPreInit\n");
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// -----------------------------------------------------------------------------
|
|
48
|
+
// createPages
|
|
49
|
+
// -----------------------------------------------------------------------------
|
|
50
|
+
export const createPages: GatsbyNode["createPages"] = async ({ actions }) => {
|
|
51
|
+
const pages = StoreService.getPages();
|
|
52
|
+
|
|
53
|
+
let totalPagesSize = 0;
|
|
54
|
+
|
|
55
|
+
for (const page of pages) {
|
|
56
|
+
const startTime = performance.now();
|
|
57
|
+
|
|
58
|
+
actions.createPage(page);
|
|
59
|
+
|
|
60
|
+
const duration = msToSec(performance.now() - startTime);
|
|
61
|
+
|
|
62
|
+
logInfo(
|
|
63
|
+
`Creating page (${GRIDDO_STORE_MODE}) ${page.path} - ${duration}s - ${
|
|
64
|
+
page.context.id
|
|
65
|
+
} - ${logPageSize(Math.round(page.size))}`
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
totalPagesSize += page.size;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
console.info(
|
|
72
|
+
`Total page-data.json sizes: ${(totalPagesSize / 1024).toFixed(3)}MB`
|
|
73
|
+
);
|
|
74
|
+
console.log("\n✨ createPages\n");
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// -----------------------------------------------------------------------------
|
|
78
|
+
// onPostBuild
|
|
79
|
+
// -----------------------------------------------------------------------------
|
|
80
|
+
export const onPostBuild = async () => {
|
|
81
|
+
const { buildProcessData, createdPages, sitesToPublish } =
|
|
82
|
+
StoreService.getMetadata();
|
|
83
|
+
|
|
84
|
+
await setPagesRenderEnd(buildProcessData, createdPages);
|
|
85
|
+
await RobotsService.writeFiles(`${__dirname}/public`);
|
|
86
|
+
await generateSitemaps(sitesToPublish);
|
|
87
|
+
await updateDist();
|
|
88
|
+
IS_SERVE && (await prepareServe());
|
|
89
|
+
|
|
90
|
+
console.log("\n✨ onPostBuild\n");
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
// -----------------------------------------------------------------------------
|
|
94
|
+
// onCreateWebpackConfig
|
|
95
|
+
// -----------------------------------------------------------------------------
|
|
96
|
+
// TODO: Use webpack types
|
|
97
|
+
export const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] = ({
|
|
98
|
+
actions,
|
|
99
|
+
plugins,
|
|
100
|
+
loaders,
|
|
101
|
+
getConfig,
|
|
102
|
+
}) => {
|
|
103
|
+
if (isComponentLibraryEnv) {
|
|
104
|
+
const config = getConfig();
|
|
105
|
+
config.module.rules = [
|
|
106
|
+
// Omit the default rule where test === '\.jsx?$'
|
|
107
|
+
...config.module.rules.filter(
|
|
108
|
+
(rule: any) => String(rule.test) !== String(/\.jsx?$/)
|
|
109
|
+
),
|
|
110
|
+
// Recreate it with custom exclude filter
|
|
111
|
+
{
|
|
112
|
+
...loaders.js(),
|
|
113
|
+
test: /\.jsx?$/,
|
|
114
|
+
// Exclude all node_modules from transpilation, except for '@griddo/cx'
|
|
115
|
+
exclude: (modulePath: string) =>
|
|
116
|
+
/node_modules/.test(modulePath) && !/@griddo\/cx/.test(modulePath),
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
actions.replaceWebpackConfig(config);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Add component-system aliases to Webpack's Resolve:
|
|
123
|
+
actions.setWebpackConfig({
|
|
124
|
+
resolve: {
|
|
125
|
+
fallback: { path: false },
|
|
126
|
+
alias: projectAliases,
|
|
127
|
+
},
|
|
128
|
+
plugins: [plugins.provide({ process: "process/browser" })],
|
|
129
|
+
});
|
|
130
|
+
};
|
package/gatsby-ssr.tsx
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
// Types
|
|
4
|
+
import type { GatsbySSR } from "gatsby";
|
|
5
|
+
|
|
6
|
+
// Core providers
|
|
7
|
+
import { SessionProvider } from "@griddo/core";
|
|
8
|
+
|
|
9
|
+
// Instance
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
import { ssr } from "components";
|
|
12
|
+
|
|
13
|
+
// Gatsby SSR API
|
|
14
|
+
|
|
15
|
+
export const wrapPageElement: GatsbySSR["wrapPageElement"] = ({ props }) => {
|
|
16
|
+
if (ssr.wrapPageElement) {
|
|
17
|
+
return ssr.wrapPageElement(props);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const onRenderBody: GatsbySSR["onRenderBody"] = (props) => {
|
|
22
|
+
if (ssr.onRenderBody) {
|
|
23
|
+
ssr.onRenderBody(props);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const onPreRenderHTML: GatsbySSR["onPreRenderHTML"] = (props) => {
|
|
28
|
+
const { getHeadComponents, replaceHeadComponents } = props;
|
|
29
|
+
|
|
30
|
+
const headComponents = getHeadComponents();
|
|
31
|
+
const newHeadComponents = headComponents.map((component) => {
|
|
32
|
+
if (
|
|
33
|
+
React.isValidElement(component) &&
|
|
34
|
+
component.type === "meta" &&
|
|
35
|
+
component.props.name === "generator" &&
|
|
36
|
+
component.props.content.includes("Gatsby")
|
|
37
|
+
) {
|
|
38
|
+
return <meta name="generator" content="Griddo" key="generator" />;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return component;
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
replaceHeadComponents(newHeadComponents);
|
|
45
|
+
|
|
46
|
+
if (ssr.onPreRenderHTML) {
|
|
47
|
+
ssr.onPreRenderHTML(props);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const replaceRenderer: GatsbySSR["replaceRenderer"] = (props) => {
|
|
52
|
+
if (ssr.replaceRenderer) {
|
|
53
|
+
ssr.replaceRenderer(props);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const wrapRootElement: GatsbySSR["wrapRootElement"] = (props) => {
|
|
58
|
+
return (
|
|
59
|
+
<SessionProvider>
|
|
60
|
+
{ssr.wrapRootElement ? ssr.wrapRootElement(props) : props.element}
|
|
61
|
+
</SessionProvider>
|
|
62
|
+
);
|
|
63
|
+
};
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,102 +1,121 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
2
|
+
"name": "@griddo/cx",
|
|
3
|
+
"description": "Griddo SSG based on Gatsby",
|
|
4
|
+
"version": "1.75.180",
|
|
5
|
+
"authors": [
|
|
6
|
+
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
|
+
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
8
|
+
"Francis Vega <francis.vega@secuoyas.com>",
|
|
9
|
+
"Gonzalo Hernández <gonzalo.hernandez@secuoyas.com>",
|
|
10
|
+
"Sergio Ródenas <sergio.rodenas@secuoyas.com>",
|
|
11
|
+
"Txema León <txema.leon@secuoyas.com>"
|
|
12
|
+
],
|
|
13
|
+
"license": "UNLICENSED",
|
|
14
|
+
"homepage": "https://griddo.io",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/griddo/griddo"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"griddo-cx": "./index.js"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"start": "gatsby develop -H 0.0.0.0",
|
|
24
|
+
"build": "yarn run build:exporter",
|
|
25
|
+
"build:exporter": "esbuild ./scripts/griddo-exporter.ts --bundle --platform=node --minify --outfile=./build/index.js",
|
|
26
|
+
"build:serve": "IS_SERVE=true gatsby build --prefix-paths && gatsby serve",
|
|
27
|
+
"export": "gatsby build --prefix-paths",
|
|
28
|
+
"clean": "gatsby clean; rm -rf .cache public assets dist build .store",
|
|
29
|
+
"serve": "gatsby serve",
|
|
30
|
+
"format": "prettier --write .",
|
|
31
|
+
"prepare": "yarn run build:exporter",
|
|
32
|
+
"watch:tscheck": "tsc --noEmit --watch"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/core": "^7.6.0",
|
|
36
|
+
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
37
|
+
"@babel/preset-env": "^7.14.5",
|
|
38
|
+
"@babel/preset-react": "^7.14.5",
|
|
39
|
+
"@babel/preset-typescript": "^7.16.5",
|
|
40
|
+
"@griddo/core": "^1.75.180",
|
|
41
|
+
"@svgr/webpack": "^5.5.0",
|
|
42
|
+
"babel-loader": "^8.0.6",
|
|
43
|
+
"babel-plugin-styled-components": "^1.10.7",
|
|
44
|
+
"babel-plugin-transform-runtime": "^6.23.0",
|
|
45
|
+
"babel-polyfill": "^6.26.0",
|
|
46
|
+
"branch-name": "^1.0.0",
|
|
47
|
+
"chalk": "^2.4.2",
|
|
48
|
+
"csvtojson": "^2.0.10",
|
|
49
|
+
"dotenv": "^8.1.0",
|
|
50
|
+
"find-up": "^5.0.0",
|
|
51
|
+
"fs-extra": "^9.0.1",
|
|
52
|
+
"gatsby": "^4.8.0",
|
|
53
|
+
"gatsby-plugin-no-sourcemaps": "^4.8.0",
|
|
54
|
+
"gatsby-plugin-polyfill-io": "^1.1.0",
|
|
55
|
+
"gatsby-plugin-provide-react": "^1.0.2",
|
|
56
|
+
"gatsby-plugin-react-helmet": "^5.8.0",
|
|
57
|
+
"gatsby-plugin-react-svg": "^3.1.0",
|
|
58
|
+
"gatsby-plugin-sass": "^5.21.0",
|
|
59
|
+
"gatsby-plugin-styled-components": "^5.8.0",
|
|
60
|
+
"gradient-string": "^2.0.2",
|
|
61
|
+
"html-react-parser": "^1.4.10",
|
|
62
|
+
"js2xmlparser": "^4.0.1",
|
|
63
|
+
"node-sass": "^6.0.0",
|
|
64
|
+
"opn": "^6.0.0",
|
|
65
|
+
"p-limit": "^3.0.0",
|
|
66
|
+
"path-browserify": "^1.0.1",
|
|
67
|
+
"pkg-dir": "^5.0.0",
|
|
68
|
+
"process": "^0.11.10",
|
|
69
|
+
"react-helmet": "^6.0.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@griddo/eslint-config-back": "^1.75.180",
|
|
73
|
+
"@types/babel__core": "^7.20.0",
|
|
74
|
+
"@types/babel__preset-env": "^7.9.2",
|
|
75
|
+
"@types/csvtojson": "^2.0.0",
|
|
76
|
+
"@types/eslint": "^7.29.0",
|
|
77
|
+
"@types/fs-extra": "^9.0.13",
|
|
78
|
+
"@types/gradient-string": "^1.1.2",
|
|
79
|
+
"@types/node-sass": "^4.11.3",
|
|
80
|
+
"@types/prettier": "2.7.2",
|
|
81
|
+
"@types/react": "18.0.28",
|
|
82
|
+
"@types/react-dom": "18.0.11",
|
|
83
|
+
"@types/react-helmet": "^6.1.6",
|
|
84
|
+
"@types/webpack": "^5.28.0",
|
|
85
|
+
"eslint": "^7.5.0",
|
|
86
|
+
"eslint-plugin-node": "^11.1.0",
|
|
87
|
+
"eslint-plugin-react": "7.14.3",
|
|
88
|
+
"prettier": "2.0.4"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"axios": "*",
|
|
92
|
+
"react": "*",
|
|
93
|
+
"react-dom": "*"
|
|
94
|
+
},
|
|
95
|
+
"engines": {
|
|
96
|
+
"node": ">=16.17.0"
|
|
97
|
+
},
|
|
98
|
+
"files": [
|
|
99
|
+
".babelrc",
|
|
100
|
+
"build",
|
|
101
|
+
"gatsby-browser.tsx",
|
|
102
|
+
"gatsby-config.ts",
|
|
103
|
+
"gatsby-node.ts",
|
|
104
|
+
"gatsby-ssr.tsx",
|
|
105
|
+
"index.js",
|
|
106
|
+
"scripts",
|
|
107
|
+
"src",
|
|
108
|
+
"static"
|
|
109
|
+
],
|
|
110
|
+
"keywords": [
|
|
111
|
+
"gatsby",
|
|
112
|
+
"griddo",
|
|
113
|
+
"secuoyas",
|
|
114
|
+
"typescript",
|
|
115
|
+
"SSG"
|
|
116
|
+
],
|
|
117
|
+
"publishConfig": {
|
|
118
|
+
"access": "public"
|
|
119
|
+
},
|
|
120
|
+
"gitHead": "840c30d9ae22d8749015b110a203a4103367a8f6"
|
|
102
121
|
}
|