@zeedhi/teknisa-cli 1.55.0 → 1.58.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
4
4
|
"description": "Teknisa CLI",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"/src",
|
|
35
35
|
"/bin"
|
|
36
36
|
],
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "708b51c2be642855478411bf14293b8049bc1b56"
|
|
38
38
|
}
|
|
@@ -46,9 +46,13 @@ getBaseInterfaceContent = (name) => {
|
|
|
46
46
|
|
|
47
47
|
baseIndex = (name) => {
|
|
48
48
|
const camelCased = snakeToCamelCase(name)
|
|
49
|
-
let content = `import {
|
|
49
|
+
let content = `import { VersionService } from '@zeedhi/core';\n`
|
|
50
|
+
content += `import { ${camelCased}Class } from './components/${camelCased}Class';\n`
|
|
50
51
|
content += `import { I${camelCased} } from './components/I${camelCased}';\n\n`
|
|
51
|
-
content += `export { ${camelCased}Class, I${camelCased} };\n`
|
|
52
|
+
content += `export { ${camelCased}Class, I${camelCased} };\n\n`
|
|
53
|
+
content += `const packageContent = require('../package.json');\n\n`
|
|
54
|
+
content += `VersionService.addPackageVersion(packageContent.name, packageContent.version);\n`
|
|
55
|
+
|
|
52
56
|
return content
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -58,7 +62,7 @@ baseIndexVue = (name) => {
|
|
|
58
62
|
let content = `import * as ${singleName} from './components/${camelCased}.vue';\n`
|
|
59
63
|
content += `import ${camelCased}Vuetify from './components/vuetify/${camelCased}.vue';\n`
|
|
60
64
|
content += `import { ${camelCased}Class } from '@zeedhi-components/${name}';\n`
|
|
61
|
-
content += "import { config } from '@zeedhi/core';\n"
|
|
65
|
+
content += "import { config, VersionService } from '@zeedhi/core';\n"
|
|
62
66
|
content += "import { registerComponent } from '@zeedhi/vue';\n\n"
|
|
63
67
|
content += "// tslint:disable-next-line:variable-name\n"
|
|
64
68
|
content += `const ${camelCased} = {\n`
|
|
@@ -73,6 +77,8 @@ baseIndexVue = (name) => {
|
|
|
73
77
|
content += "if (typeof window !== 'undefined' && window.Vue) {\n"
|
|
74
78
|
content += ` window.Vue.use(${camelCased});\n`
|
|
75
79
|
content += "}\n\n"
|
|
80
|
+
content += `const packageContent = require('../package.json');\n\n`
|
|
81
|
+
content += `VersionService.addPackageVersion(packageContent.name, packageContent.version);\n\n`
|
|
76
82
|
content += `export default ${camelCased};\n`
|
|
77
83
|
|
|
78
84
|
return content
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import './zeedhi';
|
|
2
|
+
import { VersionService } from '@zeedhi/core';
|
|
2
3
|
import vuetify from './vuetify';
|
|
3
4
|
|
|
5
|
+
const packageContent = require('../../package.json');
|
|
6
|
+
|
|
7
|
+
VersionService.addAppVersion(packageContent.name, packageContent.version);
|
|
8
|
+
|
|
4
9
|
export {
|
|
5
10
|
vuetify,
|
|
6
11
|
};
|