wesl-plugin 0.6.0-pre8 → 0.6.0-pre9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,7 +1,12 @@
1
- # wesl plugin
1
+ # WESL Plugin
2
2
 
3
- The wesl-plugin handles `.wesl` and `.wgsl` files
3
+
4
+ [![NPM Version](https://img.shields.io/npm/v/wesl-plugin)](https://www.npmjs.com/package/wesl-plugin)
5
+ [![Static Badge](https://img.shields.io/badge/Read%20the%20-Docs-blue)](https://wesl-lang.dev/)
6
+
7
+ > The wesl-plugin handles `.wesl` and `.wgsl` files
4
8
  in JavaScript bundlers to make using webgpu shaders more convenient.
9
+
5
10
  Plugin features are accessed from JavaScript and TypeScript with `import` statements:
6
11
 
7
12
  ```ts
@@ -10,9 +15,14 @@ import linkConfig from "./shaders/app.wesl?link";
10
15
 
11
16
  Each plugin features is enabled by its own wesl-plugin [extension](#extensions).
12
17
 
13
- ## Getting started
18
+ ## Install
19
+
20
+ ```
21
+ npm install wesl
22
+ npm install wesl-plugin
23
+ ```
14
24
 
15
- ### Vite
25
+ ### Vite Configuration
16
26
 
17
27
  Add the wesl-plugin along with any selected extensions to `vite.config.ts`:
18
28
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "wesl-plugin",
3
3
  "type": "module",
4
- "version": "0.6.0-pre8",
4
+ "version": "0.6.0-pre9",
5
5
  "dependencies": {
6
6
  "toml": "^3.0.0",
7
7
  "unplugin": "^2.1.2",
8
- "wesl": "0.6.0-pre8"
8
+ "wesl": "0.6.0-pre9"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@nuxt/kit": "^3.15.2",