- plugin: *.plugin.js with the store header and start/stop on api.scope, storage, observe, onKey, the UI kit (toast with action, ui.h settings dialog) and api.theme/--wb-* vars; --ts makes a TypeScript project typed by the waybetter package (build keeps the header first) - theme: JSON with "$schema" -> theme.schema.json, palette derived like themeFromColors, font roles (family, tweet), presets - app: Tauri 2 + waybetter-host + runtime + shell models: SiteSpec, SiteAdapter, shell/tab-chrome/ site-tab capabilities, tabs_sync, plugin store, a site-only command; presets for youtube.com, kick.com, twitch.tv with placeholder selectors; host crate via submodule, path or git - tests generate into temp dirs: headers via parse_meta (new plugin_meta example), plugin code against createCorePluginApi's members, themes against the schema, app TS with tsc against the built package, app Rust with cargo metadata/check/test - wired into bun run check (typecheck incl. checkJs, build:packages, test:create) and pack:check
32 lines
1.4 KiB
JSON
32 lines
1.4 KiB
JSON
{
|
|
"name": "waybetter",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"license": "GPL-3.0-or-later",
|
|
"type": "module",
|
|
"description": "wayBetter: a framework for desktop apps that extend one website in place (tabs, splits, accounts, plugins, themes).",
|
|
"packageManager": "bun@1.4.2",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"typecheck": "tsc -p tsconfig.json && tsc -p packages/create-waybetter/tsconfig.json",
|
|
"test": "bun run test:ts && bun run test:rust && bun run test:create",
|
|
"test:ts": "node --test packages/runtime/tests/*.test.ts packages/shell/tests/*.test.ts",
|
|
"test:create": "node --test packages/create-waybetter/tests/*.test.mjs",
|
|
"test:rust": "cargo test --manifest-path crates/waybetter-host/Cargo.toml --locked",
|
|
"check:tauri": "cargo check --manifest-path crates/waybetter-host/Cargo.toml --features tauri",
|
|
"build": "bun run typecheck && cargo build --manifest-path crates/waybetter-host/Cargo.toml --locked",
|
|
"build:packages": "cd packages/waybetter && npm run build",
|
|
"pack:check": "bun run build:packages && npm pack ./packages/waybetter --dry-run && npm pack ./packages/create-waybetter --dry-run",
|
|
"check": "bun run typecheck && bun run build:packages && bun run test"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.0.0",
|
|
"typescript": "^5.9.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.0.0",
|
|
"bun": ">=1.4.2"
|
|
}
|
|
}
|