This commit is contained in:
parent
1d6dfdd2e9
commit
85c15b3dad
9 changed files with 1121 additions and 2 deletions
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||
}
|
||||
1055
package-lock.json
generated
1055
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,6 +3,8 @@
|
|||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "vite -c ./playground/vite.config.ts",
|
||||
"dev": "tsc -p ./tsconfig.dev.json --watch",
|
||||
"build": "npm run clean && tsc && npm run create-package",
|
||||
"create-package": "node ./scripts/create-package",
|
||||
"clean": "rimraf dist",
|
||||
|
|
@ -18,12 +20,14 @@
|
|||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.3.4",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@types/node": "^25.3.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
||||
"eslint": "^10.0.2",
|
||||
"globals": "^17.4.0",
|
||||
"husky": "^9.1.7",
|
||||
"prettier": "^3.8.1",
|
||||
"rimraf": "^6.0.1",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.3.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
playground/index.html
Normal file
13
playground/index.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Playground</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello world!</h1>
|
||||
|
||||
<script type="module" src="./index.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
1
playground/index.ts
Normal file
1
playground/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
console.warn("Hello world!");
|
||||
26
playground/tsconfig.json
Normal file
26
playground/tsconfig.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"types": ["vite/client"],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true,
|
||||
},
|
||||
"include": ["./"]
|
||||
}
|
||||
11
playground/vite.config.ts
Normal file
11
playground/vite.config.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import path from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
root: path.resolve(__dirname),
|
||||
resolve: {},
|
||||
server: {
|
||||
open: true,
|
||||
port: 3200,
|
||||
},
|
||||
});
|
||||
8
tsconfig.dev.json
Normal file
8
tsconfig.dev.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"rootDir": "./lib/src",
|
||||
"outDir": "./playground/lib",
|
||||
},
|
||||
"extends": ["./tsconfig.json"],
|
||||
"exclude": ["./node_modules/*", "./lib/**/*.test.ts"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue