@newlogic-digital/cli 0.0.17 → 0.1.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": "@newlogic-digital/cli",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"main": "index.mjs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"newlogic-cli": "index.mjs",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
14
|
"prompts": "^2.4.2",
|
|
15
|
-
"fs-extra": "^
|
|
15
|
+
"fs-extra": "^11.1.1",
|
|
16
16
|
"picocolors": "^1.0.0",
|
|
17
|
-
"fast-glob": "^3.2.
|
|
17
|
+
"fast-glob": "^3.2.12",
|
|
18
18
|
"dedent": "^0.7.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"eslint": "^8.
|
|
21
|
+
"eslint": "^8.39.0",
|
|
22
22
|
"eslint-config-standard": "^17.0.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
@@ -22,7 +22,7 @@ function clone(path, { variant, branch }) {
|
|
|
22
22
|
execSync(`git clone -b ${branch} --single-branch --depth 1 git@git.newlogic.cz:newlogic-dev/${variant}.git ${path}`)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
async function install(name) {
|
|
25
|
+
async function install(name, branch) {
|
|
26
26
|
const { install } = await prompts([
|
|
27
27
|
{
|
|
28
28
|
type: 'select',
|
|
@@ -36,7 +36,7 @@ async function install(name) {
|
|
|
36
36
|
])
|
|
37
37
|
|
|
38
38
|
if (install === 'yes') {
|
|
39
|
-
execSync(`cd ${name || '.'} && make install`)
|
|
39
|
+
execSync(`cd ${name || '.'} && make install ${branch || ''}`)
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -61,7 +61,7 @@ async function prepare() {
|
|
|
61
61
|
export default async function cms(name, { variant, branch }) {
|
|
62
62
|
if (name) {
|
|
63
63
|
clone(name, { variant, branch })
|
|
64
|
-
await install(name)
|
|
64
|
+
await install(name, branch)
|
|
65
65
|
await prepare()
|
|
66
66
|
return
|
|
67
67
|
}
|
|
@@ -92,6 +92,6 @@ export default async function cms(name, { variant, branch }) {
|
|
|
92
92
|
|
|
93
93
|
fse.removeSync(tempDir)
|
|
94
94
|
|
|
95
|
-
await install()
|
|
95
|
+
await install(name, branch)
|
|
96
96
|
await prepare()
|
|
97
97
|
}
|