@griddo/cx 1.59.4 → 1.59.8
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/package.json +3 -3
- package/src/utils/sites.js +4 -2
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": "1.59.
|
|
4
|
+
"version": "1.59.8",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react-helmet": "^6.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@griddo/eslint-config-back": "^1.59.
|
|
69
|
+
"@griddo/eslint-config-back": "^1.59.8",
|
|
70
70
|
"eslint": "^7.5.0",
|
|
71
71
|
"eslint-plugin-node": "^11.1.0",
|
|
72
72
|
"eslint-plugin-react": "7.14.3",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "b177c93d93d54a54a559f81aba2a5572504f9575"
|
|
102
102
|
}
|
package/src/utils/sites.js
CHANGED
|
@@ -147,11 +147,13 @@ const generateSitemaps = async sites => {
|
|
|
147
147
|
__dirname,
|
|
148
148
|
`../../public/${slug}${sitemapName}`
|
|
149
149
|
);
|
|
150
|
-
helpers.log('info', `sitemap exact path ${exactPath}`);
|
|
150
|
+
helpers.log('info', `sitemap file exact path ${exactPath}`);
|
|
151
151
|
await saveFile(exactPath, siteMap);
|
|
152
|
-
sitemaps.push(`${home.endsWith('/') ? home.slice(0, -1): home}${sitemapName}`);
|
|
152
|
+
sitemaps.push(`${home.endsWith('/') ? home.slice(0, -1) : home}${sitemapName}`);
|
|
153
|
+
console.log('sitemap file\n', { home, sitemapName, url: `${home.endsWith('/') ? home.slice(0, -1) : home}${sitemapName}` });
|
|
153
154
|
}
|
|
154
155
|
if (!sitemaps.length) continue;
|
|
156
|
+
console.log('Sitemap index\n', sitemaps);
|
|
155
157
|
const siteMap = js2xmlparser.parse('sitemapindex', {
|
|
156
158
|
'@': {
|
|
157
159
|
xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9',
|