dev-workflow

Ramas, lint/pruebas antes del PR, incrementos de versión semver y expectativas de PR para contentstack-management-javascript.

npx skills add https://github.com/contentstack/contentstack-management-javascript --skill dev-workflow

Development workflow – Contentstack Management JavaScript SDK

When to use

  • Starting work or opening a PR.
  • Choosing which npm scripts to run before push.
  • Deciding whether to bump package.json version.

Instructions

Branches

  • Follow team Git conventions (e.g. feature branches off development / integration branch used in this repo).
  • Keep commits focused; do not commit with test.only, it.only, describe.only, or permanent skips.

Before opening a PR

  1. npm run lint — ESLint must pass on lib and test.
  2. Unit testsnpm run test:unit. (npm test also runs test:api first — confirm test:api is defined in package.json on your branch.)
  3. Sanity / API tests — only when validating against live CMA: npm run build then npm run test:sanity-nocov or test:sanity-test, with env vars per test/sanity-check/utility/testSetup.js. Never commit secrets.
  4. Version bump — For user-visible or release-worthy lib/ changes (new API, shipped fix, breaking change), update version in package.json per semver (patch / minor / major). Docs-only or chore-only PRs may omit per team practice.

PR expectations (summary)

  • User-facing changes — JSDoc on public methods; update types/** when the public surface changes.
  • Behavior — Preserve backward compatibility unless the change is explicitly breaking and documented.
  • Errors — Use lib/core/contentstackError.js patterns; do not leak full tokens in logs.
  • Tests — Unit tests under test/unit/ with mocks; for sanity env and commands, use the testing skill (listed in AGENTS.md).

Más skills de contentstack

brand-kit-assistant
contentstack
Advise users on Contentstack Brand Kit concepts, setup, governance, and on-brand AI generation. Route API-specific tasks to the right Brand Kit capability or…
official
cms-assets
contentstack
Asesorar a los desarrolladores sobre cómo organizar, entregar y transformar activos en Contentstack. Cubrir la estructura de carpetas, las transformaciones de la API de entrega de imágenes, la publicación…
official
cms-branches-aliases
contentstack
Asesorar a desarrolladores sobre el uso de ramas de Contentstack para desarrollo de contenido aislado y alias para implementaciones de contenido sin tiempo de inactividad. Cubrir estrategia de ramas, …
official
cms-data-modeling-best-practices
contentstack
Guía a los desarrolladores para modelar contenido en Contentstack usando la estructura reutilizable más simple. La habilidad explica cuándo usar tipos de contenido, referencias, global...
official
cms-entries
contentstack
Advise developers on querying, localizing, versioning, publishing, and structuring Contentstack entries for efficient delivery. Focus on CDA usage, reference…
official
cms-environments-publishing
contentstack
Asesorar a los desarrolladores sobre la configuración de entornos, la publicación de contenido, el uso de tokens de entrega y vista previa, el aprovechamiento de la Sync API y la comprensión de CDN y…
official
cms-live-preview-visual-builder-support-assistant
contentstack
Diagnostica y guía implementaciones de Contentstack Live Preview y Visual Builder. Rastrea el contexto de vista previa, identifica el contrato roto y recomienda la…
official
cms-localization
contentstack
Advise developers on Contentstack localization: language setup, fallback chains, localized vs unlocalized entries, non-localizable fields, and multi-locale…
official