@qwik-custom-elements/core 1.0.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.
@@ -0,0 +1,4 @@
1
+ export { parseCliArgs, runCli } from './cli.js';
2
+ export { ConfigValidationError, loadGeneratorConfig, validateGeneratorConfig, } from './config.js';
3
+ export { generateFromConfig, GenerationError } from './generator.js';
4
+ export type { CliArgs, GenerateOptions, GenerationProjectResult, GenerationResult, GeneratorConfig, GeneratorProject, LoadConfigOptions, LoadedConfig, PlannedWrite, RunSummary, } from './types.js';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { parseCliArgs, runCli } from './cli.js';
2
+ export { ConfigValidationError, loadGeneratorConfig, validateGeneratorConfig, } from './config.js';
3
+ export { generateFromConfig, GenerationError } from './generator.js';
@@ -0,0 +1,91 @@
1
+ export interface CEMProjectSource {
2
+ type: 'CEM';
3
+ path: string;
4
+ }
5
+ export interface PackageNameProjectSource {
6
+ type: 'PACKAGE_NAME';
7
+ packageName: string;
8
+ cemPath?: string;
9
+ }
10
+ export type GeneratorProjectSource = CEMProjectSource | PackageNameProjectSource;
11
+ export interface GeneratorProject {
12
+ id: string;
13
+ libraryName?: string;
14
+ adapter: string;
15
+ adapterPackage: string;
16
+ source: GeneratorProjectSource;
17
+ outDir: string;
18
+ cleanOutput?: boolean;
19
+ adapterOptions?: Record<string, unknown>;
20
+ }
21
+ export interface GeneratorConfig {
22
+ projects: GeneratorProject[];
23
+ dryRun?: boolean;
24
+ parallel?: boolean;
25
+ format?: boolean;
26
+ summaryPath?: string;
27
+ }
28
+ export interface CliArgs {
29
+ configPath?: string;
30
+ projectIds: string[];
31
+ parallel: boolean;
32
+ help: boolean;
33
+ }
34
+ export interface LoadConfigOptions {
35
+ cwd?: string;
36
+ configPath?: string;
37
+ }
38
+ export interface LoadedConfig {
39
+ configPath: string;
40
+ config: GeneratorConfig;
41
+ }
42
+ export interface PlannedWrite {
43
+ path: string;
44
+ content: string;
45
+ }
46
+ export interface ProjectSsrCapabilities {
47
+ available: boolean;
48
+ supportsSsrProbe: boolean;
49
+ ssrRuntimeSubpath: string | null;
50
+ clientOnlyMode?: boolean;
51
+ }
52
+ export interface GenerationProjectResult {
53
+ projectId: string;
54
+ status: 'success' | 'failed' | 'skipped';
55
+ durationMs: number;
56
+ adapterPackage: string;
57
+ sourcePath: string;
58
+ outDirPath: string;
59
+ generatedIndexPath: string;
60
+ componentTags: string[];
61
+ plannedWrites: PlannedWrite[];
62
+ wroteFiles: boolean;
63
+ ssrCapabilities: ProjectSsrCapabilities;
64
+ observedErrorCodes: string[];
65
+ }
66
+ export interface RunSummaryProject {
67
+ projectId: string;
68
+ status: 'success' | 'failed' | 'skipped';
69
+ durationMs: number;
70
+ generatedIndexPath: string;
71
+ resolvedCoreVersion: string;
72
+ resolvedAdapterVersion: string;
73
+ ssrCapabilities: ProjectSsrCapabilities;
74
+ observedErrorCodes: string[];
75
+ }
76
+ export interface RunSummary {
77
+ schemaVersion: string;
78
+ startedAt: string;
79
+ finishedAt: string;
80
+ dryRun: boolean;
81
+ projects: RunSummaryProject[];
82
+ observedErrorCodes: string[];
83
+ }
84
+ export interface GenerationResult {
85
+ dryRun: boolean;
86
+ projects: GenerationProjectResult[];
87
+ }
88
+ export interface GenerateOptions {
89
+ cwd?: string;
90
+ targetProjectIds?: string[];
91
+ }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@qwik-custom-elements/core",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js"
9
+ },
10
+ "./cli": {
11
+ "types": "./dist/cli.d.ts",
12
+ "import": "./dist/cli.js"
13
+ }
14
+ },
15
+ "bin": {
16
+ "qwik-custom-elements": "./dist/cli.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "devDependencies": {
22
+ "@types/node": "^24.6.0",
23
+ "typescript": "^5.9.3",
24
+ "vitest": "^3.2.4"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "scripts": {
30
+ "build": "tsc -p tsconfig.json",
31
+ "check-types": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
32
+ "dev": "node ./dist/cli.js --help",
33
+ "format": "prettier --write . --config ../../.prettierrc.json --ignore-path ../../.prettierignore",
34
+ "format:check": "prettier --check . --config ../../.prettierrc.json --ignore-path ../../.prettierignore",
35
+ "lint": "eslint \"**/*.{js,mjs,cjs,ts,mts,cts,tsx}\" --no-error-on-unmatched-pattern",
36
+ "e2e": "node -e \"console.log('core e2e noop')\"",
37
+ "test": "pnpm --filter @qwik-custom-elements/adapter-stencil run build && pnpm --filter @qwik-custom-elements/adapter-lit run build && vitest run"
38
+ }
39
+ }