bfg-common 1.4.628 → 1.4.629
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.
|
@@ -31,17 +31,19 @@ const npmGenerate = (): void => {
|
|
|
31
31
|
'composables',
|
|
32
32
|
'query.js'
|
|
33
33
|
)
|
|
34
|
+
console.log(333);
|
|
34
35
|
const searchString = '/query/${hash(params)}'
|
|
35
36
|
const replacementString = 'cache'
|
|
36
37
|
replaceFileContent(filePath, searchString, replacementString)
|
|
37
38
|
// End block
|
|
38
|
-
|
|
39
|
+
console.log(444);
|
|
39
40
|
// Переносим весь контент и удаляем все файлы кроме картинок
|
|
40
41
|
const contentPath = path.join(
|
|
41
42
|
__dirname.replace('/node_modules/bfg-common/modules/fixContentBuild', ''),
|
|
42
43
|
'content',
|
|
43
44
|
'help'
|
|
44
45
|
)
|
|
46
|
+
console.log(contentPath, 555, !fs.existsSync(contentPath));
|
|
45
47
|
if (!fs.existsSync(contentPath)) return
|
|
46
48
|
|
|
47
49
|
const publicPath = path.join(
|
|
@@ -49,6 +51,7 @@ const npmGenerate = (): void => {
|
|
|
49
51
|
'public',
|
|
50
52
|
'images'
|
|
51
53
|
)
|
|
54
|
+
console.log(777);
|
|
52
55
|
fs.cp(contentPath, publicPath, { recursive: true }, () => {
|
|
53
56
|
// Удаляем все файлы кроме картинок
|
|
54
57
|
removeNonImageFiles(publicPath)
|