@ikas/component-cli 1.4.0-beta.12 → 1.4.0-beta.14
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/config.d.ts.map +1 -1
- package/dist/commands/config.js +25 -1
- package/dist/commands/config.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/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 +29 -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/create.d.ts +0 -9
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -9
- package/dist/commands/create.js.map +0 -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
package/dist/commands/proxy.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
import inquirer from "inquirer";
|
|
4
|
-
import { createServer as createViteServer } from "vite";
|
|
5
|
-
export const DEFAULT_ADMIN_PORT = 3002;
|
|
6
|
-
export const DEFAULT_EDITOR_PORT = 3003;
|
|
7
|
-
export const PROD_EDITOR_URL = "https://studio.ikasapps.com";
|
|
8
|
-
export const PROD_ADMIN_DOMAIN = "myikas.com";
|
|
9
|
-
export const DEV_EDITOR_URL = "https://studio-dev.ikasapps.com";
|
|
10
|
-
export const DEV_ADMIN_DOMAIN = "myikas.dev";
|
|
11
|
-
// Default environment = prod. `--dev` flips to dev.
|
|
12
|
-
export const DEFAULT_EDITOR_URL = PROD_EDITOR_URL;
|
|
13
|
-
export const DEFAULT_ADMIN_DOMAIN = PROD_ADMIN_DOMAIN;
|
|
14
|
-
// Kept for the legacy single-port fallback (no longer used by default).
|
|
15
|
-
export const DEFAULT_PROXY_PORT = DEFAULT_ADMIN_PORT;
|
|
16
|
-
export async function startProxy(opts) {
|
|
17
|
-
const adminPort = opts.adminPort ?? DEFAULT_ADMIN_PORT;
|
|
18
|
-
const editorPort = opts.editorPort ?? DEFAULT_EDITOR_PORT;
|
|
19
|
-
const editorTarget = opts.editorUrl ?? DEFAULT_EDITOR_URL;
|
|
20
|
-
const adminDomain = opts.adminDomain ?? DEFAULT_ADMIN_DOMAIN;
|
|
21
|
-
const adminTarget = `https://${opts.store}.${adminDomain}`;
|
|
22
|
-
const adminUrl = `http://localhost:${adminPort}`;
|
|
23
|
-
const editorUrl = `http://localhost:${editorPort}`;
|
|
24
|
-
// Editor proxy: dedicated port so the editor's absolute asset paths
|
|
25
|
-
// (e.g. `/assets/index-*.js`) resolve correctly against its own origin.
|
|
26
|
-
const editorVite = await createViteServer({
|
|
27
|
-
configFile: false,
|
|
28
|
-
appType: "custom",
|
|
29
|
-
logLevel: "warn",
|
|
30
|
-
clearScreen: false,
|
|
31
|
-
optimizeDeps: { noDiscovery: true, include: [] },
|
|
32
|
-
server: {
|
|
33
|
-
port: editorPort,
|
|
34
|
-
strictPort: true,
|
|
35
|
-
host: "localhost",
|
|
36
|
-
cors: true,
|
|
37
|
-
proxy: {
|
|
38
|
-
"/": {
|
|
39
|
-
target: editorTarget,
|
|
40
|
-
changeOrigin: true,
|
|
41
|
-
secure: true,
|
|
42
|
-
ws: true,
|
|
43
|
-
configure: (proxy) => {
|
|
44
|
-
stripSecurityHeaders(proxy);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
await editorVite.listen();
|
|
51
|
-
// Admin proxy: rewrites the deployed editor origin to our editor proxy URL
|
|
52
|
-
// in any text response so bundled iframe srcs point at localhost.
|
|
53
|
-
const adminVite = await createViteServer({
|
|
54
|
-
configFile: false,
|
|
55
|
-
appType: "custom",
|
|
56
|
-
logLevel: "warn",
|
|
57
|
-
clearScreen: false,
|
|
58
|
-
optimizeDeps: { noDiscovery: true, include: [] },
|
|
59
|
-
server: {
|
|
60
|
-
port: adminPort,
|
|
61
|
-
strictPort: true,
|
|
62
|
-
host: "localhost",
|
|
63
|
-
cors: true,
|
|
64
|
-
proxy: {
|
|
65
|
-
"/": {
|
|
66
|
-
target: adminTarget,
|
|
67
|
-
changeOrigin: true,
|
|
68
|
-
secure: true,
|
|
69
|
-
ws: true,
|
|
70
|
-
selfHandleResponse: true,
|
|
71
|
-
configure: (proxy) => {
|
|
72
|
-
stripSecurityHeaders(proxy);
|
|
73
|
-
disableCompression(proxy);
|
|
74
|
-
rewriteAdminBody(proxy, editorTarget, editorUrl);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
await adminVite.listen();
|
|
81
|
-
return {
|
|
82
|
-
adminVite,
|
|
83
|
-
editorVite,
|
|
84
|
-
adminTarget,
|
|
85
|
-
editorTarget,
|
|
86
|
-
adminUrl,
|
|
87
|
-
editorUrl,
|
|
88
|
-
adminPort,
|
|
89
|
-
editorPort,
|
|
90
|
-
async close() {
|
|
91
|
-
try {
|
|
92
|
-
await adminVite.close();
|
|
93
|
-
}
|
|
94
|
-
catch { /* ignore */ }
|
|
95
|
-
try {
|
|
96
|
-
await editorVite.close();
|
|
97
|
-
}
|
|
98
|
-
catch { /* ignore */ }
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export function printProxyBanner(handle) {
|
|
103
|
-
console.log("");
|
|
104
|
-
console.log(`${chalk.green("✓ Ready!")} Open your store: ${chalk.yellow(`${handle.adminUrl}/admin`)}`);
|
|
105
|
-
console.log("");
|
|
106
|
-
console.log(chalk.gray("To start developing code components, log in to your store and go to Sales Channels > Themes to open your theme in ikas Studio."));
|
|
107
|
-
console.log("");
|
|
108
|
-
}
|
|
109
|
-
export async function promptForStore() {
|
|
110
|
-
const answer = await inquirer.prompt([
|
|
111
|
-
{
|
|
112
|
-
type: "input",
|
|
113
|
-
name: "store",
|
|
114
|
-
message: "Which store do you want to proxy? (e.g. 'storename' for storename.myikas.com)",
|
|
115
|
-
validate: (v) => v && /^[a-z0-9-]+$/i.test(v)
|
|
116
|
-
? true
|
|
117
|
-
: "Store name must be non-empty alphanumeric (dashes allowed)"
|
|
118
|
-
}
|
|
119
|
-
]);
|
|
120
|
-
return answer.store;
|
|
121
|
-
}
|
|
122
|
-
export function resolveEnvironmentDefaults(dev) {
|
|
123
|
-
return dev
|
|
124
|
-
? { editorUrl: DEV_EDITOR_URL, adminDomain: DEV_ADMIN_DOMAIN }
|
|
125
|
-
: { editorUrl: PROD_EDITOR_URL, adminDomain: PROD_ADMIN_DOMAIN };
|
|
126
|
-
}
|
|
127
|
-
export function createProxyCommand() {
|
|
128
|
-
const command = new Command("proxy");
|
|
129
|
-
command
|
|
130
|
-
.description("Run localhost proxies for the ikas admin panel + editor so local code components can connect without HTTPS/mixed-content issues")
|
|
131
|
-
.option("-s, --store <name>", "Store name (e.g. 'storename' for storename.myikas.com)")
|
|
132
|
-
.option("-p, --port <port>", `Admin port (default: ${DEFAULT_ADMIN_PORT})`, String(DEFAULT_ADMIN_PORT))
|
|
133
|
-
.option("--editor-port <port>", `Editor port (default: ${DEFAULT_EDITOR_PORT})`, String(DEFAULT_EDITOR_PORT))
|
|
134
|
-
.option("--dev", "Use ikas dev environment (.myikas.dev + studio-dev.ikasapps.com) instead of prod")
|
|
135
|
-
.option("-e, --editor <url>", "Override editor URL to proxy")
|
|
136
|
-
.option("-d, --domain <domain>", "Override admin domain suffix")
|
|
137
|
-
.action(async (opts) => {
|
|
138
|
-
const storeName = opts.store || (await promptForStore());
|
|
139
|
-
const envDefaults = resolveEnvironmentDefaults(Boolean(opts.dev));
|
|
140
|
-
const handle = await startProxy({
|
|
141
|
-
store: storeName,
|
|
142
|
-
adminPort: Number(opts.port) || DEFAULT_ADMIN_PORT,
|
|
143
|
-
editorPort: Number(opts.editorPort) || DEFAULT_EDITOR_PORT,
|
|
144
|
-
editorUrl: opts.editor || envDefaults.editorUrl,
|
|
145
|
-
adminDomain: opts.domain || envDefaults.adminDomain
|
|
146
|
-
});
|
|
147
|
-
printProxyBanner(handle);
|
|
148
|
-
console.log(chalk.gray(" Keep `ikas-component dev` running in another terminal for the WS server."));
|
|
149
|
-
});
|
|
150
|
-
return command;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Strip headers that prevent the proxied pages from running in an HTTP context
|
|
154
|
-
* (e.g. strict CSPs, framing rules). We need this because the admin/editor are
|
|
155
|
-
* normally loaded over HTTPS and may ship headers that are hostile to being
|
|
156
|
-
* served over http://localhost.
|
|
157
|
-
*/
|
|
158
|
-
function stripSecurityHeaders(proxy) {
|
|
159
|
-
proxy.on("proxyRes", (proxyRes) => {
|
|
160
|
-
delete proxyRes.headers["content-security-policy"];
|
|
161
|
-
delete proxyRes.headers["content-security-policy-report-only"];
|
|
162
|
-
delete proxyRes.headers["strict-transport-security"];
|
|
163
|
-
delete proxyRes.headers["cross-origin-opener-policy"];
|
|
164
|
-
delete proxyRes.headers["cross-origin-embedder-policy"];
|
|
165
|
-
delete proxyRes.headers["cross-origin-resource-policy"];
|
|
166
|
-
delete proxyRes.headers["x-frame-options"];
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Force identity encoding so response bodies arrive uncompressed and can be
|
|
171
|
-
* string-rewritten. Without this, admin responses come back gzip/brotli and
|
|
172
|
-
* the rewriter below would corrupt them.
|
|
173
|
-
*/
|
|
174
|
-
function disableCompression(proxy) {
|
|
175
|
-
proxy.on("proxyReq", (proxyReq) => {
|
|
176
|
-
proxyReq.setHeader("accept-encoding", "identity");
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* For text responses from the admin target, swap the deployed editor origin
|
|
181
|
-
* with the local editor proxy URL so the iframe src in the admin's bundled JS
|
|
182
|
-
* points at localhost instead of the HTTPS origin. That keeps everything on
|
|
183
|
-
* http://localhost, which is what unblocks ws://localhost:5201.
|
|
184
|
-
*/
|
|
185
|
-
function rewriteAdminBody(proxy, fromUrl, toUrl) {
|
|
186
|
-
proxy.on("proxyRes", (proxyRes, _req, res) => {
|
|
187
|
-
const contentType = String(proxyRes.headers["content-type"] || "");
|
|
188
|
-
const isText = /text\/|application\/(javascript|json|xml|xhtml)/i.test(contentType);
|
|
189
|
-
for (const [k, v] of Object.entries(proxyRes.headers)) {
|
|
190
|
-
if (k.toLowerCase() === "content-length")
|
|
191
|
-
continue;
|
|
192
|
-
if (v !== undefined)
|
|
193
|
-
res.setHeader(k, v);
|
|
194
|
-
}
|
|
195
|
-
res.statusCode = proxyRes.statusCode || 200;
|
|
196
|
-
if (!isText) {
|
|
197
|
-
proxyRes.pipe(res);
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
const chunks = [];
|
|
201
|
-
proxyRes.on("data", (c) => chunks.push(c));
|
|
202
|
-
proxyRes.on("end", () => {
|
|
203
|
-
let body = Buffer.concat(chunks).toString("utf8");
|
|
204
|
-
body = body.split(fromUrl).join(toUrl);
|
|
205
|
-
const out = Buffer.from(body, "utf8");
|
|
206
|
-
res.setHeader("content-length", String(out.length));
|
|
207
|
-
res.end(out);
|
|
208
|
-
});
|
|
209
|
-
proxyRes.on("error", () => res.end());
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
//# sourceMappingURL=proxy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../src/commands/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAsB,MAAM,MAAM,CAAC;AAE5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAG,iCAAiC,CAAC;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE7C,oDAAoD;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AAEtD,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AAwBrD,MAAM,CAAC,KAAK,UAAU,UAAU,CA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