4DKK sdk文档
https://docs.4dkankan.com/#/zh-cn/guide/quickstart
- Install node LTS
- Currently 18.x (deprecated) and 20.x (current) are supported
- run
npm i
in the root dir to install all dependencies
Commands
npm run dev
- Starts the local dev Vite server
npm run build
- Generates a production build for deployment
npm run serve
- Serves up the static content generated via
npm run build
npm run test
- Runs all unit tests in
test/unit
(uses vitest)
npm run test:watch
- Runs all unit tests in
test/unit
with watch mode enabled (uses vitest)
npm run coverage
- Runs all unit tests in
test/unit
with coverage reports (uses vitest)
npm run test:e2e
- Starts a local dev server and starts the Cypress interactive test runner
npm run test:e2e:headless
- Starts a local dev server and starts the Cypress headless test runner
npm run lint
- Run linter checks (configurable via
.eslintrc
)
npm run format
- Run Prettier formatting for all files