Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.6 KB

JSIIREADME.md

File metadata and controls

49 lines (32 loc) · 1.6 KB

Welcome to awscdk-jsii-template

This repository template helps you generate JSII construct library for AWS CDK.

Confiuguration

  1. customize your .projenrc.js
  2. run npx projen to generate the package.json and .github/workflows from .projenrc.js
  3. yarn install to install all required npm packages

Integration tests

  1. run yarn watch in a seperate terminal
  2. edit test/integ.api.ts
  3. cdk diff and cdk deploy
cdk --app 'test/integ.api.js' diff
cdk --app 'test/integ.api.js' deploy
  1. validate the stack

Unit tests

  1. edit test/*.test.ts
  2. run yarn test

Usage

Command Description
yarn install Install dependencies
yarn compile Compile to JavaScript
yarn watch Watch for changes and compile
yarn test Run tests
yarn run package Create dist with bundles for all languages
yarn build Compile + test + package
yarn bump Bump a new version (based on conventional commits)
yarn compat Run API compatibility check against latest

GitHub Workflows

  • Build: when a PR is created/updated, runs yarn build
  • Release: yarn build and publish to all package managers for every commit to master (ignore if current version is already released).