Skip to content

Commit

Permalink
feat: rsmod wasm (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Pazaz <pazaz@itspazaz.com>
  • Loading branch information
ultraviolet-jordan and Pazaz authored Apr 18, 2024
1 parent 3fc3150 commit b2fb5b6
Show file tree
Hide file tree
Showing 40 changed files with 60,765 additions and 7,103 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ npm i @2004scape/rsmod-pathfinder
https://github.com/wclr/yalc

```shell
npm run build # Builds the js bundle and type definitions.
npm run asbuild:debug # Builds the wasm bundle.
yalc publish --push # Publishes to the local repo and pushes to all projects it has been added to.
yalc add @2004scape/rsmod-pathfinder # Adds the published library to your project.
npm publish --access public # Publishes the version of this to npm.
```

## Publishing (Release)
```shell
npm run asbuild:release # Builds the wasm bundle.
# update package.json version
# commit and push to main
npm publish --access public # Publishes the version of this to npm.
```

## First Time Cloning (Local Development)
```shell
npm run prepare
Expand Down
22 changes: 22 additions & 0 deletions asconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"options": {
"bindings": "esm",
"outFile": "dist/rsmod-pathfinder.wasm",
"textFile": "src/rsmod.wat"
},
"targets": {
"debug": {
"sourceMap": true,
"debug": true
},
"release": {
"sourceMap": false,
"optimizeLevel": 3,
"shrinkLevel": 0,
"converge": true,
"noAssert": true,
"optimize": true,
"runtime": "minimal"
}
}
}
13 changes: 0 additions & 13 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit b2fb5b6

Please sign in to comment.