@entryscape/es-utils
v1.0.0
Published
Shared JavaScript utilities for [Blocks](https://bitbucket.org/metasolutions/blocks) and [EntryScape](https://bitbucket.org/metasolutions/entryscape).
Downloads
97
Keywords
Readme
es-utils
Shared JavaScript utilities for Blocks and EntryScape.
Extracts and consolidates common functionality used across both projects to reduce duplication and ensure consistency.
Installation
pnpm add @entryscape/es-utilsUsage
import { merge, fetchJson, EntityType } from '@entryscape/es-utils';Development
pnpm test # Run tests
pnpm lint # Run linter
pnpm lint-fix # Auto-fix lint issues
pnpm lint-n-test # Run linter and tests
pnpm refresh # Clean reinstall and testReleasing
The release script bumps the version, updates the changelog with Jira issues, runs lint and tests, commits, tags, and pushes to origin.
Setup
Set up Jira API credentials:
export JIRA_EMAIL="[email protected]"
export JIRA_API_TOKEN="your-api-token"Get your API token from: https://id.atlassian.com/manage-profile/security/api-tokens
Usage
pnpm release # Patch release (1.0.0 -> 1.0.1)
pnpm release minor # Minor release (1.0.0 -> 1.1.0)
pnpm release major # Major release (1.0.0 -> 2.0.0)
pnpm release --dry-run # Preview without making changesWhat it does
- Bumps version in package.json
- Collects Jira issues from merge commits since the last tag
- Filters issues to only include those with the
es-utilscomponent - Updates CHANGELOG.md with the new release entry
- Runs
pnpm lint-n-test - Commits changes with message "release version X.Y.Z"
- Creates a git tag
- Pushes commit and tag to origin
