agnosticui-cli 2.0.0-alpha.6 → 2.0.0-alpha.7
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/dist/cli.js +1 -39
- package/dist/cli.js.map +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +175 -275
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +26 -205
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list.js +4 -4
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +4 -20
- package/dist/commands/sync.js.map +1 -1
- package/dist/types/index.d.ts +1 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/components.d.ts +0 -24
- package/dist/utils/components.d.ts.map +1 -1
- package/dist/utils/components.js +0 -68
- package/dist/utils/components.js.map +1 -1
- package/dist/utils/config.d.ts +0 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +0 -7
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/dependencies.d.ts.map +1 -1
- package/dist/utils/dependencies.js +5 -10
- package/dist/utils/dependencies.js.map +1 -1
- package/dist/utils/files.d.ts +0 -15
- package/dist/utils/files.d.ts.map +1 -1
- package/dist/utils/files.js +1 -87
- package/dist/utils/files.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/remove.d.ts +0 -3
- package/dist/commands/remove.d.ts.map +0 -1
- package/dist/commands/remove.js +0 -96
- package/dist/commands/remove.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,43 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* AgnosticUI CLI - Main entry point
|
|
4
|
-
*
|
|
5
|
-
* Package Resolution Strategy:
|
|
6
|
-
* ============================
|
|
7
|
-
*
|
|
8
|
-
* The CLI uses a two-tier approach to locate the AgnosticUI core library:
|
|
9
|
-
*
|
|
10
|
-
* 1. Local Development (Priority):
|
|
11
|
-
* - Checks for: ../../dist/agnosticui-local-v2.0.0-alpha.tar.gz
|
|
12
|
-
* - Built via: ./scripts/build-local-tarball.sh
|
|
13
|
-
* - Used for: Testing changes before publishing
|
|
14
|
-
*
|
|
15
|
-
* 2. Production (NPM Registry):
|
|
16
|
-
* - Downloads: agnosticui-core@{version} from NPM
|
|
17
|
-
* - Command: npm pack agnosticui-core@alpha (or latest, or specific version)
|
|
18
|
-
* - Used for: Production installations after publishing
|
|
19
|
-
*
|
|
20
|
-
* Package Naming:
|
|
21
|
-
* - Local tarball: agnosticui-local-v*.tar.gz
|
|
22
|
-
* - NPM package: agnosticui-core
|
|
23
|
-
* - This CLI: agnosticui-cli
|
|
24
|
-
*
|
|
25
|
-
* Note: The different naming prevents confusion between local dev builds
|
|
26
|
-
* and published NPM packages.
|
|
27
|
-
*
|
|
28
|
-
* See: v2/cli/README.md "Testing After NPM Publication" for verification steps.
|
|
29
4
|
*/
|
|
30
5
|
import { Command } from 'commander';
|
|
31
6
|
import { init } from './commands/init.js';
|
|
32
7
|
import { add } from './commands/add.js';
|
|
33
|
-
import { remove } from './commands/remove.js';
|
|
34
8
|
import { list } from './commands/list.js';
|
|
35
9
|
import { sync } from './commands/sync.js';
|
|
36
10
|
const program = new Command();
|
|
37
11
|
program
|
|
38
12
|
.name('ag')
|
|
39
13
|
.description('AgnosticUI Local - The UI kit that lives in your codebase')
|
|
40
|
-
.version('2.0.0-alpha.
|
|
14
|
+
.version('2.0.0-alpha.1');
|
|
41
15
|
// ag init command
|
|
42
16
|
program
|
|
43
17
|
.command('init')
|
|
@@ -45,13 +19,11 @@ program
|
|
|
45
19
|
.option('-f, --framework <framework>', 'Framework to use (react, vue, lit, svelte)')
|
|
46
20
|
.option('-p, --components-path <path>', 'Path where components will be generated')
|
|
47
21
|
.option('-t, --tarball <path>', 'Path to local tarball (for development)')
|
|
48
|
-
.option('-v, --version <version>', 'NPM version to download (e.g., alpha, latest, 2.0.0)', 'alpha')
|
|
49
22
|
.action(async (options) => {
|
|
50
23
|
await init({
|
|
51
24
|
framework: options.framework,
|
|
52
25
|
componentsPath: options.componentsPath,
|
|
53
26
|
tarball: options.tarball,
|
|
54
|
-
version: options.version,
|
|
55
27
|
});
|
|
56
28
|
});
|
|
57
29
|
// ag add command
|
|
@@ -64,16 +36,6 @@ program
|
|
|
64
36
|
force: options.force,
|
|
65
37
|
});
|
|
66
38
|
});
|
|
67
|
-
// ag remove command
|
|
68
|
-
program
|
|
69
|
-
.command('remove <components...>')
|
|
70
|
-
.description('Remove component(s) from your project')
|
|
71
|
-
.option('--force', 'Skip confirmation prompt')
|
|
72
|
-
.action(async (components, options) => {
|
|
73
|
-
await remove(components, {
|
|
74
|
-
force: options.force,
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
39
|
// ag list command
|
|
78
40
|
program
|
|
79
41
|
.command('list')
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,IAAI,CAAC;KACV,WAAW,CAAC,2DAA2D,CAAC;KACxE,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5B,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,MA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AAC;AACL,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,mBAAmB,CAAC;AAgB/D,wBAAsB,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsJ3F"}
|