@symbo.ls/cli 2.11.327 → 2.11.329
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/bin/convert.js +6 -6
- package/bin/create.js +8 -0
- package/package.json +3 -5
package/bin/convert.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
// import chalk from 'chalk'
|
|
4
4
|
import { program } from './program.js'
|
|
5
|
-
import convert, { convertDomqlModule } from '@symbo.ls/convert'
|
|
5
|
+
// import convert, { convertDomqlModule } from '@symbo.ls/convert'
|
|
6
6
|
|
|
7
7
|
const TMP_DIR_NAME = '.smbls_convert_tmp'
|
|
8
8
|
|
|
9
9
|
export function convertFromCli (data, opts) {
|
|
10
|
-
const { framework, verbose, verboseCode } = opts
|
|
11
|
-
const convertedStrings = convertDomqlModule(data, null, framework)
|
|
12
|
-
if (verboseCode) console.log(convertedStrings)
|
|
13
|
-
return verbose
|
|
10
|
+
// const { framework, verbose, verboseCode } = opts
|
|
11
|
+
// // const convertedStrings = convertDomqlModule(data, null, framework)
|
|
12
|
+
// if (verboseCode) console.log(convertedStrings)
|
|
13
|
+
// return verbose
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
program
|
|
@@ -36,4 +36,4 @@ program
|
|
|
36
36
|
.option('--internal-uikit',
|
|
37
37
|
'(For internal use only). ' +
|
|
38
38
|
'Excludes particular components from the conversion')
|
|
39
|
-
.action(
|
|
39
|
+
.action(convertFromCli)
|
package/bin/create.js
CHANGED
|
@@ -35,6 +35,7 @@ program
|
|
|
35
35
|
.option('--vue2', 'Use Vue2 in the project')
|
|
36
36
|
.option('--vue3', 'Use Vue3 in the project')
|
|
37
37
|
.option('--yarn', 'Install via yarn', true)
|
|
38
|
+
.option('--clean-from-git', 'remove starter-kit git repository', true)
|
|
38
39
|
.action(async (dest = 'symbols-starter-kit', options) => {
|
|
39
40
|
// Determine framework
|
|
40
41
|
let framework = 'domql'
|
|
@@ -69,4 +70,11 @@ program
|
|
|
69
70
|
console.log()
|
|
70
71
|
console.log(chalk.green.bold(dest), 'successfuly created!')
|
|
71
72
|
console.log(`Done! run \`${chalk.bold('npm start')}\` to start the development server.`)
|
|
73
|
+
|
|
74
|
+
if (options.cleanFromGit) {
|
|
75
|
+
fs.rmSync('.git', {
|
|
76
|
+
recursive: true,
|
|
77
|
+
force: true
|
|
78
|
+
})
|
|
79
|
+
}
|
|
72
80
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.329",
|
|
4
4
|
"description": "Fetch your Symbols configuration",
|
|
5
5
|
"main": "bin/fetch.js",
|
|
6
6
|
"author": "Symbols",
|
|
@@ -20,13 +20,11 @@
|
|
|
20
20
|
"@symbo.ls/socket": "latest",
|
|
21
21
|
"chalk": "^5.0.0",
|
|
22
22
|
"commander": "latest",
|
|
23
|
+
"diff": "^5.2.0",
|
|
23
24
|
"esbuild": "^0.19.2",
|
|
24
25
|
"inquirer": "^9.2.17",
|
|
25
26
|
"node-fetch": "^3.1.0",
|
|
26
27
|
"v8-compile-cache": "^2.3.0"
|
|
27
28
|
},
|
|
28
|
-
"
|
|
29
|
-
"@symbo.ls/convert": "latest"
|
|
30
|
-
},
|
|
31
|
-
"gitHead": "cad8a2eaaaa68b40c237cc35d1236095f600a30e"
|
|
29
|
+
"gitHead": "32cca3d81ac46ff4256421fdaca75de64aeb52ef"
|
|
32
30
|
}
|