Skip to content

Commit

Permalink
more/better tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed Jul 10, 2024
1 parent e08391c commit a7c221b
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 8 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ In order to build carts, you will need the [wasi-sdk](https://github.com/WebAsse
Common tasks have been wrapped with npm scripts:

```sh
npm run build:site # build website in docs
npm run start # run local dev-server

npm run build:carts # build just the demo-carts
npm run build:host # build the native host
npm run build:web # build the web-host
npm run build:retro # build the libretro core that can load null0 files
npm run build:host # build just the native host
npm run build:web # build just the web-host
npm run build:retro # build just the libretro core that can load null0 files
```

You will need cmake, ninja & emscripten installed.
Expand Down
Binary file modified docs/cart/colorbars.null0
Binary file not shown.
Binary file modified docs/cart/draw.null0
Binary file not shown.
Binary file modified docs/cart/filesystem.null0
Binary file not shown.
Binary file modified docs/cart/flappybird.null0
Binary file not shown.
Binary file modified docs/cart/hello.null0
Binary file not shown.
Binary file modified docs/cart/input.null0
Binary file not shown.
Binary file modified docs/cart/justlog.null0
Binary file not shown.
Binary file modified docs/cart/sound.null0
Binary file not shown.
Binary file modified docs/cart/tracker.null0
Binary file not shown.
121 changes: 118 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,25 @@
"type": "module",
"main": "node/index.js",
"scripts": {
"clean": "rimraf build wbuild docs/cart docs/wasm",
"test": "cmake -B build -DNATIVE=0 -DTESTS=1 -DCARTS=0 && cmake --build build && ./build/test/test_colors",
"gen:wamr": "node tools/gen_wamr.js",
"gen:funcs": "node tools/gen_funcs.js",
"gen:web": "node tools/gen_web.js",
"start": "npm run build:web && npm run build:carts && live-server docs",
"start": "npm run build:site && live-server docs",
"build:retro": "cmake -GNinja -B build -DLIBRETRO=1 -DHOST=0 -DTESTS=0 -DCARTS=0 && cmake --build build",
"build:carts": "cmake -GNinja -B build -DLIBRETRO=0 -DHOST=0 -DTESTS=0 -DCARTS=1 && cmake --build build",
"build:host": "cmake -GNinja -B build -DLIBRETRO=0 -DHOST=1 -DTESTS=0 -DCARTS=0 && cmake --build build",
"build:web": "emcmake cmake -DLIBRETRO=0 -DHOST=1 -DTESTS=0 -DCARTS=0 -GNinja -B wbuild && cmake --build wbuild && mkdir -p docs/wasm docs/cart && cp wbuild/host/null0.* docs/wasm && cp build/cart/c/*.null0 docs/cart"
"build:web": "emcmake cmake -DLIBRETRO=0 -DHOST=1 -DTESTS=0 -DCARTS=0 -GNinja -B wbuild && cmake --build wbuild",
"build:site": "npm run build:carts && npm run build:web && mkdir -p docs/wasm docs/cart && cp wbuild/host/null0.* docs/wasm && cp build/cart/c/*.null0 docs/cart"
},
"keywords": [],
"author": "David Konsumer <[email protected]>",
"license": "ZLIB",
"devDependencies": {
"glob": "^10.3.10",
"live-server": "^1.2.0",
"rimraf": "^6.0.1",
"yaml": "^2.4.0"
}
}

0 comments on commit a7c221b

Please sign in to comment.