@genesislcap/genx 14.145.4 → 14.146.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-seed-command.d.ts","sourceRoot":"","sources":["../../src/commands/run-seed-command.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,OAAO,EACR,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"run-seed-command.d.ts","sourceRoot":"","sources":["../../src/commands/run-seed-command.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,OAAO,EACR,MAAM,wBAAwB,CAAC;2DAoCa,OAAO;AAApD,wBAgEE"}
|
|
@@ -5,7 +5,6 @@ const node_fs_1 = require("node:fs");
|
|
|
5
5
|
const build_kit_1 = require("@genesislcap/build-kit");
|
|
6
6
|
const consola_1 = require("consola");
|
|
7
7
|
const getOptions = (options) => {
|
|
8
|
-
consola_1.consola.debug('CLI options', options);
|
|
9
8
|
// param exclusion list needs to be updated if init options change
|
|
10
9
|
const params = (0, build_kit_1.excludeObjKeys)(options, [
|
|
11
10
|
'seed',
|
|
@@ -39,6 +38,7 @@ const getOptions = (options) => {
|
|
|
39
38
|
};
|
|
40
39
|
exports.default = (dir, options, command = build_kit_1.COMMAND.INIT) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
41
40
|
const start = Date.now();
|
|
41
|
+
consola_1.consola.debug('CLI options', { dir, options, command });
|
|
42
42
|
const isInit = command === build_kit_1.COMMAND.INIT;
|
|
43
43
|
const { insecure, seed, subdir, remote, ref, skipOptionalPrompts, params, isLogLevelVerbose, shell, scope, npm, } = getOptions(options);
|
|
44
44
|
if (isLogLevelVerbose) {
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ cli
|
|
|
53
53
|
cli
|
|
54
54
|
.command('init <app>', 'Create a new project')
|
|
55
55
|
// if options are modified, param filtering list needs to be updated in the run seed command
|
|
56
|
-
.option('-s, --seed [
|
|
56
|
+
.option('-s, --seed [my-seed]', 'seed')
|
|
57
57
|
.option('--ref [ref]', 'Git ref (branch, tag or commit) to use')
|
|
58
58
|
.option('-x,--skip-optional-prompts', 'Skip prompts with default values')
|
|
59
59
|
.option('--insecure', 'Skip SSL certificate verification')
|
|
@@ -81,11 +81,11 @@ cli
|
|
|
81
81
|
${(0, build_kit_1.bold)('genx init myapp -s devtraining-seed')}
|
|
82
82
|
${(0, build_kit_1.bold)('genx init myapp --seed devtraining-seed')}
|
|
83
83
|
Create myapp using a genesiscommunitysuccess seed
|
|
84
|
-
If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from GitHub.
|
|
84
|
+
If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from NPM or GitHub.
|
|
85
85
|
To only use remote seeds pass --remote.
|
|
86
86
|
|
|
87
87
|
${(0, build_kit_1.bold)('genx init myapp -s blank-app-seed --ref develop')}
|
|
88
|
-
Create myapp using a genesiscommunitysuccess seed and Git reference (branch/tag/commit SHA)
|
|
88
|
+
Create myapp using a genesiscommunitysuccess seed and NPM dist tag or Git reference (branch/tag/commit SHA)
|
|
89
89
|
|
|
90
90
|
${(0, build_kit_1.bold)('genx init myapp -s githubuser/repo')}
|
|
91
91
|
Create myapp using a custom seed
|
|
@@ -94,7 +94,7 @@ cli
|
|
|
94
94
|
Create myapp using local seed (assuming blank-app-seed exists in specified location)
|
|
95
95
|
|
|
96
96
|
${(0, build_kit_1.bold)('genx init myapp -s blank-app-seed --subdir samplepath')}
|
|
97
|
-
Create myapp using seed in subdir folder of blank-app-seed
|
|
97
|
+
Create myapp using seed in subdir folder of blank-app-seed
|
|
98
98
|
|
|
99
99
|
${(0, build_kit_1.bold)('genx init myapp -s blank-app-seed --remote')}
|
|
100
100
|
Create myapp using remote blank-app-seed seed (even if blank-app-seed exists locally)
|
|
@@ -109,9 +109,9 @@ cli
|
|
|
109
109
|
Create myapp with verbose logging
|
|
110
110
|
`);
|
|
111
111
|
cli
|
|
112
|
-
.command('add
|
|
112
|
+
.command('add [app]', 'Add functionality to an existing project')
|
|
113
113
|
// if options are modified, param filtering list needs to be updated in the run seed command
|
|
114
|
-
.option('-s, --seed <
|
|
114
|
+
.option('-s, --seed <my-seed>', 'seed')
|
|
115
115
|
.option('--subdir <subdir>', 'subdirectory within seed repo')
|
|
116
116
|
.option('--ref [ref]', 'Git ref (branch, tag or commit) to use')
|
|
117
117
|
.option('-x,--skip-optional-prompts', 'Skip prompts with default values')
|
|
@@ -122,21 +122,25 @@ cli
|
|
|
122
122
|
.option('--no-scope', 'Do not apply default NPM scope for this seed module')
|
|
123
123
|
.option('-l, --log-level [level]', 'info (default) or verbose')
|
|
124
124
|
.allowUnknownOptions()
|
|
125
|
-
.action((app, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
125
|
+
.action((app = '.', options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
126
126
|
const action = yield commands_1.commands.runSeedCommand();
|
|
127
127
|
action(app, options, build_kit_1.COMMAND.ADD);
|
|
128
128
|
})).example(`
|
|
129
|
+
${(0, build_kit_1.bold)('genx add -s devtraining-seed')}
|
|
130
|
+
${(0, build_kit_1.bold)('genx add -s ../devtraining-seed')}
|
|
131
|
+
Add functionality in genesiscommunitysuccess devtraining-seed seed to the app in current folder
|
|
132
|
+
|
|
129
133
|
${(0, build_kit_1.bold)('genx add myapp -s devtraining-seed')}
|
|
130
134
|
${(0, build_kit_1.bold)('genx add myapp --seed devtraining-seed')}
|
|
131
135
|
Add functionality in genesiscommunitysuccess devtraining-seed seed to myapp
|
|
132
|
-
If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from GitHub.
|
|
136
|
+
If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from NPM or GitHub.
|
|
133
137
|
To only use remote seeds pass --remote.
|
|
134
138
|
|
|
135
139
|
${(0, build_kit_1.bold)('genx add myapp -s devtraining-seed --subdir folder1')}
|
|
136
140
|
Add functionality in genesiscommunitysuccess devtraining-seed seed folder1 to myapp
|
|
137
141
|
|
|
138
142
|
${(0, build_kit_1.bold)('genx add myapp -s blank-app-seed --ref develop')}
|
|
139
|
-
Add functionality in genesiscommunitysuccess seed and Git reference (branch/tag/commit SHA) to myapp
|
|
143
|
+
Add functionality in genesiscommunitysuccess seed and NPM dist tag or Git reference (branch/tag/commit SHA) to myapp
|
|
140
144
|
|
|
141
145
|
${(0, build_kit_1.bold)('genx add myapp -s githubuser/repo')}
|
|
142
146
|
Add functionality in custom seed to myapp
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/genx",
|
|
3
3
|
"description": "Genx CLI",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.146.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.0.0"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"typescript": "^4.5.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@genesislcap/build-kit": "14.
|
|
23
|
-
"@genesislcap/eslint-stylelint-builder": "14.
|
|
24
|
-
"@genesislcap/rollup-builder": "14.
|
|
25
|
-
"@genesislcap/ts-builder": "14.
|
|
26
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
27
|
-
"@genesislcap/vite-builder": "14.
|
|
28
|
-
"@genesislcap/webpack-builder": "14.
|
|
22
|
+
"@genesislcap/build-kit": "14.146.0",
|
|
23
|
+
"@genesislcap/eslint-stylelint-builder": "14.146.0",
|
|
24
|
+
"@genesislcap/rollup-builder": "14.146.0",
|
|
25
|
+
"@genesislcap/ts-builder": "14.146.0",
|
|
26
|
+
"@genesislcap/uvu-playwright-builder": "14.146.0",
|
|
27
|
+
"@genesislcap/vite-builder": "14.146.0",
|
|
28
|
+
"@genesislcap/webpack-builder": "14.146.0",
|
|
29
29
|
"cac": "^6.7.14",
|
|
30
30
|
"consola": "^3.0.2",
|
|
31
31
|
"serve-handler": "^6.1.5",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "47ef15294656d275b3f5d0202d498a565655fd26"
|
|
43
43
|
}
|