Skip to content

Commit 653c9e3

Browse files
committed
chore: bump deps
1 parent c081a5b commit 653c9e3

11 files changed

Lines changed: 1605 additions & 3641 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ jobs:
2727
- name: Set up Node.js
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: '23'
31-
cache: 'npm'
32-
33-
- name: Set up just
34-
uses: extractions/setup-just@v3
30+
node-version: "23"
31+
cache: "npm"
3532

3633
- name: Extract package information
3734
run: |
@@ -57,7 +54,7 @@ jobs:
5754
password: ${{ secrets.GITHUB_TOKEN }}
5855

5956
- name: Build the component
60-
run: just build
57+
run: npm ci && npm run build
6158

6259
- name: Normalize COMPONENT_NAME and Append .wasm
6360
run: echo "COMPONENT_NAME_UNDERSCORED=${COMPONENT_NAME//-/_}.wasm" >> $GITHUB_ENV

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ jobs:
1616
- name: Set up Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '23'
20-
cache: 'npm'
21-
- name: Set up just
22-
uses: extractions/setup-just@v3
19+
node-version: "23"
20+
cache: "npm"
2321
- name: Install Wasmtime
2422
run: |
2523
curl https://wasmtime.dev/install.sh -sSf | bash
2624
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
2725
- name: Build the project
28-
run: just build
26+
run: npm ci && npm run build
2927
- name: Run tests
3028
run: npm test
3129
- name: Run format checks
32-
run: npm run format-ci
33-
- name: Run ESLint
30+
run: npm run fmt:check
31+
- name: Run linter
3432
run: npm run lint

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/CODE_OF_CONDUCT.md
2+
.github/CONTRIBUTING.md

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ $ curl -H "Content-Type: text/plain" --data-binary @test_file.txt http://localho
3434
```
3535

3636
## Quick Start
37+
3738
The project uses [`Wasmtime`][wasmtime] as its runtime. However, if needed, it
3839
can easily be adjusted to use [`jco`][jco] instead. For `wasmtime` installation,
3940
simply run:
@@ -42,18 +43,29 @@ simply run:
4243
$ curl https://wasmtime.dev/install.sh -sSf | bash
4344
```
4445

45-
The quickest way to start is by using [`just`][just].
46+
To build and serve the wasm component on `localhost:8080`:
47+
4648
```bash
47-
$ just serve # to build and serve the wasm component on `localhost:8080`
48-
$ curl localhost:8080 # to send requests to component.
49+
$ npm install
50+
$ npm run serve
4951
```
5052

51-
Alternatively, run:
53+
Then send requests to the component:
5254

5355
```bash
54-
$ npm install
55-
$ npm run build
56-
$ wasmtime serve -S common dist/sample-wasi-http-js.wasm
56+
$ curl localhost:8080
57+
```
58+
59+
## Development
60+
61+
```bash
62+
$ npm run build # Build the wasm component
63+
$ npm test # Run tests
64+
$ npm run fmt # Format code
65+
$ npm run fmt:check # Check formatting
66+
$ npm run lint # Lint code
67+
$ npm run fetch-wit # Fetch WIT dependencies
68+
$ npm run update-wit # Update WIT lock file
5769
```
5870

5971
## See Also
@@ -65,7 +77,6 @@ $ wasmtime serve -S common dist/sample-wasi-http-js.wasm
6577
Apache-2.0 with LLVM Exception
6678

6779
[jco]: https://github.com/bytecodealliance/jco
68-
[just]: https://github.com/casey/just
6980
[rust-sample]: https://github.com/bytecodealliance/sample-wasi-http-rust
7081
[wasi-http]: https://github.com/WebAssembly/wasi-http
7182
[wasmtime]: https://wasmtime.dev/

eslint.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

justfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)