Showcase app scaffold

This commit is contained in:
Mats Bosson 2026-03-30 03:12:57 +07:00
parent e20b69d7e8
commit 144565afb5
8 changed files with 1051 additions and 29 deletions

View File

@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PettyUI — Kitchen Sink</title>
</head>
<body>
<div id="root"></div>
<script src="/src/index.tsx" type="module"></script>
</body>
</html>

View File

@ -0,0 +1,21 @@
{
"name": "pettyui-showcase",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"pettyui": "workspace:*",
"solid-js": "^1.9.12"
},
"devDependencies": {
"@tailwindcss/vite": "^4.1.3",
"tailwindcss": "^4.1.3",
"vite": "^8.0.3",
"vite-plugin-solid": "^2.11.11"
}
}

View File

@ -0,0 +1,5 @@
@import "tailwindcss";
html {
scroll-behavior: smooth;
}

View File

@ -0,0 +1,4 @@
/** Root application component for the PettyUI kitchen-sink showcase. */
export function App() {
return <div>PettyUI Showcase</div>;
}

View File

@ -0,0 +1,8 @@
import { render } from "solid-js/web";
import { App } from "./app";
import "./app.css";
const root = document.getElementById("root");
if (root) {
render(() => <App />, root);
}

View File

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"baseUrl": ".",
"paths": {
"pettyui/*": ["../core/src/components/*/index.ts"]
}
},
"include": ["src"]
}

View File

@ -0,0 +1,14 @@
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
export default defineConfig({
plugins: [solid(), tailwindcss()],
resolve: {
conditions: ["solid", "browser", "module", "import"],
alias: {
"pettyui": path.resolve(__dirname, "../core/src/components"),
},
},
});

1004
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff