gatsby-attainlabs-cms 1.0.1 → 1.0.3
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/gatsby-node.js +11 -6
- package/package.json +3 -2
package/gatsby-node.js
CHANGED
|
@@ -47,14 +47,18 @@ export const onPreInit = async (_, pluginOptions) => {
|
|
|
47
47
|
// List of folders to download from
|
|
48
48
|
const targets = [
|
|
49
49
|
{
|
|
50
|
-
repoPath: `/apps/cms/src/cms/components/editor/
|
|
50
|
+
repoPath: `/apps/cms/src/cms/components/editor/visual-block-editor/components/brands/${brands[brand]}`,
|
|
51
51
|
localBasePath: path.resolve("./src/cms/components/brand"),
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
repoPath:
|
|
55
|
-
"/apps/cms/src/cms/components/editor/
|
|
55
|
+
"/apps/cms/src/cms/components/editor/visual-block-editor/components/global/blocks",
|
|
56
56
|
localBasePath: path.resolve("./src/cms/components/global"),
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
repoPath: `/apps/cms/src/cms/gatsby-plugin-theme-ui/${brands[brand]}`,
|
|
60
|
+
localBasePath: path.resolve("./src/gatsby-plugin-theme-ui"),
|
|
61
|
+
},
|
|
58
62
|
];
|
|
59
63
|
|
|
60
64
|
const options = {
|
|
@@ -93,12 +97,13 @@ export const onPreInit = async (_, pluginOptions) => {
|
|
|
93
97
|
// Keep only index.tsx files
|
|
94
98
|
const items = (result.value || []).filter(
|
|
95
99
|
(i) =>
|
|
96
|
-
!i.isFolder &&
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
(!i.isFolder &&
|
|
101
|
+
i.gitObjectType === "blob" &&
|
|
102
|
+
posix.basename(i.path) === "index.tsx") ||
|
|
103
|
+
posix.extname(i.path) === "ts"
|
|
99
104
|
);
|
|
100
105
|
|
|
101
|
-
console.log(`Found ${items.length}
|
|
106
|
+
console.log(`Found ${items.length} files in ${repoPath}`);
|
|
102
107
|
items.forEach((item) =>
|
|
103
108
|
downloadFile(item.path, repoPath, localBasePath)
|
|
104
109
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-attainlabs-cms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "gatsby-node.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"gatsby": "^5.0.0 || ^4.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"dotenv": "^17.2.1"
|
|
16
|
+
"dotenv": "^17.2.1",
|
|
17
|
+
"react-slick": "^0.31.0"
|
|
17
18
|
}
|
|
18
19
|
}
|