create-skybridge 0.0.0-dev.c6f58d9 → 0.0.0-dev.c7510b8

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.
Files changed (65) hide show
  1. package/dist/index.js +315 -214
  2. package/package.json +7 -6
  3. package/{template → templates/blank}/Dockerfile +2 -2
  4. package/templates/blank/README.md +92 -0
  5. package/{template → templates/blank}/node_modules/.bin/alpic +2 -2
  6. package/{template → templates/blank}/node_modules/.bin/tsc +2 -2
  7. package/{template → templates/blank}/node_modules/.bin/tsserver +2 -2
  8. package/{template → templates/blank}/node_modules/.bin/vite +2 -2
  9. package/templates/blank/package.json +28 -0
  10. package/templates/blank/src/server.ts +21 -0
  11. package/templates/blank/tsconfig.json +5 -0
  12. package/templates/blank/vite.config.ts +6 -0
  13. package/templates/demo/.dockerignore +4 -0
  14. package/templates/demo/AGENTS.md +1 -0
  15. package/templates/demo/Dockerfile +53 -0
  16. package/{template → templates/demo}/README.md +16 -15
  17. package/templates/demo/_gitignore +6 -0
  18. package/templates/demo/alpic.json +3 -0
  19. package/templates/demo/node_modules/.bin/alpic +21 -0
  20. package/templates/demo/node_modules/.bin/sb +21 -0
  21. package/templates/demo/node_modules/.bin/skybridge +21 -0
  22. package/templates/demo/node_modules/.bin/tsc +21 -0
  23. package/templates/demo/node_modules/.bin/tsserver +21 -0
  24. package/{template → templates/demo}/node_modules/.bin/tsx +2 -2
  25. package/templates/demo/node_modules/.bin/vite +21 -0
  26. package/{template → templates/demo}/package.json +15 -15
  27. package/templates/demo/src/helpers.ts +4 -0
  28. package/{template → templates/demo}/src/server.ts +23 -1
  29. package/{template → templates/demo}/src/views/components/steps/tool-output.tsx +2 -2
  30. package/templates/demo/src/vite-manifest.d.ts +4 -0
  31. package/dist/index.test.d.ts +0 -1
  32. package/dist/index.test.js +0 -35
  33. /package/{template → templates/blank}/.dockerignore +0 -0
  34. /package/{template → templates/blank}/AGENTS.md +0 -0
  35. /package/{template → templates/blank}/_gitignore +0 -0
  36. /package/{template → templates/blank}/alpic.json +0 -0
  37. /package/{template → templates/blank}/node_modules/.bin/sb +0 -0
  38. /package/{template → templates/blank}/node_modules/.bin/skybridge +0 -0
  39. /package/{template → templates/blank}/src/helpers.ts +0 -0
  40. /package/{template → templates/blank}/src/vite-manifest.d.ts +0 -0
  41. /package/{template → templates/demo}/src/index.css +0 -0
  42. /package/{template → templates/demo}/src/views/components/doc-link.tsx +0 -0
  43. /package/{template → templates/demo}/src/views/components/doc.tsx +0 -0
  44. /package/{template → templates/demo}/src/views/components/nav.tsx +0 -0
  45. /package/{template → templates/demo}/src/views/components/progress.tsx +0 -0
  46. /package/{template → templates/demo}/src/views/components/steps/outro.tsx +0 -0
  47. /package/{template → templates/demo}/src/views/components/steps/state.tsx +0 -0
  48. /package/{template → templates/demo}/src/views/components/steps/tool-call.tsx +0 -0
  49. /package/{template → templates/demo}/src/views/images/mascot/beret.png +0 -0
  50. /package/{template → templates/demo}/src/views/images/mascot/chapka.png +0 -0
  51. /package/{template → templates/demo}/src/views/images/mascot/cowboy-hat.png +0 -0
  52. /package/{template → templates/demo}/src/views/images/mascot/fez.png +0 -0
  53. /package/{template → templates/demo}/src/views/images/mascot/jester-hat.png +0 -0
  54. /package/{template → templates/demo}/src/views/images/mascot/mitre.png +0 -0
  55. /package/{template → templates/demo}/src/views/images/mascot/non-la.png +0 -0
  56. /package/{template → templates/demo}/src/views/images/mascot/original.png +0 -0
  57. /package/{template → templates/demo}/src/views/images/mascot/propeller-beanie.png +0 -0
  58. /package/{template → templates/demo}/src/views/images/mascot/ski-mask.png +0 -0
  59. /package/{template → templates/demo}/src/views/images/mascot/sombrero.png +0 -0
  60. /package/{template → templates/demo}/src/views/images/mascot/top-hat.png +0 -0
  61. /package/{template → templates/demo}/src/views/images/mascot/viking-helmet.png +0 -0
  62. /package/{template → templates/demo}/src/views/onboarding.tsx +0 -0
  63. /package/{template → templates/demo}/src/views/use-mascot.ts +0 -0
  64. /package/{template → templates/demo}/tsconfig.json +0 -0
  65. /package/{template → templates/demo}/vite.config.ts +0 -0
@@ -0,0 +1,4 @@
1
+ // Typed shim for the Vite manifest emitted by `skybridge build`. The actual
2
+ // `vite-manifest.js` is generated alongside this file and gitignored.
3
+ declare const manifest: Record<string, { file: string }>;
4
+ export default manifest;
@@ -1 +0,0 @@
1
- export {};
@@ -1,35 +0,0 @@
1
- import { randomBytes } from "node:crypto";
2
- import fs from "node:fs/promises";
3
- import path from "node:path";
4
- import { afterEach, beforeEach, describe, expect, it } from "vitest";
5
- import { init } from "./index.js";
6
- describe("create-skybridge", () => {
7
- let tempDirName;
8
- beforeEach(() => {
9
- tempDirName = `test-${randomBytes(2).toString("hex")}`;
10
- });
11
- afterEach(async () => {
12
- await fs.rm(path.join(process.cwd(), tempDirName), {
13
- recursive: true,
14
- force: true,
15
- });
16
- });
17
- it("should copy the template", { timeout: 10000 }, async () => {
18
- const name = `../../${tempDirName}//project$`;
19
- await init([name]);
20
- await fs.access(path.join(process.cwd(), tempDirName, "project", ".gitignore"));
21
- await fs.access(path.join(process.cwd(), tempDirName, "project", ".dockerignore"));
22
- await fs.access(path.join(process.cwd(), tempDirName, "project", "Dockerfile"));
23
- expect(fs.access(path.join(process.cwd(), tempDirName, "project", ".npmrc"))).rejects.toThrowError();
24
- });
25
- it("should download template from repo", { timeout: 10000 }, async () => {
26
- const name = `../../${tempDirName}//project$`;
27
- await init([
28
- name,
29
- "--repo",
30
- "github:alpic-ai/skybridge/examples/ecom-carousel",
31
- ]);
32
- await fs.access(path.join(process.cwd(), tempDirName, "project", ".gitignore"));
33
- expect(fs.access(path.join(process.cwd(), tempDirName, "project", ".npmrc"))).rejects.toThrowError();
34
- });
35
- });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes