tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues
28 lignes · 1917 octetsBrut · Historique

pebble/library docs

Each doc is short and self-contained; read them in this order and stop when you have what you need.

Reading order

  1. consuming.md — vendoring a component's dist, the REVISION pin, the registry flow once published.
  2. toaster.md — <pebble-toaster>: API, behavior, parts, CSS hooks, examples.
  3. timeline.md — <pebble-timeline>: the table contract, attributes, behavior, parts, CSS hooks.
  4. vote.md — <pebble-vote>: the forms it enhances, the JSON the endpoint answers, the captcha fallback, CSS hooks.
  5. more.md — <pebble-more>: the link and the list, the fragment the endpoint answers, the end of the feed, CSS hooks.
  6. lite-youtube.md — <pebble-lite-youtube>: the poster link, the player it becomes, CSS hooks.
  7. combobox.md — <pebble-combobox>: the form it enhances, the HTML the endpoint answers, keys and ARIA, CSS hooks.
  8. sequence.md — <pebble-sequence>: the kinds and the value, the JSON shape, editing and removal rules, the form, CSS hooks.

tablet: engine rewrite in flight; its doc lands with it.

Layout

packages/<name>/    one component per package: index.ts(x) self-registers via define()
scripts/            build.ts (per-package dists), sizes.ts + size.ts (fresh-process measurements), sync-pebble.ts
plugins/            preload.ts: pebble's consumer compiler for bun test
test/               smoke + size budgets; component suites land with their packages
examples/           the headless-Chromium smokes (`bun run smoke`): toaster.html + toaster.page.ts + toaster-smoke.ts, tablet-smoke.ts, timeline-smoke.ts;
                    page-smoke.ts <name>, the driver for a self-driving <name>.html + <name>.page.ts (vote, …)
dist/               build output: <name>.js + <name>.d.ts (+ <name>.css) per package