- 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 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"name": "create-waybetter",
|
|
"version": "0.1.0",
|
|
"license": "GPL-3.0-or-later",
|
|
"type": "module",
|
|
"description": "npm create waybetter: scaffold a wayBetter plugin (*.plugin.js, JS or TypeScript), theme (JSON with the waybetter theme schema) or a whole wayBetter app (Tauri 2 + waybetter-host + the waybetter runtime). No dependencies.",
|
|
"keywords": [
|
|
"waybetter",
|
|
"create",
|
|
"scaffold",
|
|
"plugin",
|
|
"theme",
|
|
"tauri"
|
|
],
|
|
"homepage": "https://waybetter.fyi",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://git.crt.fyi/CRT/waybetter.git",
|
|
"directory": "packages/create-waybetter"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.crt.fyi/CRT/waybetter/issues"
|
|
},
|
|
"bin": {
|
|
"create-waybetter": "bin/create-waybetter.js"
|
|
},
|
|
"exports": {
|
|
".": "./src/cli.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"src",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=18.3.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"test": "cd ../.. && node --test packages/create-waybetter/tests/*.test.mjs"
|
|
}
|
|
}
|