Skip to content

Commit

Permalink
Add start of new vite-based client.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy-b committed Nov 3, 2024
1 parent 93efe9a commit 7290bb5
Show file tree
Hide file tree
Showing 21 changed files with 17,372 additions and 39,890 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"license": "MIT",
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.25.9",
"lerna": "^4.0.0"
},
"scripts": {
Expand Down
46,405 changes: 6,531 additions & 39,874 deletions packages/client/package-lock.json

Large diffs are not rendered by default.

31 changes: 15 additions & 16 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,24 @@
]
},
"dependencies": {
"preact": "^10.3.1",
"preact-render-to-string": "^5.1.4",
"preact-router": "^3.2.1"
"preact": "^10.24.3",
"preact-render-to-string": "^6.5.11",
"preact-router": "^4.1.2"
},
"devDependencies": {
"@types/enzyme": "^3.10.5",
"@types/jest": "^26.0.8",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"@types/enzyme": "^3.10.18",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-preact": "^1.1.1",
"jest": "^27.2.5",
"jest-preset-preact": "^4.0.2",
"preact-cli": "^3.0.0",
"sirv-cli": "^1.0.0-next.3",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"typescript": "^4.5.2"
"enzyme-adapter-preact-pure": "^4.1.0",
"eslint": "^8.57.1",
"eslint-config-preact": "^1.5.0",
"jest": "^29.7.0",
"jest-preset-preact": "^4.1.1",
"sirv-cli": "^3.0.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.6.3"
},
"jest": {
"preset": "jest-preset-preact",
Expand Down
24 changes: 24 additions & 0 deletions packages/client2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
15 changes: 15 additions & 0 deletions packages/client2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# `create-preact`

<h2 align="center">
<img height="256" width="256" src="./src/assets/preact.svg">
</h2>

<h3 align="center">Get started using Preact and Vite!</h3>

## Getting Started

- `npm run dev` - Starts a dev server at http://localhost:5173/

- `npm run build` - Builds for production, emitting to `dist/`

- `npm run preview` - Starts a server at http://localhost:4173/ to test production build locally
12 changes: 12 additions & 0 deletions packages/client2/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"plugins": [
[
"babel-plugin-jsx-pragmatic",
{
"module": "preact",
"import": "h",
"export": "h"
}
]
]
}
14 changes: 14 additions & 0 deletions packages/client2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>Vite + Preact</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit 7290bb5

Please sign in to comment.