Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9aca3ba
Remove root npm tooling
stefnotch Mar 27, 2025
e8eeffc
Deno-ify mini-parse
stefnotch Mar 27, 2025
3644d65
Replace vitest
stefnotch Mar 27, 2025
69ad99f
Port wesl
stefnotch Mar 27, 2025
ce88d74
Replace vitest
stefnotch Mar 27, 2025
e785e7f
Port benchmarking
stefnotch Mar 27, 2025
7bb8e9f
Add license to mini-parse
stefnotch Mar 27, 2025
bfd83ee
Fix test running for now
stefnotch Mar 27, 2025
180fd15
Update unity-web-research
stefnotch Mar 27, 2025
49e5c2a
Port bulk tests
stefnotch Mar 28, 2025
2cc84fd
Port wesl stripping tests
stefnotch Mar 28, 2025
f033676
Add skipped wgpu integration test
stefnotch Mar 28, 2025
98735d4
Simplify wgpu integration test
stefnotch Mar 28, 2025
46d42eb
Try dnt transform
stefnotch Mar 28, 2025
f968b4b
Working deno to node transformation
stefnotch Mar 28, 2025
37be31a
Add vite for bundling
stefnotch Mar 29, 2025
4215864
Massively simplify the setup
stefnotch Mar 29, 2025
7ed4425
Remove unused file
stefnotch Mar 29, 2025
be0ba0b
Update developing instructions
stefnotch Mar 29, 2025
bfd35f8
Add deno extension recommendation
stefnotch Mar 29, 2025
c42d3b3
Workaround for https://github.com/denoland/vscode_deno/issues/1200
stefnotch Mar 29, 2025
268b84a
Add tokenizer benchmarks
stefnotch Mar 29, 2025
e44e098
Move dnt script
stefnotch Mar 31, 2025
1eb55b9
Simplify setup
stefnotch Mar 31, 2025
20b1916
Remove dnt
stefnotch Apr 3, 2025
3eb9234
Revert "Replace vitest"
stefnotch Apr 3, 2025
ee2fb7a
Change tests to vitest
stefnotch Apr 3, 2025
379b567
Update snapshots
stefnotch Apr 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
node_modules

vite.config.ts.timestamp-*.mjs

dist
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"denoland.vscode-deno"
]
}
24 changes: 17 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"typescript.preferences.autoImportSpecifierExcludeRegexes": [
"node:inspector/promises",
"inspector/promises",
"inspector"
],
"deno.enable": true,
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[json]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"files.watcherExclude": {
"**/node_modules/**": true,
"community-wgsl/**": true
}
}
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"community-wgsl/**": true,
"cts/**": true
},
"deno.codeLens.test": true
}
31 changes: 17 additions & 14 deletions Developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,33 @@ included as git submodules.
We recommend setting `git config submodule.recurse true` for this project,
to make working with Git submodules easier.

##
## Install Deno AND Node.js

The main wesl tools are in the /tools directory.
Make sure that you have a recent version of
- [Deno](https://deno.com/)
- [Node.js](https://nodejs.org/) with npm

### Install packages:
## Install deps

```sh
cd wesl-js
pnpm install
```
deno install
```

### Scripts

See `wesl-js/tools/package.json` for scripts you can run.
This generates a `node_modules` folder.

This is the most common one:
## Run tests

```sh
pnpm test
```
deno run dev
```

If it fails with a `Error [ERR_MODULE_NOT_FOUND]:`, try doing `pnpm run build:all` first.
### Update Snapshots

```
deno test --allow-all -- --update
```

Wallaby is also available for most tests, use the configuration in `wesl-js/wallaby.js`
For snapshot testing, we are using https://jsr.io/@std/testing/doc/snapshot

### wesl tool packages

Expand Down
2 changes: 1 addition & 1 deletion community-wgsl
32 changes: 32 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"tasks": {
},
"license": "MIT OR Apache-2.0",
"imports": {
"vite": "npm:vite@^6.2.3",
"vitest": "npm:vitest@^3.0.9",
"vite-plugin-dts": "npm:vite-plugin-dts@^4.5.3"
},
"nodeModulesDir": "auto",
"workspace": [
"./integration-tests",
"./mini-parse",
"./wesl"
],
"compilerOptions": {
"lib": [
"esnext",
"dom",
"dom.iterable",
"dom.asynciterable",
"deno.ns"
]
},
"exclude": [
"./community-wgsl",
"./cts",
"./tools",
"./wesl-testsuite",
"*/dist"
]
}
Loading