My new Laioutr App for doing amazing things using Nuxt.
See laioutr.com for more information about Laioutr.
- ⛰ Foo
- 🚠 Bar
- 🌲 Baz
Requires Node.js 22.12 or newer and pnpm 10 or newer. The committed .npmrc maps the Laioutr scopes to npm.laioutr.cloud.
npm login --registry https://npm.laioutr.cloud— once per machine; the token goes to your user~/.npmrc. See the Laioutr NPM Guide.pnpm installpnpm rc:fetch -p <organization slug>/<project slug> -s <project secret key>— writeslaioutrrc.jsonwith your project's configuration. Until then, the playground runs on placeholder content fromplayground/fixtures/laioutrrc.json. The playground installs every app listed in itsapps, so add the ones your project uses besides@laioutr-app/ui:pnpm add -D <package>.pnpm dev— starts the playground on http://localhost:3000.
That's it! You can now use My Laioutr App in your Laioutr Frontend ✨
You can find a thorough guide on getting started with Laioutr development in our developer guide.
We use ESLint and Prettier to lint and format the code. This repository contains opinionated configurations for both tools. You can, of course, replace them with your own configurations.
Releases run through changesets and publish to npmjs.org with npm trusted publishing, so CI needs no npm token and every release carries provenance.
Day to day: run pnpm changeset to describe your change and merge it. The release workflow opens a
"chore: release" PR collecting the pending changesets; merging that builds and publishes.
-
Repository secrets
NPM_LAIOUTR_TOKEN— read access to npm.laioutr.cloud, so CI can install@laioutr-core/*.RELEASE_TOKEN— a fine-grained PAT owned by the org, scoped to this repo, with Contents: read and write and Pull requests: read and write. A PR opened with the defaultGITHUB_TOKENcannot trigger workflows, so release PRs would arrive with no CI and could never satisfy a required-status rule.
-
Bootstrap the package on npm. Trusted publishing is configured on a package that already exists, so the very first version has to be published by hand.
publishConfig.provenancefails outside CI — there is no OIDC provider — so disable it for that one publish:pnpm prepack npm publish --access public --no-provenance
A brand-new package can 404 on the registry for a few minutes afterwards. That is replication lag, not a failed publish; check again before re-running anything.
-
Configure the trusted publisher on the package's npm settings page: GitHub Actions, this repository, workflow
release.yml. Every release after that is tokenless.
If you want to publish a private package to npm.laioutr.cloud, you need to:
- Log in with publish access:
npm login --registry https://npm.laioutr.cloud, then enable Publish on the authorize screen. Keep the token in your user~/.npmrc— the project's.npmrcis committed. - Add this line to the root of the
package.jsonfile:"publishConfig": { "registry": "https://npm.laioutr.cloud/" } - Make sure your package-name follows the
@laioutr-org/<organization-slug>__<package-name>format.
After that you can run pnpm release to publish the package to npm.laioutr.cloud.
More information for publishing can be found in the NPM Guide.
Follow the setup guide to get started.