@redocly/marketing-pages
v0.2.15
Published
This is a package that contains Redocly marketing site marketing pages as React components.
Downloads
2,812
Keywords
Readme
marketing-site-private
This is a package that contains Redocly marketing site marketing pages as React components.
It is published to NPM as @redocly/marketing-pages. The code is minified.
Development
Local development against the website repo uses yalc instead of npm link. yalc copies the built package into the website like a real npm install, so react, styled-components, @redocly/theme, etc. resolve from the website's own node_modules — no duplicate-React/broken-symlink problems.
One-time setup
- In this package:
pnpm install, thenpnpm run yalc:publish(full build + publish to the local yalc store). - In the website repo:
npm run link-marketing-pages(rewrites the@redocly/marketing-pagesdependency tolink:.yalc/...and symlinks it intonode_modules— this change must not be committed;.yalc/andyalc.lockare gitignored).
Daily workflow (2 terminals)
- Here:
pnpm run yalc:watch— runstsgo --watch, re-copies images on change, andyalc pushesdist/to the website on every rebuild (~1s debounce). - Website repo:
npm start.
Notes:
The watch loop skips minification (
tools/minify.js) — dev output is unminified. Runpnpm run yalc:publishfor a full production-like build.⚠️ Never run
npm installin the website while linked. The yalc-copiedpackage.jsonstill containscatalog:version specifiers that npm can't resolve. Safe sequence:npm run unlink-marketing-pages # restores the registry version in package.json npm install # do whatever you need npm run link-marketing-pages # relink
Tear down
In the website repo: npm run unlink-marketing-pages && npm install.
Release
Versioning and npm releases use Changesets. Run everything from the monorepo root (not from this package directory).
- Add a changeset — Run
pnpm changeset(orpnpm run changeset:common). When prompted, include@redocly/marketing-pagesif the change should be released. Commit the generated file under.changeset/. - Open a PR to
main— Merge your work together with that changeset. - Version PR — After merge, release automation opens a PR that applies version bumps and changelog updates from the changesets.
- Publish — Merging the version PR runs CI to publish the new version to npm.
