@symbo.ls/cli 2.11.317 → 2.11.326
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/create.js +5 -2
- package/package.json +2 -2
package/bin/create.js
CHANGED
|
@@ -28,11 +28,13 @@ program
|
|
|
28
28
|
.command('create')
|
|
29
29
|
.description('Create and initialize a new project')
|
|
30
30
|
.argument('dest', 'Project directory')
|
|
31
|
+
.option('--remote', 'Fetch from platform', true)
|
|
31
32
|
.option('--domql', 'Use DOMQL in the project', true)
|
|
32
33
|
.option('--react', 'Use React in the project (default)')
|
|
33
34
|
.option('--angular', 'Use Angular in the project')
|
|
34
35
|
.option('--vue2', 'Use Vue2 in the project')
|
|
35
36
|
.option('--vue3', 'Use Vue3 in the project')
|
|
37
|
+
.option('--yarn', 'Install via yarn', true)
|
|
36
38
|
.action(async (dest = 'symbols-starter-kit', options) => {
|
|
37
39
|
// Determine framework
|
|
38
40
|
let framework = 'domql'
|
|
@@ -53,16 +55,17 @@ program
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
console.log(`Cloning ${cloneUrl} into '${dest}'...`)
|
|
56
|
-
execSync(`git clone ${cloneUrl} ${dest}`)
|
|
58
|
+
execSync(`git clone ${cloneUrl} ${dest}` + options.remote ? ' -b feature/remote' : '')
|
|
57
59
|
|
|
58
60
|
process.chdir(dest)
|
|
59
61
|
|
|
60
62
|
const SYMBOLS_FILE_PATH = path.join(process.cwd(), 'symbols.json')
|
|
61
63
|
addToJson(SYMBOLS_FILE_PATH, 'key', `${dest}.symbo.ls`)
|
|
64
|
+
addToJson(SYMBOLS_FILE_PATH, 'packageManager', `${options.yarn ? 'yarn' : 'npm'}`)
|
|
62
65
|
|
|
63
66
|
console.log('Installing Dependencies...')
|
|
64
67
|
console.log()
|
|
65
|
-
execSync('
|
|
68
|
+
execSync('yarn')
|
|
66
69
|
console.log()
|
|
67
70
|
console.log(chalk.green.bold(dest), 'successfuly created!')
|
|
68
71
|
console.log(`Done! run \`${chalk.bold('npm start')}\` to start the development server.`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.326",
|
|
4
4
|
"description": "Fetch your Symbols configuration",
|
|
5
5
|
"main": "bin/fetch.js",
|
|
6
6
|
"author": "Symbols",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@symbo.ls/convert": "latest"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "28be545ac40009d8911581033803863471a1b05a"
|
|
31
31
|
}
|