Skip to content

Commit

Permalink
docs: add playground
Browse files Browse the repository at this point in the history
  • Loading branch information
JB AUBREE committed Oct 19, 2024
1 parent 4813aa4 commit cb2f3b5
Show file tree
Hide file tree
Showing 17 changed files with 1,304 additions and 47 deletions.
3 changes: 2 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export default defineBuildConfig({
entries: [
'src/index',
],
declaration: 'node16',
declaration: true,
clean: true,
rollup: {
esbuild: {
minify: true,
},
emitCJS: true,
},
})
23 changes: 0 additions & 23 deletions dts.config.ts

This file was deleted.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,27 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.mts"
"./dist/index.d.ts"
]
}
},
"files": [
"dist"
],
"scripts": {
"build": "unbuild && dts-bundle-generator --config dts.config.ts",
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
Expand Down Expand Up @@ -78,7 +79,6 @@
"@types/node": "^22.7.5",
"@vitest/coverage-v8": "^2.1.3",
"bumpp": "^9.7.1",
"dts-bundle-generator": "^9.5.1",
"eslint": "^9.12.0",
"esno": "^4.8.0",
"happy-dom": "^15.7.4",
Expand Down
30 changes: 30 additions & 0 deletions playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
1 change: 1 addition & 0 deletions playground/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
13 changes: 13 additions & 0 deletions playground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
26 changes: 26 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "playground",
"type": "module",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"vue": "^3.5.12"
},
"devDependencies": {
"@types/node": "^20.16.11",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.5.1",
"typescript": "~5.5.4",
"vite": "^5.4.8",
"vue-tsc": "^2.1.6",
"vue-use-form-validation": "workspace:*",
"zod": "^3.23.8"
}
}
Loading

0 comments on commit cb2f3b5

Please sign in to comment.