CLI Reference¶
Root scripts¶
package.json at the workspace root defines scripts that orchestrate the
packages via npm workspaces.
Script |
Description |
|---|---|
|
Runs the webapp Vite dev server (alias for |
|
Runs the webapp Vite dev server and Express server concurrently. |
|
Alias for |
|
Launches the Express server with |
|
Produces production bundles for the webapp and server. |
|
Similar to |
|
Runs the webapp production Vite build. |
|
Builds the webapp with |
|
Bundles the Express server via webpack. |
|
Runs ESLint for the webapp and server packages. |
|
Runs ESLint in the webapp workspace. |
|
Runs ESLint in the server workspace. |
|
Validates formatting across all packages. |
|
Applies formatting fixes. |
|
Uses |
Package-specific scripts¶
- Editor (
packages/editor) npm run lint– ESLint for the editor package.npm run lint:ts/lint:css– TypeScript and styled-components linting.npm run prettier:*– Formatting helpers scoped to the editor source.
- Webapp (
packages/webapp) npm run start– Vite dev server.npm run build– Production bundle underbuild/webapp.npm run build:local– Production bundle with local deployment URL.npm run lint– ESLint across TypeScript sources.
- Server (
packages/server) npm run start–tsx watchhot-reloading server on port 8080.npm run build– Webpack bundle of the Express server.npm run lint– ESLint across TypeScript sources.
- Documentation (
docs) make html– Builds Sphinx docs intodocs/build/html.make livehtml– Optional live-reload server (requiressphinx-autobuild).