@farbenmeer/bunny 0.1.0 → 0.1.1

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.
Binary file
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farbenmeer/bunny",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "author": {
5
5
  "name": "Michel Smola",
6
6
  "email": "michel.smola@farbenmeer.de"
@@ -26,9 +26,10 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@farbenmeer/react-tapi": "^0.1.5",
29
- "@farbenmeer/tapi": "^0.1.7",
29
+ "@farbenmeer/tapi": "^0.1.8",
30
30
  "@tailwindcss/postcss": "^4.1.12",
31
31
  "commander": "^14.0.0",
32
+ "drizzle-orm": "^0.44.5",
32
33
  "postcss": "^8.5.6"
33
34
  },
34
35
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- export declare const serverCode = "\nimport { serve } from \"bun\";\nimport { createRequestHandler } from \"@farbenmeer/bunny\";\nimport { api } from \"api\";\nimport client from \"index.html\";\n\nconst tapiHandler = createRequestHandler(api);\n\n\nserve({\n routes: {\n \"/api/*\": (req) => tapiHandler(new Request(req)),\n \"/*\": client,\n },\n port: 3000,\n development: process.env.NODE_ENV === \"development\" && {\n // Enable browser hot reloading in development\n hmr: true,\n\n // Echo console logs from the browser to the server\n console: true,\n },\n});\n";
2
- //# sourceMappingURL=generate-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-server.d.ts","sourceRoot":"","sources":["../../src/cli/generate-server.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,ijBAuBtB,CAAC"}
@@ -1,25 +0,0 @@
1
- import * as path from "node:path";
2
- export const serverCode = `
3
- import { serve } from "bun";
4
- import { createRequestHandler } from "@farbenmeer/bunny";
5
- import { api } from "api";
6
- import client from "index.html";
7
-
8
- const tapiHandler = createRequestHandler(api);
9
-
10
-
11
- serve({
12
- routes: {
13
- "/api/*": (req) => tapiHandler(new Request(req)),
14
- "/*": client,
15
- },
16
- port: 3000,
17
- development: process.env.NODE_ENV === "development" && {
18
- // Enable browser hot reloading in development
19
- hmr: true,
20
-
21
- // Echo console logs from the browser to the server
22
- console: true,
23
- },
24
- });
25
- `;
@@ -1,3 +0,0 @@
1
- import type { BunPlugin } from "bun";
2
- export declare const tailwindPlugin: BunPlugin;
3
- //# sourceMappingURL=register-tailwind-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register-tailwind-plugin.d.ts","sourceRoot":"","sources":["../../src/cli/register-tailwind-plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAKrC,eAAO,MAAM,cAAc,EAAE,SAe5B,CAAC"}
@@ -1,19 +0,0 @@
1
- //import postcss from "postcss";
2
- //const processCss = postcss([postcssTailwind({})]);
3
- export const tailwindPlugin = {
4
- name: "Tailwind CSS",
5
- target: "bun",
6
- setup(build) {
7
- //build.onLoad({ filter: /\.(css)$/ }, async ({ path }) => {
8
- // console.log("process", path);
9
- // const contents = await Bun.file(path).text();
10
- // const result = await processCss.process(contents, { from: path });
11
- // return { contents: result.css, loader: "css" };
12
- //});
13
- build.onLoad({ filter: /^$/ }, async ({ path }) => {
14
- console.log("load", path);
15
- });
16
- },
17
- };
18
- console.log("register plugin");
19
- Bun.plugin(tailwindPlugin);
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=server-direct.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server-direct.d.ts","sourceRoot":"","sources":["../../src/cli/server-direct.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { serve } from "bun";
2
- import { createRequestHandler } from "@farbenmeer/tapi";
3
- // @ts-ignore
4
- import { api } from "api";
5
- import client from "index.html";
6
- const tapiHandler = createRequestHandler(api);
7
- serve({
8
- routes: {
9
- "/api/*": (req) => tapiHandler(new Request(req)),
10
- "/*": client,
11
- },
12
- port: 3000,
13
- development: process.env.NODE_ENV === "development" && {
14
- // Enable browser hot reloading in development
15
- hmr: true,
16
- // Echo console logs from the browser to the server
17
- console: true,
18
- },
19
- });