@alltuner/vibetuner 10.11.1 → 10.12.0

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/README.md CHANGED
@@ -114,8 +114,9 @@ Vibetuner consists of four packages that work together:
114
114
  2. **@alltuner/vibetuner** (this package):
115
115
  JavaScript/CSS build dependencies (tailwind, daisyui, htmx, etc.)
116
116
  3. **[@alltuner/vibetuner-jinja](https://www.npmjs.com/package/@alltuner/vibetuner-jinja)**:
117
- npm-shipped mirror of vibetuner's frontend jinja templates so tailwind
118
- can `@source` them at frontend build time without shelling out to Python
117
+ npm-shipped mirror of vibetuner's frontend jinja templates, pulled in
118
+ transitively by this package so tailwind can scan them at frontend
119
+ build time without shelling out to Python (no direct install needed)
119
120
  4. **Scaffolding template**: Copier template for project generation
120
121
 
121
122
  All four are version-locked and tested together to ensure compatibility.
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bun
2
+ // ABOUTME: Re-exposes the `tailwindcss` CLI bin from @tailwindcss/cli so scaffolded
3
+ // ABOUTME: projects can `bun tailwindcss ...` without declaring it as a direct dep.
4
+ import { createRequire } from "node:module";
5
+ import { dirname, join } from "node:path";
6
+
7
+ const require = createRequire(import.meta.url);
8
+ const pkgPath = require.resolve("@tailwindcss/cli/package.json");
9
+ const { bin } = require("@tailwindcss/cli/package.json");
10
+
11
+ await import(join(dirname(pkgPath), bin.tailwindcss));
package/core.css ADDED
@@ -0,0 +1,6 @@
1
+ /* ABOUTME: Tailwind + daisyui setup shipped with vibetuner-js, imported by scaffolded projects' config.css. */
2
+ /* ABOUTME: Lives inside this package so tailwindcss, daisyui, and vibetuner-jinja resolve from here. */
3
+
4
+ @import "tailwindcss" source(none);
5
+ @import "@alltuner/vibetuner-jinja/sources.css";
6
+ @plugin "daisyui";
@@ -0,0 +1,3 @@
1
+ // ABOUTME: Re-exports the htmx hx-preload extension via @alltuner/vibetuner/htmx/preload
2
+ // ABOUTME: so scaffolded projects don't need a direct htmx.org dep to enable it.
3
+ import "htmx.org/dist/ext/hx-preload.js";
package/htmx.js ADDED
@@ -0,0 +1,5 @@
1
+ // ABOUTME: Thin re-export of htmx.org so scaffolded projects can import htmx
2
+ // ABOUTME: as `@alltuner/vibetuner/htmx` without depending on it directly.
3
+ import htmx from "htmx.org";
4
+
5
+ export default htmx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alltuner/vibetuner",
3
- "version": "10.11.1",
3
+ "version": "10.12.0",
4
4
  "description": "Blessed JavaScript/frontend build dependencies for production-ready Vibetuner projects",
5
5
  "keywords": [
6
6
  "tailwindcss",
@@ -22,7 +22,16 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/alltuner/vibetuner/issues"
24
24
  },
25
+ "exports": {
26
+ "./core.css": "./core.css",
27
+ "./htmx": "./htmx.js",
28
+ "./htmx/preload": "./htmx-preload.js"
29
+ },
30
+ "bin": {
31
+ "tailwindcss": "./bin/tailwindcss.js"
32
+ },
25
33
  "dependencies": {
34
+ "@alltuner/vibetuner-jinja": "^10.11.0",
26
35
  "concurrently": "^9.2.1",
27
36
  "daisyui": "^5.5.19",
28
37
  "htmx.org": "4.0.0-beta3",