This repository is a monorepo for the Platform Application Capabilities Kit (PACK) TypeScript packages. These capabilities are in ALPHA state and not intended for production use.
-
Fork the repo
-
Create a branch
-
pnpm install -
Add your code
-
Run all lint rules and tests with
pnpm checkfrom root. Runpnpm turbo typecheckto quickly check any issues with your types. -
Add a changeset
📘 Note Follow semver rules here.
- Assuming you've run
pnpm install, runchangeset(orpnpm exec changeset). - The tool will split things into changed vs unchanged packages (which you may need if you decide to add changeset logs in a future PR for past features)
- Select the packages you want the changeset applied to using the arrow keys (up/down) and space-bar to "select" the package.
- Press enter to continue.
- The CLI will go through a progression of asking you which packages you previously selected need a major bump? Then a minor bump? Patch bumps assumed for remaining packages changed. Arrows and space bar to select. Enter to continue (even if you selected nothing).
- Enter a change (or press enter on empty to open your editor.)
Info Full docs on the
changesetstool can be found at the changesets/changesets github repo. - Assuming you've run
-
If you're curious what the final build output might look like you can run
pnpm buildfrom root.
The documentation site lives in docs/ and is built with Docusaurus
(package @palantir/pack.docs). Pages are Markdown under docs/; the navigation is defined in
docs/sidebars.ts.
pnpm install- Edit or add Markdown pages in
docs/(register new pages indocs/sidebars.ts). - Preview locally with hot reload:
pnpm --filter @palantir/pack.docs start(serves at http://localhost:3000/pack/). - Produce a production build:
pnpm --filter @palantir/pack.docs build, then preview it withpnpm --filter @palantir/pack.docs serve. The build fails on broken internal links, so run it before opening a PR.
Docs are deployed to GitHub Pages automatically by .github/workflows/deploy-docs.yml
when changes under docs/** land on develop.
- Install the GitHub CLI
gh auth loginto authenticate with github.compnpm install./scripts/createReleasePr.sh- Once your release PR has been merged, run
/scripts/tag-release.sh [COMMIT_SHA]to tag your release.
This project is made available under the Apache 2.0 License.