Skip to content

Commit

Permalink
feat(playground): introduce dev playground (#1)
Browse files Browse the repository at this point in the history
* feat(playground): introduce dev playground

* update linter
  • Loading branch information
mimshins authored Feb 3, 2025
1 parent f060282 commit abc9873
Show file tree
Hide file tree
Showing 12 changed files with 1,562 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
},
"scripts": {
"install": "cd playground && pnpm install",
"clear": "shx rm -rf dist",
"test": "echo \"\"",
"build:cjs": "tsc --project ./tsconfig.build-cjs.json",
Expand All @@ -27,6 +28,7 @@
"lint:ts": "tsc --project tsconfig.json",
"lint:ecma": "eslint --fix",
"lint": "run-p lint:*",
"dev": "cd playground && pnpm dev",
"release": "pnpm publish . --tag latest --access public"
},
"devDependencies": {
Expand Down
Empty file added playground/client/index.css
Empty file.
25 changes: 25 additions & 0 deletions playground/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!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"
/>
<link
rel="stylesheet"
href="index.css"
/>
<script
type="module"
src="index.ts"
></script>
<title>Playground</title>
</head>
<body></body>
</html>
Empty file added playground/client/index.ts
Empty file.
1 change: 1 addition & 0 deletions playground/client/public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions playground/client/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
20 changes: 20 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "playground",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev:client": "vite",
"dev:server": "tsx --watch ./server/index.ts",
"dev": "run-p dev:server dev:client"
},
"dependencies": {
"express": "^5.0.1",
"socket.io": "^4.8.1"
},
"devDependencies": {
"@types/express": "^5.0.0",
"vite": "^5.4.12",
"vite-tsconfig-paths": "^5.1.2"
}
}
Loading

0 comments on commit abc9873

Please sign in to comment.