Interface NodeProjectOptions
-
- All Superinterfaces:
GitHubProjectOptions,software.amazon.jsii.JsiiSerializable,NodePackageOptions,ProjectOptions,ReleaseProjectOptions
- All Known Subinterfaces:
AwsCdkConstructLibraryOptions,AwsCdkTypeScriptAppOptions,Cdk8sTypeScriptAppOptions,ConstructLibraryAwsOptions,ConstructLibraryCdk8sOptions,ConstructLibraryCdktfOptions,ConstructLibraryOptions,JsiiProjectOptions,NextJsProjectOptions,NextJsTypeScriptProjectOptions,ReactProjectOptions,ReactTypeScriptProjectOptions,TypeScriptLibraryProjectOptions,TypeScriptProjectOptions
- All Known Implementing Classes:
AwsCdkConstructLibraryOptions.Jsii$Proxy,AwsCdkTypeScriptAppOptions.Jsii$Proxy,Cdk8sTypeScriptAppOptions.Jsii$Proxy,ConstructLibraryAwsOptions.Jsii$Proxy,ConstructLibraryCdk8sOptions.Jsii$Proxy,ConstructLibraryCdktfOptions.Jsii$Proxy,ConstructLibraryOptions.Jsii$Proxy,JsiiProjectOptions.Jsii$Proxy,NextJsProjectOptions.Jsii$Proxy,NextJsTypeScriptProjectOptions.Jsii$Proxy,NodeProjectOptions.Jsii$Proxy,ReactProjectOptions.Jsii$Proxy,ReactTypeScriptProjectOptions.Jsii$Proxy,TypeScriptLibraryProjectOptions.Jsii$Proxy,TypeScriptProjectOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.194Z") @Stability(Experimental) public interface NodeProjectOptions extends software.amazon.jsii.JsiiSerializable, GitHubProjectOptions, NodePackageOptions, ReleaseProjectOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classNodeProjectOptions.BuilderA builder forNodeProjectOptionsstatic classNodeProjectOptions.Jsii$ProxyAn implementation forNodeProjectOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static NodeProjectOptions.Builderbuilder()default StringgetArtifactsDirectory()(experimental) A directory which will contain build artifacts.default BooleangetAutoApproveUpgrades()(experimental) Automatically approve deps upgrade PRs, allowing them to be merged by mergify (if configued).default BooleangetBuildWorkflow()(experimental) Define a GitHub workflow for building PRs.default TriggersgetBuildWorkflowTriggers()(experimental) Build workflow triggers.default BundlerOptionsgetBundlerOptions()(experimental) Options forBundler.default LicenseCheckerOptionsgetCheckLicenses()(experimental) Configure which licenses should be deemed acceptable for use by dependencies.default BooleangetCodeCov()(experimental) Define 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.default StringgetCodeCovTokenSecret()(experimental) Define the secret name for a specified https://codecov.io/ token A secret is required to send coverage for private repositories.default StringgetCopyrightOwner()(experimental) License copyright owner.default StringgetCopyrightPeriod()(experimental) The copyright years to put in the LICENSE file.StringgetDefaultReleaseBranch()(experimental) The name of the main release branch.default BooleangetDependabot()(experimental) Use dependabot to handle dependency upgrades.default DependabotOptionsgetDependabotOptions()(experimental) Options for dependabot.default BooleangetDepsUpgrade()(experimental) Use tasks and github workflows to handle dependency upgrades.default UpgradeDependenciesOptionsgetDepsUpgradeOptions()(experimental) Options forUpgradeDependencies.default List<String>getGitignore()(experimental) Additional entries to .gitignore.default BooleangetJest()(experimental) Setup jest unit tests.default JestOptionsgetJestOptions()(experimental) Jest options.default BooleangetMutableBuild()(experimental) Automatically update files modified during builds to pull-request branches.default List<String>getNpmignore()Deprecated.useproject.addPackageIgnoredefault BooleangetNpmignoreEnabled()(experimental) Defines an .npmignore file.default IgnoreFileOptionsgetNpmIgnoreOptions()(experimental) Configuration options for .npmignore file.default BooleangetPackageValue()(experimental) Defines apackagetask that will produce an npm tarball under the artifacts directory (e.g.default BooleangetPrettier()(experimental) Setup prettier.default PrettierOptionsgetPrettierOptions()(experimental) Prettier options.default BooleangetProjenDevDependency()(experimental) Indicates of "projen" should be installed as a devDependency.default BooleangetProjenrcJs()(experimental) Generate (once) .projenrc.js (in JavaScript).default ProjenrcOptionsgetProjenrcJsOptions()(experimental) Options for .projenrc.js.default StringgetProjenVersion()(experimental) Version of projen to install.default BooleangetPullRequestTemplate()(experimental) Include a GitHub pull request template.default List<String>getPullRequestTemplateContents()(experimental) The contents of the pull request template.default BooleangetRelease()(experimental) Add release management to this project.default BooleangetReleaseToNpm()(experimental) Automatically release to npm when new versions are introduced.default BooleangetReleaseWorkflow()Deprecated.seerelease.default List<JobStep>getWorkflowBootstrapSteps()(experimental) Workflow steps to use in order to bootstrap this repo.default GitIdentitygetWorkflowGitIdentity()(experimental) The git identity to use in workflows.default StringgetWorkflowNodeVersion()(experimental) The node version to use in GitHub workflows.default BooleangetWorkflowPackageCache()(experimental) Enable Node.js package cache in GitHub workflows.-
Methods inherited from interface io.github.cdklabs.projen.github.GitHubProjectOptions
getAutoApproveOptions, getAutoMerge, getAutoMergeOptions, getClobber, getDevContainer, getGithub, getGithubOptions, getGitpod, getMergify, getMergifyOptions, getProjectType, getProjenCredentials, getProjenTokenSecret, getReadme, getStale, getStaleOptions, getVscode
-
Methods inherited from interface io.github.cdklabs.projen.javascript.NodePackageOptions
getAllowLibraryDependencies, getAuthorEmail, getAuthorName, getAuthorOrganization, getAuthorUrl, getAutoDetectBin, getBin, getBugsEmail, getBugsUrl, getBundledDeps, getCodeArtifactOptions, getDeps, getDescription, getDevDeps, getEntrypoint, getHomepage, getKeywords, getLicense, getLicensed, getMaxNodeVersion, getMinNodeVersion, getNpmAccess, getNpmProvenance, getNpmRegistry, getNpmRegistryUrl, getNpmTokenSecret, getPackageManager, getPackageName, getPeerDependencyOptions, getPeerDeps, getPnpmVersion, getRepository, getRepositoryDirectory, getScopedPackagesOptions, getScripts, getStability, getYarnBerryOptions
-
Methods inherited from interface io.github.cdklabs.projen.ProjectOptions
getCommitGenerated, getGitIgnoreOptions, getGitOptions, getLogging, getName, getOutdir, getParent, getProjenCommand, getProjenrcJson, getProjenrcJsonOptions, getRenovatebot, getRenovatebotOptions
-
Methods inherited from interface io.github.cdklabs.projen.release.ReleaseProjectOptions
getJsiiReleaseVersion, getMajorVersion, getMinMajorVersion, getNpmDistTag, getPostBuildSteps, getPrerelease, getPublishDryRun, getPublishTasks, getReleasableCommits, getReleaseBranches, getReleaseEveryCommit, getReleaseFailureIssue, getReleaseFailureIssueLabel, getReleaseSchedule, getReleaseTagPrefix, getReleaseTrigger, getReleaseWorkflowName, getReleaseWorkflowSetupSteps, getVersionrcOptions, getWorkflowContainerImage, getWorkflowRunsOn, getWorkflowRunsOnGroup
-
-
-
-
Method Detail
-
getDefaultReleaseBranch
@Stability(Experimental) @NotNull String getDefaultReleaseBranch()
(experimental) The name of the main release branch.Default: "main"
-
getArtifactsDirectory
@Stability(Experimental) @Nullable default String getArtifactsDirectory()
(experimental) A directory which will contain build artifacts.Default: "dist"
-
getAutoApproveUpgrades
@Stability(Experimental) @Nullable default Boolean getAutoApproveUpgrades()
(experimental) Automatically approve deps upgrade PRs, allowing them to be merged by mergify (if configued).Throw if set to true but
autoApproveOptionsare not defined.Default: - true
-
getBuildWorkflow
@Stability(Experimental) @Nullable default Boolean getBuildWorkflow()
(experimental) Define a GitHub workflow for building PRs.Default: - true if not a subproject
-
getBuildWorkflowTriggers
@Stability(Experimental) @Nullable default Triggers getBuildWorkflowTriggers()
(experimental) Build workflow triggers.Default: "{ pullRequest: {}, workflowDispatch: {} }"
-
getBundlerOptions
@Stability(Experimental) @Nullable default BundlerOptions getBundlerOptions()
(experimental) Options forBundler.
-
getCheckLicenses
@Stability(Experimental) @Nullable default LicenseCheckerOptions getCheckLicenses()
(experimental) Configure which licenses should be deemed acceptable for use by dependencies.This setting will cause the build to fail, if any prohibited or not allowed licenses ares encountered.
Default: - no license checks are run during the build and all licenses will be accepted
-
getCodeCov
@Stability(Experimental) @Nullable default Boolean getCodeCov()
(experimental) Define 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.Default: false
-
getCodeCovTokenSecret
@Stability(Experimental) @Nullable default String getCodeCovTokenSecret()
(experimental) Define the secret name for a specified https://codecov.io/ token A secret is required to send coverage for private repositories.Default: - if this option is not specified, only public repositories are supported
-
getCopyrightOwner
@Stability(Experimental) @Nullable default String getCopyrightOwner()
(experimental) License copyright owner.Default: - defaults to the value of authorName or "" if `authorName` is undefined.
-
getCopyrightPeriod
@Stability(Experimental) @Nullable default String getCopyrightPeriod()
(experimental) The copyright years to put in the LICENSE file.Default: - current year
-
getDependabot
@Stability(Experimental) @Nullable default Boolean getDependabot()
(experimental) Use dependabot to handle dependency upgrades.Cannot be used in conjunction with
depsUpgrade.Default: false
-
getDependabotOptions
@Stability(Experimental) @Nullable default DependabotOptions getDependabotOptions()
(experimental) Options for dependabot.Default: - default options
-
getDepsUpgrade
@Stability(Experimental) @Nullable default Boolean getDepsUpgrade()
(experimental) Use tasks and github workflows to handle dependency upgrades.Cannot be used in conjunction with
dependabot.Default: true
-
getDepsUpgradeOptions
@Stability(Experimental) @Nullable default UpgradeDependenciesOptions getDepsUpgradeOptions()
(experimental) Options forUpgradeDependencies.Default: - default options
-
getGitignore
@Stability(Experimental) @Nullable default List<String> getGitignore()
(experimental) Additional entries to .gitignore.
-
getJest
@Stability(Experimental) @Nullable default Boolean getJest()
(experimental) Setup jest unit tests.Default: true
-
getJestOptions
@Stability(Experimental) @Nullable default JestOptions getJestOptions()
(experimental) Jest options.Default: - default options
-
getMutableBuild
@Stability(Experimental) @Nullable default Boolean getMutableBuild()
(experimental) Automatically 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.
Default: true
-
getNpmignore
@Stability(Deprecated) @Deprecated @Nullable default List<String> getNpmignore()
Deprecated.- use
project.addPackageIgnore
(deprecated) Additional entries to .npmignore. - use
-
getNpmignoreEnabled
@Stability(Experimental) @Nullable default Boolean getNpmignoreEnabled()
(experimental) Defines an .npmignore file. Normally this is only needed for libraries that are packaged as tarballs.Default: true
-
getNpmIgnoreOptions
@Stability(Experimental) @Nullable default IgnoreFileOptions getNpmIgnoreOptions()
(experimental) Configuration options for .npmignore file.
-
getPackageValue
@Stability(Experimental) @Nullable default Boolean getPackageValue()
(experimental) Defines apackagetask that will produce an npm tarball under the artifacts directory (e.g.dist).Default: true
-
getPrettier
@Stability(Experimental) @Nullable default Boolean getPrettier()
(experimental) Setup prettier.Default: false
-
getPrettierOptions
@Stability(Experimental) @Nullable default PrettierOptions getPrettierOptions()
(experimental) Prettier options.Default: - default options
-
getProjenDevDependency
@Stability(Experimental) @Nullable default Boolean getProjenDevDependency()
(experimental) Indicates of "projen" should be installed as a devDependency.Default: true
-
getProjenrcJs
@Stability(Experimental) @Nullable default Boolean getProjenrcJs()
(experimental) Generate (once) .projenrc.js (in JavaScript). Set tofalsein order to disable .projenrc.js generation.Default: - true if projenrcJson is false
-
getProjenrcJsOptions
@Stability(Experimental) @Nullable default ProjenrcOptions getProjenrcJsOptions()
(experimental) Options for .projenrc.js.Default: - default options
-
getProjenVersion
@Stability(Experimental) @Nullable default String getProjenVersion()
(experimental) Version of projen to install.Default: - Defaults to the latest version.
-
getPullRequestTemplate
@Stability(Experimental) @Nullable default Boolean getPullRequestTemplate()
(experimental) Include a GitHub pull request template.Default: true
-
getPullRequestTemplateContents
@Stability(Experimental) @Nullable default List<String> getPullRequestTemplateContents()
(experimental) The contents of the pull request template.Default: - default content
-
getRelease
@Stability(Experimental) @Nullable default Boolean getRelease()
(experimental) Add release management to this project.Default: - true (false for subprojects)
-
getReleaseToNpm
@Stability(Experimental) @Nullable default Boolean getReleaseToNpm()
(experimental) Automatically release to npm when new versions are introduced.Default: false
-
getReleaseWorkflow
@Stability(Deprecated) @Deprecated @Nullable default Boolean getReleaseWorkflow()
Deprecated.seerelease.(deprecated) DEPRECATED: renamed torelease.Default: - true if not a subproject
-
getWorkflowBootstrapSteps
@Stability(Experimental) @Nullable default List<JobStep> getWorkflowBootstrapSteps()
(experimental) Workflow steps to use in order to bootstrap this repo.Default: "yarn install --frozen-lockfile && yarn projen"
-
getWorkflowGitIdentity
@Stability(Experimental) @Nullable default GitIdentity getWorkflowGitIdentity()
(experimental) The git identity to use in workflows.Default: - GitHub Actions
-
getWorkflowNodeVersion
@Stability(Experimental) @Nullable default String getWorkflowNodeVersion()
(experimental) The node version to use in GitHub workflows.Default: - same as `minNodeVersion`
-
getWorkflowPackageCache
@Stability(Experimental) @Nullable default Boolean getWorkflowPackageCache()
(experimental) Enable Node.js package cache in GitHub workflows.Default: false
-
builder
@Stability(Experimental) static NodeProjectOptions.Builder builder()
- Returns:
- a
NodeProjectOptions.BuilderofNodeProjectOptions
-
-