Playground settings
Some checks failed
CI / build (push) Failing after 22s

This commit is contained in:
Andrey Kernichniy 2026-03-04 02:22:29 +07:00
parent 47e9cf85b8
commit 63818eb2b8
9 changed files with 1122 additions and 3 deletions

2
.gitignore vendored
View file

@ -30,4 +30,4 @@ yarn-error.log
.DS_Store
Thumbs.db
playground/gxc-canvas-viewer/**/*.*
playground/*/**/*.*

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib"
}

1055
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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,13 +20,15 @@
"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"
},
"dependencies": {
"@gxc-solutions/math": "^0.0.1",

13
playground/index.html Normal file
View 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
View file

@ -0,0 +1 @@
console.warn("Hello world!");

26
playground/tsconfig.json Normal file
View 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
View 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
View file

@ -0,0 +1,8 @@
{
"compilerOptions": {
"rootDir": "./lib/src",
"outDir": "./playground/renderer-canvas-2d",
},
"extends": ["./tsconfig.json"],
"exclude": ["./node_modules/*", "./lib/**/*.test.ts"]
}