@total_onion/onion-library 1.0.5 → 1.0.7
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.
|
@@ -47,7 +47,7 @@ function getCustomCacheFiles(){
|
|
|
47
47
|
const customCacheList = getCustomCacheFiles()
|
|
48
48
|
|
|
49
49
|
customCacheList.forEach(customCache => {
|
|
50
|
-
const destPathCustomCaches = path.join(__dirname, `../../../../../../../../
|
|
50
|
+
const destPathCustomCaches = path.join(__dirname, `../../../../../../../../onion-library/components/${customCache}`);
|
|
51
51
|
const customCacheSrcFile = path.join(srcPathCustomCaches, `${customCache}.php`);
|
|
52
52
|
const customCacheDestFile = path.join(destPathCustomCaches, `${customCache}.php`);
|
|
53
53
|
copyCustomCache(customCacheSrcFile, customCacheDestFile, customCache, destPathCustomCaches)
|
|
@@ -8,7 +8,7 @@ const componentOptions = args._;
|
|
|
8
8
|
const entryPointName = componentOptions[0];
|
|
9
9
|
const themePath = process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
|
|
10
10
|
const srcPathEntryPoint = `${themePath}/views/entry-points`;
|
|
11
|
-
const destPathEntryPoints = path.join(__dirname, `../../../../../../../../
|
|
11
|
+
const destPathEntryPoints = path.join(__dirname, `../../../../../../../../onion-library/components/entrypoint-${entryPointName}`);
|
|
12
12
|
|
|
13
13
|
const bColors = {
|
|
14
14
|
HEADER: '\033[95m',
|
package/exportImagesToLibrary.js
CHANGED
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|
|
5
5
|
const themePath = process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
|
|
6
6
|
|
|
7
7
|
const srcPathImages = path.join(themePath, 'assets/images/icon/library-images');
|
|
8
|
-
const destPath = '../../../../../
|
|
8
|
+
const destPath = '../../../../../onion-library/components/fields-library-images';
|
|
9
9
|
|
|
10
10
|
const bColors = {
|
|
11
11
|
HEADER: '\033[95m',
|
|
@@ -47,7 +47,7 @@ function getSeoExtraFiles(){
|
|
|
47
47
|
const seoFileList = getSeoExtraFiles()
|
|
48
48
|
|
|
49
49
|
seoFileList.forEach(seoFile => {
|
|
50
|
-
const destPathSeoExtraFiles = path.join(__dirname, `../../../../../../../../
|
|
50
|
+
const destPathSeoExtraFiles = path.join(__dirname, `../../../../../../../../onion-library/components/seo-${seoFile}`);
|
|
51
51
|
const seoExtraSrcFile = path.join(srcPathSeoExtras, `${seoFile}.php`);
|
|
52
52
|
const seoExtraDestFile = path.join(destPathSeoExtraFiles, `${seoFile}.php`);
|
|
53
53
|
copySeoExtraFile(seoExtraSrcFile, seoExtraDestFile, seoFile, destPathSeoExtraFiles)
|
package/exportToLibrary.js
CHANGED
package/package.json
CHANGED
package/update-component.js
CHANGED
|
@@ -3,7 +3,8 @@ const themePath =
|
|
|
3
3
|
const fs = require('fs')
|
|
4
4
|
const path = require('path')
|
|
5
5
|
const libraryPath =
|
|
6
|
-
|
|
6
|
+
'./node_modules/@total_onion/onion-library'
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
// Get extension of filename
|
|
9
10
|
const getExtension = (filename) => {
|