hello-construct-hub
v0.0.3
Published
Hello world example for construct hub using CDK with documented guide at https://www.talkncloud.com/wtf-is-construct-hub/
Downloads
3
Readme
What is this?
This is a basic hello world style example to demonstrate how to publish constructs to construct hub. There are more details in the blog write up if interested: wtf is construct hub
It will do the following:
- Create an s3 bucket with a standard naming scheme.
- Upload docs (a readme) into the bucket using a bucket deployment.
If you copy how this project works it will publish to construct hub.
How this was created
This project uses projen and was initialized like so:
npx projen add awscdk-construct
You will need to
- Update your pipeline with a valid NPM_TOKEN to publish packages
- Update your pipeline with a valid github token named PROJEN_GITHUB_TOKEN for self mutation changes (optional)]
Building and testing
Because this uses projen this should be pretty straight forward:
- yarn projen build
This will do all of the package building, jsii work, testing and snapshot updates, doc updates etc.
From here you should be able to do things like npm link
the package to a local project for testing or update the package.json with the path to the package.