Showcase app scaffold
This commit is contained in:
parent
e20b69d7e8
commit
144565afb5
12
packages/showcase/index.html
Normal file
12
packages/showcase/index.html
Normal 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>
|
||||
21
packages/showcase/package.json
Normal file
21
packages/showcase/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
5
packages/showcase/src/app.css
Normal file
5
packages/showcase/src/app.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
4
packages/showcase/src/app.tsx
Normal file
4
packages/showcase/src/app.tsx
Normal file
@ -0,0 +1,4 @@
|
||||
/** Root application component for the PettyUI kitchen-sink showcase. */
|
||||
export function App() {
|
||||
return <div>PettyUI Showcase</div>;
|
||||
}
|
||||
8
packages/showcase/src/index.tsx
Normal file
8
packages/showcase/src/index.tsx
Normal 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);
|
||||
}
|
||||
12
packages/showcase/tsconfig.json
Normal file
12
packages/showcase/tsconfig.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"pettyui/*": ["../core/src/components/*/index.ts"]
|
||||
}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
14
packages/showcase/vite.config.ts
Normal file
14
packages/showcase/vite.config.ts
Normal 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
1004
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user