Skip to content

Commit bf61e98

Browse files
committed
feat(decimal): add example project with Vite configuration and TypeScript support
- Created tsconfig.json for the decimal example, extending the base configuration and including Vite types. - Added vite.config.ts to set up Vite with Hikkaku plugin for the decimal example. - Updated turbo.json to include the new decimal example in the build process.
1 parent 48f26a0 commit bf61e98

9 files changed

Lines changed: 3710 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- `packages/skill/` contains skill docs and guides (`guides/`, `practices/`).
99
- `packages/testing/` provides Vitest-oriented Hikkaku + MoonScratch test helpers.
1010
- `examples/example1/` is the dev playground app for running the library with Vite.
11+
- `examples/decimal/` demonstrates V8-oriented arbitrary-precision decimal arithmetic in Scratch.
1112
- Root configs: `biome.json`, `tsconfig.json`, and workspace `package.json`.
1213

1314
## AGENTS.md Maintenance Policy

bun.lock

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../packages/skill/hikkaku

examples/decimal/AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* `src/main.ts`: The main entry point of the application.
2+
3+
* use `bun typecheck` to run type checking.

examples/decimal/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@repo/example-decimal",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "bun run example:build",
8+
"typecheck": "tsgo",
9+
"example:build": "bun --bun vite build"
10+
},
11+
"dependencies": {
12+
"hikkaku": "workspace:*"
13+
},
14+
"devDependencies": {
15+
"@typescript/native-preview": "^7.0.0-dev.20260127.1",
16+
"vite": "8.0.0-beta.14"
17+
},
18+
"exports": {
19+
".": "./src/main.ts"
20+
},
21+
"author": {
22+
"name": "Kingping",
23+
"url": "https://scratch.mit.edu/users/Kangping/"
24+
}
25+
}

0 commit comments

Comments
 (0)