1.3.0 • Published 1 day ago

@kong/spec-renderer-dev v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

Kong Spec Renderer

!IMPORTANT This repository and the @kong/spec-renderer-dev package are currently in development on the main branch. Breaking changes should be expected.

Once the 1.x version is ready, the package name will change to @kong/spec-renderer.

Kong's open-source spec renderer.

Usage

Installation

Install the @kong/spec-renderer package in your host project.

pnpm add @kong/spec-renderer

# OR

yarn add @kong/spec-renderer

Props

v-model

  • type: String
  • required: false
  • default: ''

Contributing & Local Development

To get started, install the package dependencies

pnpm install

Development Sandbox

This repository includes a Vue sandbox app (see the /sandbox directory) to allow you to experiment with components.

Build and Preview the Development Sandbox

To build and run a local preview of the Sandbox:

pnpm run preview

Lint and fix

Lint package files, and optionally auto-fix detected issues.

# Stylelint only
pnpm run stylelint

# Stylelint and fix
pnpm run stylelint:fix

# ESLint only
pnpm run lint

# ESLint and fix
pnpm run lint:fix

Testing

Unit and component tests are run with Vitest.

# Run tests
pnpm run test

# Run tests in the Vitest UI
pnpm run test:open

Build for production

pnpm run build

Committing Changes

Commitizen friendly

This repo uses Conventional Commits.

Commitizen and Commitlint are used to help build and enforce commit messages.

It is highly recommended to use the following command in order to create your commits:

pnpm run commit

This will trigger the Commitizen interactive prompt for building your commit message.

Enforcing Commit Format

Lefthook is used to manage Git Hooks within the repo.

  • A commit-msg hook is automatically setup that enforces commit message stands with commitlint, see lefthook.ymal
  • A pre-push hook is used that runs eslint before allowing you to push your changes to the repository

Additionally, CI will use commitlint to validate the commits associated with a PR in the Lint and Validate job.

Package Publishing

This repository utilizes Semantic Release for automated package publishing and version updates.

1.3.0

1 day ago

1.2.0

7 days ago

1.2.1

7 days ago

1.1.0

9 days ago

1.0.2

15 days ago

1.0.1

15 days ago

1.0.5

14 days ago

1.0.4

15 days ago

1.0.3

15 days ago

1.0.0

16 days ago