dev-workflow
작성자: contentstack
npm 스크립트, CI, 그리고 contentstack-marketplace-sdk의 릴리스 흐름에 사용됩니다.
npx skills add https://github.com/contentstack/contentstack-marketplace-sdk --skill dev-workflowDevelopment workflow – contentstack-marketplace-sdk
When to use
- Installing deps or running the full test matrix before a PR
- Understanding
pretesthooks (lint before tests)
Instructions
Commands
npm run build— clean + Babel + Webpack bundles for node/web/RN/NativeScript.npm test—test:apithentest:unitperpackage.json.npm run lint— ESLint onlibandtest.
Hooks
pretestclears coverage and runs lint—fix lint before expecting tests to run cleanly.
CI
- Unit tests run in
.github/workflows/unit-test.yml—mirror key commands locally.