Custom Projen Project Type to manage all the alma-cdk/* CDK construts.
-
Install with
npm:npm i -D @alma-cdk/construct-library
-
If existing project, install
npm i -D projen@0.99.21or newer -
Import the custom Projen project type:
- import { AwsCdkConstructLibrary } from 'projen/lib/awscdk'; + import { cdk } from "projen"; + import { AlmaCdkConstructLibrary } from "@alma-cdk/construct-library";
-
Initialize and define (at least) minimum required configuration:
const project = new AlmaCdkConstructLibrary({ name: "<SCOPE>/<PACKAGE_NAME>", author: "<AUTHOR_ORGANIZATION_NAME>", authorAddress: "<AUTHOR_ORGANIZATION_EMAIL>", description: "<PACKAGE_DESCRIPTION>", repositoryUrl: "https://<GIT_URL>.git", stability: cdk.Stability.EXPERIMENTAL, // or STABLE or DEPRECATED majorVersion: 0, // 1, 2, ... releaseEnvironment: "production", }); project.synth();
-
Fnm use 24
-
Install
pnpm -
Run
projenwithpnpm:pnpm exec projen -
Ensure correct Node version:
fnm use -
Remove old
node_modules,yarn.lock, and/orpackage-lock.jsonfiles -
Reinstall everything with
pnpm install