@genesislcap/genx 14.145.4-alpha-ea74180.0 → 14.145.4

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;2DAoCa,OAAO;AAApD,wBAgEE"}
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;2DAqCa,OAAO;AAApD,wBA+DE"}
@@ -5,6 +5,7 @@ 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);
8
9
  // param exclusion list needs to be updated if init options change
9
10
  const params = (0, build_kit_1.excludeObjKeys)(options, [
10
11
  'seed',
@@ -38,7 +39,6 @@ const getOptions = (options) => {
38
39
  };
39
40
  exports.default = (dir, options, command = build_kit_1.COMMAND.INIT) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
40
41
  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 [my-seed]', 'seed')
56
+ .option('-s, --seed [repo]', '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 NPM or GitHub.
84
+ If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from 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 NPM dist tag or Git reference (branch/tag/commit SHA)
88
+ Create myapp using a genesiscommunitysuccess seed and 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 repository
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 [app]', 'Add functionality to an existing project')
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 <my-seed>', 'seed')
114
+ .option('-s, --seed <repo>', '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,21 @@ 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
129
  ${(0, build_kit_1.bold)('genx add myapp -s devtraining-seed')}
130
130
  ${(0, build_kit_1.bold)('genx add myapp --seed devtraining-seed')}
131
131
  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 NPM or GitHub.
132
+ If devtraining-seed exists in current folder, it will be used. Otherwise, it will be downloaded from GitHub.
133
133
  To only use remote seeds pass --remote.
134
134
 
135
135
  ${(0, build_kit_1.bold)('genx add myapp -s devtraining-seed --subdir folder1')}
136
136
  Add functionality in genesiscommunitysuccess devtraining-seed seed folder1 to myapp
137
137
 
138
138
  ${(0, build_kit_1.bold)('genx add myapp -s blank-app-seed --ref develop')}
139
- Add functionality in genesiscommunitysuccess seed and NPM dist tag or Git reference (branch/tag/commit SHA) to myapp
139
+ Add functionality in genesiscommunitysuccess seed and Git reference (branch/tag/commit SHA) to myapp
140
140
 
141
141
  ${(0, build_kit_1.bold)('genx add myapp -s githubuser/repo')}
142
142
  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.145.4-alpha-ea74180.0",
4
+ "version": "14.145.4",
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.145.4-alpha-ea74180.0",
23
- "@genesislcap/eslint-stylelint-builder": "14.145.4-alpha-ea74180.0",
24
- "@genesislcap/rollup-builder": "14.145.4-alpha-ea74180.0",
25
- "@genesislcap/ts-builder": "14.145.4-alpha-ea74180.0",
26
- "@genesislcap/uvu-playwright-builder": "14.145.4-alpha-ea74180.0",
27
- "@genesislcap/vite-builder": "14.145.4-alpha-ea74180.0",
28
- "@genesislcap/webpack-builder": "14.145.4-alpha-ea74180.0",
22
+ "@genesislcap/build-kit": "14.145.4",
23
+ "@genesislcap/eslint-stylelint-builder": "14.145.4",
24
+ "@genesislcap/rollup-builder": "14.145.4",
25
+ "@genesislcap/ts-builder": "14.145.4",
26
+ "@genesislcap/uvu-playwright-builder": "14.145.4",
27
+ "@genesislcap/vite-builder": "14.145.4",
28
+ "@genesislcap/webpack-builder": "14.145.4",
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": "53ebf26d84c42a91ada2b12f5b70c1f20d5c0a3b"
42
+ "gitHead": "3f7003c37df1a3b5e29a09a9e3bf1f76400d80f7"
43
43
  }