Optional Readonly allowtrue
Optional Readonly artifactsA directory which will contain build artifacts.
"dist"
Optional Readonly authorAuthor's e-mail
Optional Readonly authorAuthor's name
Optional Readonly authorIs the author an organization
Optional Readonly authorAuthor's URL / Website
Optional Readonly autoEnable and configure the 'auto approve' workflow.
- auto approve is disabled
Optional Readonly autoAutomatically approve deps upgrade PRs, allowing them to be merged by mergify (if configued).
Throw if set to true but autoApproveOptions are not defined.
- true
Optional Readonly autoAutomatically add all executables under the bin directory to your
package.json file under the bin section.
true
Optional Readonly autoEnable automatic merging on GitHub. Has no effect if github.mergify
is set to false.
true
Optional Readonly autoConfigure options for automatic merging on GitHub. Has no effect if
github.mergify or autoMerge is set to false.
AutoMergeOptionsOptional Readonly binBinary programs vended with your module.
You can use this option to add/customize how binaries are represented in
your package.json, but unless autoDetectBin is false, every
executable file under bin will automatically be added to this section.
Optional Readonly bugsThe email address to which issues should be reported.
Optional Readonly bugsThe url to your project's issue tracker.
Optional Readonly buildDefine a GitHub workflow for building PRs.
- true if not a subproject
Optional Readonly buildBuild workflow triggers
"{ pullRequest: {}, workflowDispatch: {} }"
Optional Readonly bundledList of dependencies to bundle into this module. These modules will be
added both to the dependencies section and bundledDependencies section of
your package.json.
The recommendation is to only specify the module name here (e.g.
express). This will behave similar to yarn add or npm install in the
sense that it will add the module as a dependency to your package.json
file with the latest version (^). You can specify semver requirements in
the same syntax passed to npm i or yarn add (e.g. express@^2) and
this will be what you package.json will eventually include.
Optional Readonly bundlerOptions for Bundler.
Optional Readonly clobberAdd a clobber task which resets the repo to origin.
- true, but false for subprojects
Optional Readonly codeOptions for npm packages using AWS CodeArtifact. This is required if publishing packages to, or installing scoped packages from AWS CodeArtifact
- undefined
Optional Readonly codeDefine a GitHub workflow step for sending code coverage metrics to https://codecov.io/
Uses codecov/codecov-action@v3
A secret is required for private repos. Configured with @codeCovTokenSecret
false
Optional Readonly codeDefine the secret name for a specified https://codecov.io/ token A secret is required to send coverage for private repositories
- if this option is not specified, only public repositories are supported
Optional Readonly commitWhether to commit the managed files by default.
true
Optional Readonly copyrightLicense copyright owner.
authorName is undefined.Optional Readonly copyrightThe copyright years to put in the LICENSE file.
- current year
Optional Readonly debugPrinting out debug statement
false
Readonly defaultThe name of the main release branch.
"main"
Optional Readonly dependabotUse dependabot to handle dependency upgrades.
Cannot be used in conjunction with depsUpgrade.
false
Optional Readonly dependabotOptions for dependabot.
- default options
Optional Readonly depsRuntime dependencies of this module.
The recommendation is to only specify the module name here (e.g.
express). This will behave similar to yarn add or npm install in the
sense that it will add the module as a dependency to your package.json
file with the latest version (^). You can specify semver requirements in
the same syntax passed to npm i or yarn add (e.g. express@^2) and
this will be what you package.json will eventually include.
[ 'express', 'lodash', 'foo@^2' ]
[]
Optional Readonly depsUse github workflows to handle dependency upgrades.
Cannot be used in conjunction with dependabot.
true
Optional Readonly depsOptions for UpgradeDependencies.
- default options
Optional Readonly descriptionThe description is just a string that helps people understand the purpose of the package. It can be used when searching for packages in a package manager as well. See https://classic.yarnpkg.com/en/docs/package-json/#toc-description
Optional Readonly devAdd a VSCode development environment (used for GitHub Codespaces)
false
Optional Readonly devBuild dependencies for this module. These dependencies will only be available in your build environment but will not be fetched when this module is consumed.
The recommendation is to only specify the module name here (e.g.
express). This will behave similar to yarn add or npm install in the
sense that it will add the module as a dependency to your package.json
file with the latest version (^). You can specify semver requirements in
the same syntax passed to npm i or yarn add (e.g. express@^2) and
this will be what you package.json will eventually include.
[ 'typescript', '@types/express' ]
[]
Optional Readonly disableDo not generate a tsconfig.json file (used by jsii projects since
tsconfig.json is generated by the jsii compiler).
false
Optional Readonly disableDo not generate a tsconfig.dev.json file.
false
Optional Readonly docgenDocgen by Typedoc
false
Optional Readonly docsDocs directory
"docs"
Optional Readonly editorEnable editorConfig
true
Optional Readonly editorEditorConfig options
Optional Readonly entrypointModule entrypoint (main in package.json)
Set to an empty string to not include main in your package.json
"lib/index.js"
Optional Readonly entrypointThe .d.ts file that includes the type declarations for this module.
- .d.ts file derived from the project's entrypoint (usually lib/index.d.ts)
Optional Readonly eslintSetup eslint.
true
Optional Readonly eslintEslint options
- opinionated default options
Optional Readonly gitSetup gitHooksManager
true
Optional Readonly gitgitHooksManagerEnabled options
- default options
Optional Readonly gitConfiguration options for .gitignore file
Optional Readonly gitConfiguration options for git
Optional Readonly githubEnable GitHub integration.
Enabled by default for root projects. Disabled for non-root projects.
true
Optional Readonly githubOptions for GitHub integration
- see GitHubOptions
Optional Readonly gitignoreAdditional entries to .gitignore
Optional Readonly gitpodAdd a Gitpod development environment
false
Optional Readonly homepagePackage's Homepage / Website
Optional Readonly jestSetup jest unit tests
true
Optional Readonly jestJest options
- default options
Optional Readonly jsiiVersion requirement of publib which is used to publish modules to npm.
"latest"
Optional Readonly keywordsKeywords to include in package.json.
Optional Readonly libdirTypescript artifacts output directory
"lib"
Optional Readonly licenseLicense's SPDX identifier.
See https://github.com/projen/projen/tree/main/license-text for a list of supported licenses.
Use the licensed option if you want to no license to be specified.
"Apache-2.0"
Optional Readonly licensedIndicates if a license should be added.
true
Optional Readonly loggingConfigure logging options such as verbosity.
{}
Optional Readonly majorMajor version to release from the default branch.
If this is specified, we bump the latest version of this major version line. If not specified, we bump the global latest version.
- Major version is not enforced.
Optional Readonly maxMinimum node.js version to require via engines (inclusive).
- no max
Optional Readonly mergifyWhether mergify should be enabled on this repository or not.
true
use githubOptions.mergify instead
Optional Readonly mergifyOptions for mergify
- default options
use githubOptions.mergifyOptions instead
Optional Readonly minMinimal Major version to release
This can be useful to set to 1, as breaking changes before the 1.x major release are not incrementing the major version number.
Can not be set together with majorVersion.
- No minimum version is being enforced
Optional Readonly minMinimum Node.js version to require via package.json engines (inclusive).
- no "engines" specified
Optional Readonly mutableAutomatically update files modified during builds to pull-request branches. This means that any files synthesized by projen or e.g. test snapshots will always be up-to-date before a PR is merged.
Implies that PR builds do not have anti-tamper checks.
true
Readonly nameThis is the name of your project.
$BASEDIR
Optional Readonly npmAccess level of the npm package.
foo@bar), the default is
NpmAccess.RESTRICTED, for non-scoped packages, the default is
NpmAccess.PUBLIC.Optional Readonly npmThe npmDistTag to use when publishing from the default branch.
To set the npm dist-tag for release branches, set the npmDistTag property
for each branch.
"latest"
Optional Readonly npmConfiguration options for .npmignore file
Optional Readonly npmThe host name of the npm registry to publish to. Cannot be set together with npmRegistryUrl.
use npmRegistryUrl instead
Optional Readonly npmThe base URL of the npm package registry.
Must be a URL (e.g. start with "https://" or "http://")
"https://registry.npmjs.org"
Optional Readonly npmGitHub secret which contains the NPM token to use when publishing packages.
"NPM_TOKEN"
Optional Readonly npmignoreAdditional entries to .npmignore.
project.addPackageIgnoreOptional Readonly npmignoreDefines an .npmignore file. Normally this is only needed for libraries that are packaged as tarballs.
true
Optional Readonly outdirThe root directory of the project.
Relative to this directory, all files are synthesized.
If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other sub-projects.
"."
Optional Readonly packageDefines a package task that will produce an npm tarball under the
artifacts directory (e.g. dist).
true
Optional Readonly packageThe Node Package Manager used to execute scripts
NodePackageManager.YARN
Optional Readonly packageThe "name" in package.json
- defaults to project name
Optional Readonly parentThe parent project, if this project is part of a bigger project.
Optional Readonly peerOptions for peerDeps.
Optional Readonly peerPeer dependencies for this module. Dependencies listed here are required to
be installed (and satisfied) by the consumer of this library. Using peer
dependencies allows you to ensure that only a single module of a certain
library exists in the node_modules tree of your consumers.
Note that prior to npm@7, peer dependencies are not automatically installed, which means that adding peer dependencies to a library will be a breaking change for your customers.
Unless peerDependencyOptions.pinnedDevDependency is disabled (it is
enabled by default), projen will automatically add a dev dependency with a
pinned version for each peer dependency. This will ensure that you build &
test your module against the lowest peer version required.
[]
Optional Readonly pnpmThe version of PNPM to use if using PNPM as a package manager.
"7"
Optional Readonly postSteps to execute after build as part of the release workflow.
[]
Optional Readonly prereleaseBump versions from the default branch as pre-releases (e.g. "beta", "alpha", "pre").
- normal semantic versions
Optional Readonly prettierSetup prettier.
false
Optional Readonly prettierPrettier options
- default options
Optional Readonly projectWhich type of project this is (library/app).
ProjectType.UNKNOWN
no longer supported at the base project level
Optional Readonly projenThe shell command to use in order to run the projen CLI.
Can be used to customize in special environments.
"npx projen"
Optional Readonly projenChoose a method of providing GitHub API access for projen workflows.
- use a personal access token named PROJEN_GITHUB_TOKEN
Optional Readonly projenIndicates of "projen" should be installed as a devDependency.
true
Optional Readonly projenThe name of a secret which includes a GitHub Personal Access Token to be
used by projen workflows. This token needs to have the repo, workflows
and packages scope.
"PROJEN_GITHUB_TOKEN"
use projenCredentials
Optional Readonly projenVersion of projen to install.
- Defaults to the latest version.
Optional Readonly projenrcGenerate (once) .projenrc.js (in JavaScript). Set to false in order to disable
.projenrc.js generation.
- true if projenrcJson is false
Optional Readonly projenrcOptions for .projenrc.js
- default options
Optional Readonly projenrcGenerate (once) .projenrc.json (in JSON). Set to false in order to disable
.projenrc.json generation.
false
Optional Readonly projenrcOptions for .projenrc.json
- default options
Optional Readonly projenrcUse TypeScript for your projenrc file (.projenrc.ts).
false
true
Optional Readonly projenrcOptions for .projenrc.ts
Optional Readonly publishInstead of actually publishing to package managers, just print the publishing command.
false
Optional Readonly publishDefine publishing tasks that can be executed manually as well as workflows.
Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity.
false
Optional Readonly pullInclude a GitHub pull request template.
true
Optional Readonly pullThe contents of the pull request template.
- default content
Optional Readonly readmeThe README setup.
- { filename: 'README.md', contents: '# replace this' }
"{ filename: 'readme.md', contents: '# title' }"
Optional Readonly releasableFind commits that should be considered releasable Used to decide if a release is required.
ReleasableCommits.everyCommit()
Optional Readonly releaseAdd release management to this project.
- true (false for subprojects)
Optional Readonly releaseDefines additional release branches. A workflow will be created for each
release branch which will publish releases from commits in this branch.
Each release branch must be assigned a major version number which is used
to enforce that versions published from that branch always use that major
version. If multiple branches are used, the majorVersion field must also
be provided for the default branch.
addBranch() to add additional branches.Optional Readonly releaseAutomatically release new versions every commit to one of branches in releaseBranches.
true
Use releaseTrigger: ReleaseTrigger.continuous() instead
Optional Readonly releaseCreate a github issue on every failed publishing task.
false
Optional Readonly releaseThe label to apply to issues indicating publish failures.
Only applies if releaseFailureIssue is true.
"failed-release"
Optional Readonly releaseCRON schedule to trigger new releases.
- no scheduled releases
Use releaseTrigger: ReleaseTrigger.scheduled() instead
Optional Readonly releaseAutomatically add the given prefix to release tags. Useful if you are releasing on multiple branches with overlapping version numbers.
Note: this prefix is used to detect the latest tagged version when bumping, so if you change this on a project with an existing version history, you may need to manually tag your latest release with the new prefix.
"v"
Optional Readonly releaseAutomatically release to npm when new versions are introduced.
false
Optional Readonly releaseThe release trigger to use.
ReleaseTrigger.continuous())Optional Readonly releaseDEPRECATED: renamed to release.
- true if not a subproject
see release.
Optional Readonly releaseThe name of the default release workflow.
"Release"
Optional Readonly releaseA set of workflow steps to execute in order to setup the workflow container.
Optional Readonly renovatebotUse renovatebot to handle dependency upgrades.
false
Optional Readonly renovatebotOptions for renovatebot.
- default options
Optional Readonly repositoryThe repository is the location where the actual code for your package lives. See https://classic.yarnpkg.com/en/docs/package-json/#toc-repository
Optional Readonly repositoryIf the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives.
Optional Readonly sampleGenerate one-time sample in src/ and test/ if there are no files there.
true
Optional Readonly scopedOptions for privately hosted scoped packages
- fetch all scoped packages from the public npm registry
Optional Readonly scriptsnpm scripts to include. If a script has the same name as a standard script, the standard script will be overwritten. Also adds the script as a task.
{}
use project.addTask() or package.setScript()
Optional Readonly srcdirTypescript sources directory.
"src"
Optional Readonly stabilityPackage's Stability
Optional Readonly staleAuto-close of stale issues and pull request. See staleOptions for options.
false
Optional Readonly staleAuto-close stale issues and pull requests. To disable set stale to false.
StaleOptionsOptional Readonly testdirJest tests directory. Tests files should be named xxx.test.ts.
If this directory is under srcdir (e.g. src/test, src/__tests__),
then tests are going to be compiled into lib/ and executed as javascript.
If the test directory is outside of src, then we configure jest to
compile the code in-memory.
"test"
Optional Readonly tsconfigCustom TSConfig
- default options
Optional Readonly tsconfigCustom tsconfig options for the development tsconfig.json file (used for testing).
- use the production tsconfig options
Optional Readonly tsconfigThe name of the development tsconfig.json file.
"tsconfig.dev.json"
Optional Readonly typescriptTypeScript version to use.
NOTE: Typescript is not semantically versioned and should remain on the
same minor, so we recommend using a ~ dependency (e.g. ~1.2.3).
"latest"
Optional Readonly versionrcCustom configuration used when creating changelog with standard-version package. Given values either append to default configuration or overwrite values in it.
- standard configuration applicable for GitHub repositories
Optional Readonly vscodeEnable VSCode integration.
Enabled by default for root projects. Disabled for non-root projects.
true
Optional Readonly workflowWorkflow steps to use in order to bootstrap this repo.
"yarn install --frozen-lockfile && yarn projen"
Optional Readonly workflowContainer image to use for GitHub workflows.
- default image
Optional Readonly workflowThe git identity to use in workflows.
- GitHub Actions
Optional Readonly workflowThe node version to use in GitHub workflows.
minNodeVersionOptional Readonly workflowEnable Node.js package cache in GitHub workflows.
false
Optional Readonly workflowGithub Runner selection labels
["ubuntu-latest"]
Generated using TypeDoc
Allow the project to include
peerDependenciesandbundledDependencies. This is normally only allowed for libraries. For apps, there's no meaning for specifying these.