@ikas/component-cli 1.4.0-beta.4 → 1.4.0-beta.40
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/commands/add-to-page.d.ts +3 -0
- package/dist/commands/add-to-page.d.ts.map +1 -0
- package/dist/commands/add-to-page.js +41 -0
- package/dist/commands/add-to-page.js.map +1 -0
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +5 -165
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +143 -111
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/create.d.ts +3 -8
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +175 -8
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +213 -23
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -0
- package/dist/commands/import.js +25 -0
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/list-imported.d.ts +3 -0
- package/dist/commands/list-imported.d.ts.map +1 -0
- package/dist/commands/list-imported.js +25 -0
- package/dist/commands/list-imported.js.map +1 -0
- package/dist/commands/list-pages.d.ts +3 -0
- package/dist/commands/list-pages.d.ts.map +1 -0
- package/dist/commands/list-pages.js +21 -0
- package/dist/commands/list-pages.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/compile.d.ts +4 -1
- package/dist/utils/compile.d.ts.map +1 -1
- package/dist/utils/compile.js +517 -48
- package/dist/utils/compile.js.map +1 -1
- package/dist/utils/component-helpers.d.ts +1 -1
- package/dist/utils/component-helpers.d.ts.map +1 -1
- package/dist/utils/component-helpers.js +4 -0
- package/dist/utils/component-helpers.js.map +1 -1
- package/dist/utils/editor-action-client.d.ts +28 -0
- package/dist/utils/editor-action-client.d.ts.map +1 -0
- package/dist/utils/editor-action-client.js +101 -0
- package/dist/utils/editor-action-client.js.map +1 -0
- package/dist/utils/websocket-server.d.ts +48 -0
- package/dist/utils/websocket-server.d.ts.map +1 -1
- package/dist/utils/websocket-server.js +58 -0
- package/dist/utils/websocket-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/proxy.d.ts +0 -39
- package/dist/commands/proxy.d.ts.map +0 -1
- package/dist/commands/proxy.js +0 -212
- package/dist/commands/proxy.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-to-page.d.ts","sourceRoot":"","sources":["../../src/commands/add-to-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6CpC,wBAAgB,sBAAsB,IAAI,OAAO,CAYhD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { printErrorAndExit, printResultAndExit, runEditorAction, } from "../utils/editor-action-client.js";
|
|
3
|
+
async function runAddToPage(options) {
|
|
4
|
+
if (!options.componentId || typeof options.componentId !== "string") {
|
|
5
|
+
printErrorAndExit(new Error("--component-id is required"));
|
|
6
|
+
}
|
|
7
|
+
if (!options.pageId || typeof options.pageId !== "string") {
|
|
8
|
+
printErrorAndExit(new Error("--page-id is required (use `ikas-component list-pages` to discover ids)"));
|
|
9
|
+
}
|
|
10
|
+
let index;
|
|
11
|
+
if (options.index !== undefined) {
|
|
12
|
+
index = parseInt(options.index, 10);
|
|
13
|
+
if (Number.isNaN(index) || index < 0) {
|
|
14
|
+
printErrorAndExit(new Error("--index must be a non-negative integer"));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const port = options.port ? parseInt(options.port, 10) : undefined;
|
|
18
|
+
try {
|
|
19
|
+
const result = await runEditorAction("add-section-to-page", {
|
|
20
|
+
componentId: options.componentId,
|
|
21
|
+
pageId: options.pageId,
|
|
22
|
+
...(typeof index === "number" ? { index } : {}),
|
|
23
|
+
}, port ? { port } : {});
|
|
24
|
+
printResultAndExit(result);
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
printErrorAndExit(e);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export function createAddToPageCommand() {
|
|
31
|
+
const cmd = new Command("add-to-page");
|
|
32
|
+
cmd
|
|
33
|
+
.description("Place a section-type code component on a page. Requires the component to be imported first (see `ikas-component import`).")
|
|
34
|
+
.requiredOption("--component-id <id>", "Code component id (from `ikas-component list-imported`)")
|
|
35
|
+
.requiredOption("--page-id <id>", "Page id (from `ikas-component list-pages`)")
|
|
36
|
+
.option("--index <n>", "Zero-based insertion index in the page; appends when omitted")
|
|
37
|
+
.option("--port <port>", "Dev server WebSocket port", "5201")
|
|
38
|
+
.action(runAddToPage);
|
|
39
|
+
return cmd;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=add-to-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-to-page.js","sourceRoot":"","sources":["../../src/commands/add-to-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAS1C,KAAK,UAAU,YAAY,CAAC,OAAyB;IACnD,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QACpE,iBAAiB,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC1D,iBAAiB,CAAC,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC,CAAC;IAC1G,CAAC;IACD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e,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAC5D,MAAM,CAAC,YAAY,CAAC,CAAC;IACxB,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmIpC,wBAAgB,kBAAkB,IAAI,OAAO,CAK5C"}
|
package/dist/commands/build.js
CHANGED
|
@@ -2,172 +2,12 @@ import { Command } from "commander";
|
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import ora from "ora";
|
|
4
4
|
import * as fs from "fs";
|
|
5
|
-
import * as os from "os";
|
|
6
5
|
import * as path from "path";
|
|
7
|
-
import * as esbuild from "esbuild";
|
|
8
6
|
import { execSync } from "child_process";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
async function compileComponent(componentId, entryPath, stylesPath) {
|
|
14
|
-
const componentDir = path.dirname(path.resolve(process.cwd(), entryPath));
|
|
15
|
-
try {
|
|
16
|
-
// Build server bundle (for SSR with preact-render-to-string)
|
|
17
|
-
const serverResult = await esbuild.build({
|
|
18
|
-
entryPoints: [path.resolve(process.cwd(), entryPath)],
|
|
19
|
-
bundle: true,
|
|
20
|
-
format: "esm",
|
|
21
|
-
platform: "node",
|
|
22
|
-
target: "node18",
|
|
23
|
-
write: false,
|
|
24
|
-
external: [
|
|
25
|
-
"preact",
|
|
26
|
-
"preact/hooks",
|
|
27
|
-
"preact-render-to-string",
|
|
28
|
-
"mobx",
|
|
29
|
-
"@ikas/bp-storefront",
|
|
30
|
-
"@ikas/bp-storefront-models",
|
|
31
|
-
"@ikas/bp-storefront-config",
|
|
32
|
-
"@ikas/bp-storefront-api"
|
|
33
|
-
],
|
|
34
|
-
plugins: [ikasComponentUtilsPlugin()],
|
|
35
|
-
jsx: "transform",
|
|
36
|
-
jsxFactory: "h",
|
|
37
|
-
jsxFragment: "Fragment",
|
|
38
|
-
inject: [PREACT_JSX_SHIM],
|
|
39
|
-
tsconfigRaw: {
|
|
40
|
-
compilerOptions: {
|
|
41
|
-
jsx: "react",
|
|
42
|
-
jsxFactory: "h",
|
|
43
|
-
jsxFragmentFactory: "Fragment"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
minify: true,
|
|
47
|
-
sourcemap: false,
|
|
48
|
-
});
|
|
49
|
-
// Build client bundle (for hydration)
|
|
50
|
-
const clientResult = await esbuild.build({
|
|
51
|
-
entryPoints: [path.resolve(process.cwd(), entryPath)],
|
|
52
|
-
bundle: true,
|
|
53
|
-
format: "esm",
|
|
54
|
-
platform: "browser",
|
|
55
|
-
target: "es2020",
|
|
56
|
-
write: false,
|
|
57
|
-
external: [
|
|
58
|
-
"preact",
|
|
59
|
-
"preact/hooks",
|
|
60
|
-
"mobx",
|
|
61
|
-
"@ikas/bp-storefront",
|
|
62
|
-
"@ikas/bp-storefront-models",
|
|
63
|
-
"@ikas/bp-storefront-config"
|
|
64
|
-
],
|
|
65
|
-
plugins: [ikasComponentUtilsPlugin()],
|
|
66
|
-
jsx: "transform",
|
|
67
|
-
jsxFactory: "h",
|
|
68
|
-
jsxFragment: "Fragment",
|
|
69
|
-
inject: [PREACT_JSX_SHIM],
|
|
70
|
-
tsconfigRaw: {
|
|
71
|
-
compilerOptions: {
|
|
72
|
-
jsx: "react",
|
|
73
|
-
jsxFactory: "h",
|
|
74
|
-
jsxFragmentFactory: "Fragment"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
minify: true,
|
|
78
|
-
sourcemap: false,
|
|
79
|
-
});
|
|
80
|
-
// Read and scope CSS (with import resolution)
|
|
81
|
-
const cssPath = path.resolve(process.cwd(), stylesPath);
|
|
82
|
-
let css = "";
|
|
83
|
-
if (fs.existsSync(cssPath)) {
|
|
84
|
-
const rawCss = fs.readFileSync(cssPath, "utf-8");
|
|
85
|
-
css = resolveCssImports(rawCss, cssPath);
|
|
86
|
-
}
|
|
87
|
-
// Scope CSS with component ID prefix
|
|
88
|
-
const scopedCss = scopeCSS(css, componentId);
|
|
89
|
-
return {
|
|
90
|
-
success: true,
|
|
91
|
-
serverJs: serverResult.outputFiles[0]?.text || "",
|
|
92
|
-
clientJs: clientResult.outputFiles[0]?.text || "",
|
|
93
|
-
scopedCss
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
catch (error) {
|
|
97
|
-
return {
|
|
98
|
-
success: false,
|
|
99
|
-
serverJs: "",
|
|
100
|
-
clientJs: "",
|
|
101
|
-
scopedCss: "",
|
|
102
|
-
error: error instanceof Error ? error.message : String(error)
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function scopeCSS(css, componentId) {
|
|
107
|
-
// Add a scoping class to all selectors
|
|
108
|
-
const scopeClass = `cc_${componentId.replace(/[^a-zA-Z0-9]/g, "_")}`;
|
|
109
|
-
// Simple CSS scoping - prepend scope class to each rule
|
|
110
|
-
// This is a basic implementation; a production version would use a proper CSS parser
|
|
111
|
-
const lines = css.split("\n");
|
|
112
|
-
const scopedLines = [];
|
|
113
|
-
let inMediaQuery = false;
|
|
114
|
-
let keyframesDepth = 0;
|
|
115
|
-
for (const line of lines) {
|
|
116
|
-
const trimmed = line.trim();
|
|
117
|
-
// Skip empty lines
|
|
118
|
-
if (!trimmed) {
|
|
119
|
-
scopedLines.push(line);
|
|
120
|
-
continue;
|
|
121
|
-
}
|
|
122
|
-
// Handle @media queries
|
|
123
|
-
if (trimmed.startsWith("@media")) {
|
|
124
|
-
inMediaQuery = true;
|
|
125
|
-
scopedLines.push(line);
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
// Handle @keyframes
|
|
129
|
-
if (trimmed.startsWith("@keyframes") || trimmed.startsWith("@-webkit-keyframes")) {
|
|
130
|
-
keyframesDepth = 1;
|
|
131
|
-
scopedLines.push(line);
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
// Inside @keyframes: track brace depth, pass lines through unscoped
|
|
135
|
-
if (keyframesDepth > 0) {
|
|
136
|
-
for (const ch of trimmed) {
|
|
137
|
-
if (ch === "{")
|
|
138
|
-
keyframesDepth++;
|
|
139
|
-
else if (ch === "}")
|
|
140
|
-
keyframesDepth--;
|
|
141
|
-
}
|
|
142
|
-
scopedLines.push(line);
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
// Handle closing braces for @media
|
|
146
|
-
if (trimmed === "}" && inMediaQuery) {
|
|
147
|
-
inMediaQuery = false;
|
|
148
|
-
scopedLines.push(line);
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
// Skip lines that don't contain selectors
|
|
152
|
-
if (!trimmed.includes("{") || trimmed.startsWith("@")) {
|
|
153
|
-
scopedLines.push(line);
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
// Scope the selector
|
|
157
|
-
const [selector, rest] = line.split("{");
|
|
158
|
-
if (selector && rest !== undefined) {
|
|
159
|
-
const scopedSelector = selector
|
|
160
|
-
.split(",")
|
|
161
|
-
.map((s) => `.${scopeClass} ${s.trim()}`)
|
|
162
|
-
.join(", ");
|
|
163
|
-
scopedLines.push(`${scopedSelector} {${rest}`);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
scopedLines.push(line);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return scopedLines.join("\n");
|
|
170
|
-
}
|
|
7
|
+
// Single-source the per-component compile pipeline (esbuild config, externals, CSS
|
|
8
|
+
// scoping) from utils/compile.ts. This command previously carried its own copy, which
|
|
9
|
+
// is how the CSS-scoping fix could land in one place and not the other — keep it shared.
|
|
10
|
+
import { compileComponent } from "../utils/compile.js";
|
|
171
11
|
function runTypeCheck() {
|
|
172
12
|
const spinner = ora("Type checking with TypeScript...").start();
|
|
173
13
|
try {
|
|
@@ -213,7 +53,7 @@ async function buildComponents(options) {
|
|
|
213
53
|
// Build each component
|
|
214
54
|
for (const component of config.components) {
|
|
215
55
|
const spinner = ora(`Building ${component.name}...`).start();
|
|
216
|
-
const result = await compileComponent(component.
|
|
56
|
+
const result = await compileComponent(component.entry, component.styles, component.id);
|
|
217
57
|
if (result.success) {
|
|
218
58
|
// Write output files
|
|
219
59
|
const componentOutDir = path.join(outputPath, component.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,mFAAmF;AACnF,sFAAsF;AACtF,yFAAyF;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,SAAS,YAAY;IACnB,MAAM,OAAO,GAAG,GAAG,CAAC,kCAAkC,CAAC,CAAC,KAAK,EAAE,CAAC;IAChE,IAAI,CAAC;QACH,QAAQ,CAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,K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AC,CAAC,CAAC;IACxD,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,MAAM,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,UAAU,IAAI,CAAC,CAAC,CAAC;IAEvD,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;SACxB,WAAW,CAAC,iCAAiC,CAAC;SAC9C,MAAM,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,CAAC;SACxD,MAAM,CAAC,eAAe,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAw/CpC,wBAAgB,mBAAmB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAw/CpC,wBAAgB,mBAAmB,IAAI,OAAO,CA2M7C"}
|