@griddo/ax 1.75.18 → 1.75.20

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.
@@ -108,6 +108,8 @@ const mergeComponentsAliases = (...arrs) => {
108
108
  /* Components Static Paths */
109
109
  const componentsStaticPath = resolveComponentsPath("static");
110
110
  const componentsStaticPathExists = fs.existsSync(componentsStaticPath);
111
+ const componentsThumbnailsPath = resolveComponentsPath("thumbnails");
112
+ const componentsThumbnailsPathExists = fs.existsSync(componentsThumbnailsPath);
111
113
 
112
114
  module.exports = {
113
115
  isComponentLibraryEnv,
@@ -123,5 +125,7 @@ module.exports = {
123
125
  // projectAliases: mergeComponentsAliases(griddoComponentsLibAliases, griddoAxAliases),
124
126
  componentsStaticPath,
125
127
  componentsStaticPathExists,
128
+ componentsThumbnailsPath,
129
+ componentsThumbnailsPathExists,
126
130
  resolveComponentsGriddoConfig,
127
131
  };
package/config/paths.js CHANGED
@@ -3,7 +3,13 @@ const fs = require("fs-extra");
3
3
  const getPublicUrlOrPath = require("react-dev-utils/getPublicUrlOrPath");
4
4
  const chalk = require("react-dev-utils/chalk");
5
5
 
6
- const { resolveComponentsPath, componentsStaticPath, componentsStaticPathExists } = require("./griddo-config");
6
+ const {
7
+ resolveComponentsPath,
8
+ componentsStaticPath,
9
+ componentsStaticPathExists,
10
+ componentsThumbnailsPath,
11
+ componentsThumbnailsPathExists,
12
+ } = require("./griddo-config");
7
13
 
8
14
  // Make sure any symlinks in the project folder are resolved:
9
15
  // https://github.com/facebook/create-react-app/issues/637
@@ -62,13 +68,22 @@ function prepareAssetsFolders() {
62
68
  console.log(chalk.yellow(`Building Static Assets cache`));
63
69
  console.log(componentsStaticPath);
64
70
  console.log(appStaticAssetsCache);
71
+ console.log(componentsThumbnailsPath);
65
72
  console.log();
66
73
 
67
74
  fs.mkdirpSync(appStaticAssetsCache);
68
75
 
76
+ // <components>/thumbnails folder
77
+ if (componentsThumbnailsPathExists) {
78
+ fs.copySync(componentsThumbnailsPath, path.resolve(appPublic, "thumbnails"), {
79
+ dereference: true,
80
+ });
81
+ }
82
+
69
83
  fs.copySync(componentsStaticPath, appStaticAssetsCache, {
70
84
  dereference: true,
71
85
  });
86
+
72
87
  fs.copySync(appPublic, appStaticAssetsCache, {
73
88
  dereference: true,
74
89
  filter: (file) => file !== appHtml,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "1.75.18",
4
+ "version": "1.75.20",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -229,5 +229,5 @@
229
229
  "publishConfig": {
230
230
  "access": "public"
231
231
  },
232
- "gitHead": "cbd09f0dd3f9ff4625fe625682f987c733be049a"
232
+ "gitHead": "4015cdf6d08339641f284d6b2cc985516e8cb50e"
233
233
  }