@aprovan/patchwork-web 0.1.0-dev.78c0b14 → 0.1.0-dev.93c7b6a
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/.turbo/turbo-build.log +1 -1
- package/package.json +6 -5
- package/scripts/start-dev.ts +18 -8
- package/vite.config.ts +8 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -324,4 +324,4 @@ computing gzip size...
|
|
|
324
324
|
- Using dynamic import() to code-split the application
|
|
325
325
|
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
326
326
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.[39m
|
|
327
|
-
[32m✓ built in 8.
|
|
327
|
+
[32m✓ built in 8.51s[39m
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aprovan/patchwork-web",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.93c7b6a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@ai-sdk/react": "^3.0.69",
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
"remark-gfm": "^4.0.1",
|
|
27
27
|
"tailwind-merge": "^3.4.0",
|
|
28
28
|
"tiptap-markdown": "^0.9.0",
|
|
29
|
-
"@aprovan/
|
|
30
|
-
"@aprovan/patchwork-compiler": "0.1.2-dev.
|
|
31
|
-
"@aprovan/
|
|
29
|
+
"@aprovan/bobbin": "0.1.0-dev.93c7b6a",
|
|
30
|
+
"@aprovan/patchwork-compiler": "0.1.2-dev.93c7b6a",
|
|
31
|
+
"@aprovan/patchwork-editor": "0.1.2-dev.93c7b6a",
|
|
32
|
+
"@aprovan/stitchery": "0.1.0-dev.93c7b6a"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@tailwindcss/typography": "^0.5.19",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"scripts": {
|
|
48
49
|
"dev": "tsx scripts/start-dev.ts",
|
|
49
50
|
"dev:client": "vite",
|
|
50
|
-
"dev:server": "
|
|
51
|
+
"dev:server": "node ../../packages/stitchery/dist/cli.js serve --utcp-config .utcp_config.json --local-package @aprovan/patchwork-image-shadcn:../../packages/images/shadcn -v --vfs-dir ./workspace --vfs-use-paths",
|
|
51
52
|
"build": "tsc && vite build",
|
|
52
53
|
"preview": "vite preview"
|
|
53
54
|
}
|
package/scripts/start-dev.ts
CHANGED
|
@@ -6,13 +6,9 @@ import "dotenv/config";
|
|
|
6
6
|
* Allocates consecutive ports for all services and starts them together.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import path from "node:path";
|
|
10
|
-
import { fileURLToPath } from "node:url";
|
|
11
9
|
import { spawn } from "node:child_process";
|
|
12
10
|
import { allocatePorts } from "@aprovan/devtools";
|
|
13
11
|
|
|
14
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
15
|
-
|
|
16
12
|
const PROJECT = process.env.PROJECT ?? "patchwork";
|
|
17
13
|
const BASE_PORT = process.env.PORT ? parseInt(process.env.PORT) : 3700;
|
|
18
14
|
|
|
@@ -37,11 +33,25 @@ async function main() {
|
|
|
37
33
|
API_URL: `http://127.0.0.1:${serverPort}`,
|
|
38
34
|
};
|
|
39
35
|
|
|
40
|
-
const
|
|
41
|
-
|
|
36
|
+
const serverArgs = [
|
|
37
|
+
"node",
|
|
38
|
+
"../../packages/stitchery/dist/cli.js",
|
|
39
|
+
"serve",
|
|
40
|
+
"-p",
|
|
41
|
+
String(serverPort),
|
|
42
|
+
"--utcp-config",
|
|
43
|
+
".utcp_config.json",
|
|
44
|
+
"--local-package",
|
|
45
|
+
"@aprovan/patchwork-image-shadcn:../../packages/images/shadcn",
|
|
46
|
+
"-v",
|
|
47
|
+
"--vfs-dir",
|
|
48
|
+
"./workspace",
|
|
49
|
+
"--vfs-use-paths",
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const server = spawn(serverArgs[0]!, serverArgs.slice(1), {
|
|
42
53
|
stdio: "inherit",
|
|
43
|
-
env
|
|
44
|
-
cwd: chatApiDir,
|
|
54
|
+
env,
|
|
45
55
|
});
|
|
46
56
|
|
|
47
57
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
package/vite.config.ts
CHANGED