@react-scraper/foundation
v0.1.18
Published
Shared UI and application scaffolding for React-based scraping dashboards.
Downloads
99
Readme
@react-scraper/foundation
Foundational UI, state, and routing primitives extracted from the React Scraper template. The package is published as plain TypeScript source so the consuming Vite build can tree-shake components alongside the app.
Development workflow
- Keep building features inside
src/and import them from the host app. - When the host should use the live workspace copy, run
npm run use:foundation:localfrom the repo root. The script pins the dependency toworkspace:*and refreshesnode_modules.
Test the publish payload
- Run
npm run pack:foundationin the repo root. This createsreact-scraper-foundation-<version>.tgznext topackage.json. - In a clean checkout of the host app, install the tarball with
npm install ../react-scraper/react-scraper-foundation-<version>.tgzand run the usual Vite build to confirm everything compiles.
Switch the host app to the registry copy
npm run use:foundation:npm latestpins the dependency to the latest npm tag.npm run use:foundation:npm 0.2.0pins it to an explicit version.- The script accepts any npm range (for example
npm run use:foundation:npm ^0.2.0). Each run re-installs dependencies so the lockfile stays in sync.
Publish
- Bump the version:
npm version patch --workspace packages/react-scraper-foundation(orminor/major). - Sign in once with
npm login. - Publish from the repo root:
npm publish --workspace packages/react-scraper-foundation. - Switch the host app to
npmmode and install the new version for validation.
The published tarball only contains src/ and README.md, so no build artifacts or credentials are ever uploaded.
