Rename package from @valknar/vpinball-wasm to vpinball-wasm
CI / Build wasm engine (push) Successful in 9m32s
CI / Build wasm engine (push) Successful in 9m32s
Unscoped, matching this project's other Gitea-published package (triggershell) - the registry is already scoped to the right owner via publishConfig.registry's URL path (.../valknar/npm/), so an npm scope on the package name itself is redundant. The old @valknar/vpinball-wasm package published under the previous name is being removed manually. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@ source emsdk/emsdk_env.sh
|
|||||||
## npm usage
|
## npm usage
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { loadPinball, attachTouchControls } from '@valknar/vpinball-wasm';
|
import { loadPinball, attachTouchControls } from 'vpinball-wasm';
|
||||||
|
|
||||||
const canvas = document.querySelector('canvas');
|
const canvas = document.querySelector('canvas');
|
||||||
const pinball = await loadPinball({
|
const pinball = await loadPinball({
|
||||||
@@ -128,7 +128,7 @@ startButton.addEventListener('click', () => {
|
|||||||
pinball.evalScript('DMDWidth = 128 : DMDHeight = 32');
|
pinball.evalScript('DMDWidth = 128 : DMDHeight = 32');
|
||||||
```
|
```
|
||||||
|
|
||||||
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). The published package name/registry (`@valknar/vpinball-wasm` on this project's Gitea npm registry) is a placeholder pending the first real release — see `package.json`.
|
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). Published as `vpinball-wasm` on this project's Gitea npm registry — see `package.json`.
|
||||||
|
|
||||||
## Known limitations
|
## Known limitations
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<!--
|
<!--
|
||||||
Full usage example for @valknar/vpinball-wasm: loading progress, a
|
Full usage example for vpinball-wasm: loading progress, a
|
||||||
user-gesture "Start" button (required for audio autoplay and fullscreen
|
user-gesture "Start" button (required for audio autoplay and fullscreen
|
||||||
to work), an optional file picker for a self-contained .vpx table, touch
|
to work), an optional file picker for a self-contained .vpx table, touch
|
||||||
controls on touch-capable devices, and a fullscreen button.
|
controls on touch-capable devices, and a fullscreen button.
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@valknar/vpinball-wasm",
|
"name": "vpinball-wasm",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Visual Pinball's engine compiled to WebAssembly - real .vpx tables, real VBScript, WebGL2 rendering, in the browser",
|
"description": "Visual Pinball's engine compiled to WebAssembly - real .vpx tables, real VBScript, WebGL2 rendering, in the browser",
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Public TypeScript surface for @valknar/vpinball-wasm.
|
* Public TypeScript surface for vpinball-wasm.
|
||||||
*
|
*
|
||||||
* This wraps the raw Emscripten-generated module (dist/vpinball.js) so
|
* This wraps the raw Emscripten-generated module (dist/vpinball.js) so
|
||||||
* consumers don't need to know about ccall/cwrap/FS internals directly.
|
* consumers don't need to know about ccall/cwrap/FS internals directly.
|
||||||
|
|||||||
Reference in New Issue
Block a user