projen-modules
A collection of custom projen modules, that can be used to bootstrap and maintain consistent project configuration, tooling, dependencies, and builds.
Getting Started
yarn install
npx projen build
This will:
- Install the dependencies
- Apply any projen changes
- Run tests
- Package project locally
Any files changed by projen should be committed to git.
Running the tests like this will update any snapshot files, this should be reviewed and committed to git.
Testing
Types of testing:
- Snapshot - projen project outputs are stored as a snapshot in the corresponding
__snapshots__directory. When the project changes then it is expected that these snapshots change too and should be reviewed committed alongside the project. - Unit tests - these assert on specific functionality of the project and should be written for any new functionality added.
GitHub Configuration
All pull requests are merged by the Mergify merge queue, configured in .mergify.yml. Once a pull request's checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled do-not-merge are not merged.
The repository must be configured as below so that nothing can be merged without going through the queue.
Mergify
Install the Mergify GitHub App and give it access to this repository.
Pull request settings
In Settings → General → Pull Requests:
- Allow squash merging only (untick merge commits and rebase merging), matching the queue's merge method.
- Untick Allow auto-merge, because GitHub's own auto-merge merges outside the queue.
- Tick Automatically delete head branches.
Branch ruleset
In Settings → Rules → Rulesets, create a branch ruleset with enforcement Active that targets the default branch, and set:
- Bypass list: the Mergify app only, in Exempt mode. Do not add admins or other roles, as anyone on this list can merge without the queue.
- Restrict updates: only bypass actors can update the branch, so pull requests cannot be merged from the GitHub UI or CLI and commits cannot be pushed directly.
- Restrict deletions and Block force pushes.
- Require a pull request before merging, with 0 required approvals.
- Require status checks to pass, listing the checks that
.mergify.ymlwaits for:build,package-js,package-python. Leave Require branches to be up to date before merging unticked, as the queue already updates and retests each pull request.
Do not enable GitHub's own Require merge queue rule, as it competes with Mergify.
If the queue is unavailable and a change has to be merged, add yourself to the bypass list temporarily and remove yourself afterwards.
Creating a New Project
npx projen new {project} --from projen-modules
Some projects may have required fields that need to be specified as part of this command, review any errors for details what needs to be specified.
Project Types
| Project type | Description |
|---|---|
| cdk-typescript-app | A typescript CDK app |
| npm-package | A typescript npm package |
| python-package | A python package |
| jsii-package | A typescript JSII package |
Project Structure
All source is located in src and is grouped by:
components- these are common building blocks that can be used by projects to implement specific project functionality.projects- these are projects that can be built from this project (see #something)utils- these are helper functions that are often reused
test contains tests, and mirrors the src directory structure. Within here there are __snapshots__ which contain snapshots of project tests (see #section).
Metadata
Release files for projen-modules 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| projen_modules-3.1.0.tar.gz | 384.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| projen_modules-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 767.1 kB
Release files / projen_modules-3.1.0.tar.gz
| Download URL | projen_modules-3.1.0.tar.gz |
|---|---|
| Size | 384.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
930ad5bff707c86d1e4cdb894cdf66c205509f1f14f0c7ad891ae46f797831e8
|
|
BLAKE2b-256 checksum How to use checksums |
e893ff0cd53e5a20c5424302f98c603386611579c29fcdb23478e5dfc75dc366
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / projen_modules-3.1.0-py3-none-any.whl
| Download URL | projen_modules-3.1.0-py3-none-any.whl |
|---|---|
| Size | 383.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
006a105e76e29433639005e4c6b7d767f48a3476db904e19bc82543403a97a70
|
|
BLAKE2b-256 checksum How to use checksums |
06ae4e928f9621ee96000c447c264fc2f3042e8d0047add7434d30c01e0dc561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency log