diff --git a/examples/spa/.npmrc b/examples/spa/.npmrc new file mode 100644 index 0000000..6c57d5c --- /dev/null +++ b/examples/spa/.npmrc @@ -0,0 +1 @@ +registry=https://npm.nose.space diff --git a/examples/spa/bun.lock b/examples/spa/bun.lock deleted file mode 100644 index ed89d3e..0000000 --- a/examples/spa/bun.lock +++ /dev/null @@ -1,35 +0,0 @@ -{ - "lockfileVersion": 1, - "configVersion": 1, - "workspaces": { - "": { - "name": "hype-spa-example", - "dependencies": { - "hype": "git+https://git.nose.space/defunkt/hype", - }, - "devDependencies": { - "@types/bun": "latest", - }, - "peerDependencies": { - "typescript": "^5", - }, - }, - }, - "packages": { - "@types/bun": ["@types/bun@1.3.6", "", { "dependencies": { "bun-types": "1.3.6" } }, "sha512-uWCv6FO/8LcpREhenN1d1b6fcspAB+cefwD7uti8C8VffIv0Um08TKMn98FynpTiU38+y2dUO55T11NgDt8VAA=="], - - "@types/node": ["@types/node@25.0.9", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw=="], - - "bun-types": ["bun-types@1.3.6", "", { "dependencies": { "@types/node": "*" } }, "sha512-OlFwHcnNV99r//9v5IIOgQ9Uk37gZqrNMCcqEaExdkVq3Avwqok1bJFmvGMCkCE0FqzdY8VMOZpfpR3lwI+CsQ=="], - - "hono": ["hono@4.11.4", "", {}, "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA=="], - - "hype": ["hype@git+https://git.nose.space/defunkt/hype#33d228c9ac6a01fad570e0ac2ba836a100dde623", { "dependencies": { "hono": "^4.10.4", "kleur": "^4.1.5" }, "peerDependencies": { "typescript": "^5" } }, "33d228c9ac6a01fad570e0ac2ba836a100dde623"], - - "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], - - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - - "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], - } -} diff --git a/examples/spa/package.json b/examples/spa/package.json index b463f15..c4a5a1f 100644 --- a/examples/spa/package.json +++ b/examples/spa/package.json @@ -9,7 +9,7 @@ "typescript": "^5" }, "dependencies": { - "hype": "git+https://git.nose.space/defunkt/hype" + "@because/hype": "*" }, "scripts": { "start": "bun run src/server/index.ts", diff --git a/examples/spa/src/server/index.ts b/examples/spa/src/server/index.ts index 289c7a1..99049e2 100644 --- a/examples/spa/src/server/index.ts +++ b/examples/spa/src/server/index.ts @@ -1,4 +1,4 @@ -import { Hype } from 'hype' +import { Hype } from '@because/hype' const app = new Hype({ layout: false }) diff --git a/examples/ssr/.npmrc b/examples/ssr/.npmrc new file mode 100644 index 0000000..6c57d5c --- /dev/null +++ b/examples/ssr/.npmrc @@ -0,0 +1 @@ +registry=https://npm.nose.space diff --git a/examples/ssr/bun.lock b/examples/ssr/bun.lock deleted file mode 100644 index c4e6c3c..0000000 --- a/examples/ssr/bun.lock +++ /dev/null @@ -1,35 +0,0 @@ -{ - "lockfileVersion": 1, - "configVersion": 1, - "workspaces": { - "": { - "name": "hype-ssr-example", - "dependencies": { - "hype": "git+https://git.nose.space/defunkt/hype", - }, - "devDependencies": { - "@types/bun": "latest", - }, - "peerDependencies": { - "typescript": "^5", - }, - }, - }, - "packages": { - "@types/bun": ["@types/bun@1.3.6", "", { "dependencies": { "bun-types": "1.3.6" } }, "sha512-uWCv6FO/8LcpREhenN1d1b6fcspAB+cefwD7uti8C8VffIv0Um08TKMn98FynpTiU38+y2dUO55T11NgDt8VAA=="], - - "@types/node": ["@types/node@25.0.9", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw=="], - - "bun-types": ["bun-types@1.3.6", "", { "dependencies": { "@types/node": "*" } }, "sha512-OlFwHcnNV99r//9v5IIOgQ9Uk37gZqrNMCcqEaExdkVq3Avwqok1bJFmvGMCkCE0FqzdY8VMOZpfpR3lwI+CsQ=="], - - "hono": ["hono@4.11.4", "", {}, "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA=="], - - "hype": ["hype@git+https://git.nose.space/defunkt/hype#33d228c9ac6a01fad570e0ac2ba836a100dde623", { "dependencies": { "hono": "^4.10.4", "kleur": "^4.1.5" }, "peerDependencies": { "typescript": "^5" } }, "33d228c9ac6a01fad570e0ac2ba836a100dde623"], - - "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], - - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - - "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], - } -} diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 650feeb..08adaaa 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -9,10 +9,10 @@ "typescript": "^5" }, "dependencies": { - "hype": "git+https://git.nose.space/defunkt/hype" + "@because/hype": "*" }, "scripts": { "start": "bun run src/server/index.ts", "dev": "bun run --hot src/server/index.ts" } -} \ No newline at end of file +} diff --git a/examples/ssr/src/pages/js-test.tsx b/examples/ssr/src/pages/js-test.tsx index 065b8ca..2a8d45e 100644 --- a/examples/ssr/src/pages/js-test.tsx +++ b/examples/ssr/src/pages/js-test.tsx @@ -1,4 +1,4 @@ -import { fe } from 'hype' +import { fe } from '@because/hype' const test = fe(() => { alert('ding dong') diff --git a/examples/ssr/src/pages/sse.tsx b/examples/ssr/src/pages/sse.tsx index 121134c..1020159 100644 --- a/examples/ssr/src/pages/sse.tsx +++ b/examples/ssr/src/pages/sse.tsx @@ -1,4 +1,4 @@ -import { js } from 'hype' +import { js } from '@because/hype' export default () => (
diff --git a/examples/ssr/src/server/index.ts b/examples/ssr/src/server/index.ts index 4f33d34..0ed479b 100644 --- a/examples/ssr/src/server/index.ts +++ b/examples/ssr/src/server/index.ts @@ -1,4 +1,4 @@ -import { Hype } from 'hype' +import { Hype } from '@because/hype' const app = new Hype({})