Common Scripts
To maintain Monorepo consistency, all scripts must be run from the project root directory.
Core Script (g)
g (Generator) is the most critical helper script in VSeed development.
Description:
This command is a combination of build:test, build:docs, and build:api, used to keep development environment resources in sync:
- Generate test cases: Parses JSON Specs under
tests/integrationsand generates corresponding.test.tsfiles. - Generate documentation: Parses TypeScript type definitions and updates API documentation in
apps/website.
When to use:
- After modifying chart logic or adding a new chart type.
- After modifying TypeScript type definitions.
- Before committing code.
Development & Build
Start Development Environment
Start VSeed watch mode and the documentation site simultaneously.
Build the Project
Build the VSeed core library.
Testing
Run All Tests
Run Unit Tests
Run Integration Tests
Update Test Snapshots
Run this when your code changes cause snapshot diffs (that are expected):