bfg-common 1.1.1 → 1.1.2
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.
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
updateCustomComponents,
|
|
10
10
|
} from './utils/methods'
|
|
11
11
|
|
|
12
|
-
const npmDev = (): void => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
12
|
+
// const npmDev = (): void => {
|
|
13
|
+
// const contentPath = path.join(
|
|
14
|
+
// __dirname.replace('/node_modules/bfg-common/modules/fixContentBuild', ''),
|
|
15
|
+
// 'content',
|
|
16
|
+
// 'help'
|
|
17
|
+
// )
|
|
18
|
+
// // Заменяем кастомные тэги
|
|
19
|
+
// updateCustomComponents(contentPath)
|
|
20
|
+
// }
|
|
21
21
|
|
|
22
22
|
const npmGenerate = (): void => {
|
|
23
23
|
// Правим путь к файлу
|
|
@@ -74,7 +74,7 @@ export default defineNuxtModule({
|
|
|
74
74
|
setup() {
|
|
75
75
|
switch (process.env.npm_command) {
|
|
76
76
|
case 'run-script':
|
|
77
|
-
npmDev()
|
|
77
|
+
// npmDev()
|
|
78
78
|
break
|
|
79
79
|
case 'exec':
|
|
80
80
|
npmGenerate()
|
|
@@ -84,7 +84,7 @@ export const updateCustomComponents = (dirPath: string) => {
|
|
|
84
84
|
if (isMdFile(file)) {
|
|
85
85
|
replaceFileContent(
|
|
86
86
|
filePath,
|
|
87
|
-
|
|
87
|
+
/\{\{ *< *hint *(info) *> *\}\}|\{\{ *< *\/hint *> *\}\}/g,
|
|
88
88
|
(_match: any, hintInfo: string) => {
|
|
89
89
|
return hintInfo ? '\n::hint\n' : '\n::\n'
|
|
90
90
|
}
|