@wtf/project-docs
v5.3.2
Published
Guides and API reference for the @wtf/project packages: the shared TypeScript, oxlint, oxfmt, Vite, Vitest, TypeDoc and Astro configs of a pnpm workspace, the resolve hook that runs its TypeScript from source, the runner of the Web Platform Tests, the Ast
Readme
@wtf/project-docs
Guides and API reference for the @wtf/project packages: the shared configs and tools a pnpm
workspace of TypeScript packages compiles, lints, formats, tests and documents with.
- Getting started: set up a new workspace, with its tooling, scripts and configs, and lay out a package the presets fit.
- The presets: extend the shared TypeScript, oxlint, oxfmt and TypeDoc configs, and see what each one sets.
- Configuration: keep the settings of a project's tools in one
wtfconfig, with the environment over it, and hand each tool its section. - The tests: run the tests from source or from the build, with coverage, in a browser, as Storybook stories, and against the Web Platform Tests.
- Testing: run every suite from the source on your machine and from the build in CI, with the pair of scripts each suite needs and coverage through the source maps.
- Vite, and sites: start every Vite config from one base, ship compressed copies of a site, and know which Vite and Vitest a repo names.
- Storybook: start each Storybook from one base, show the version it is of, keep its versions side by side with a picker, and compose Storybooks.
- API documentation: build a markdown reference of your packages' JSDoc,
with an
llms.txtand each export linked to its source, and keep it out of your branches. - Astro sites: start an Astro site from one base config, build it to serve on GitLab Pages, fail the build on a broken link, and preview it as GitLab Pages serves it.
| Path | |
| --------------- | ---------------------------------- |
| api/llms.txt | a map of the reference, for agents |
| api/README.md | the API reference of every package |
The package's default export is its own URL, so in Node you can read a page with
new URL('guides/vitest.md', docs). pnpm run docs at the root of the repo generates api/.
