Class NodePackageOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.javascript.NodePackageOptions.Jsii$Proxy
-
- All Implemented Interfaces:
NodePackageOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NodePackageOptions
@Stability(Experimental) @Internal public static final class NodePackageOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodePackageOptions
An implementation forNodePackageOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.javascript.NodePackageOptions
NodePackageOptions.Builder, NodePackageOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(NodePackageOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theNodePackageOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetAllowLibraryDependencies()(experimental) Allow the project to includepeerDependenciesandbundledDependencies.StringgetAuthorEmail()(experimental) Author's e-mail.StringgetAuthorName()(experimental) Author's name.BooleangetAuthorOrganization()(experimental) Is the author an organization.StringgetAuthorUrl()(experimental) Author's URL / Website.BooleangetAutoDetectBin()(experimental) Automatically add all executables under thebindirectory to yourpackage.jsonfile under thebinsection.Map<String,String>getBin()(experimental) Binary programs vended with your module.StringgetBugsEmail()(experimental) The email address to which issues should be reported.StringgetBugsUrl()(experimental) The url to your project's issue tracker.List<String>getBundledDeps()(experimental) List of dependencies to bundle into this module.CodeArtifactOptionsgetCodeArtifactOptions()(experimental) Options for npm packages using AWS CodeArtifact.List<String>getDeps()(experimental) Runtime dependencies of this module.StringgetDescription()(experimental) The description is just a string that helps people understand the purpose of the package.List<String>getDevDeps()(experimental) Build dependencies for this module.StringgetEntrypoint()(experimental) Module entrypoint (maininpackage.json).StringgetHomepage()(experimental) Package's Homepage / Website.List<String>getKeywords()(experimental) Keywords to include inpackage.json.StringgetLicense()(experimental) License's SPDX identifier.BooleangetLicensed()(experimental) Indicates if a license should be added.StringgetMaxNodeVersion()(experimental) Minimum node.js version to require viaengines(inclusive).StringgetMinNodeVersion()(experimental) Minimum Node.js version to require via package.jsonengines(inclusive).NpmAccessgetNpmAccess()(experimental) Access level of the npm package.BooleangetNpmProvenance()(experimental) Should provenance statements be generated when the package is published.StringgetNpmRegistry()(deprecated) The host name of the npm registry to publish to.StringgetNpmRegistryUrl()(experimental) The base URL of the npm package registry.StringgetNpmTokenSecret()(experimental) GitHub secret which contains the NPM token to use when publishing packages.NodePackageManagergetPackageManager()(experimental) The Node Package Manager used to execute scripts.StringgetPackageName()(experimental) The "name" in package.json.PeerDependencyOptionsgetPeerDependencyOptions()(experimental) Options forpeerDeps.List<String>getPeerDeps()(experimental) Peer dependencies for this module.StringgetPnpmVersion()(experimental) The version of PNPM to use if using PNPM as a package manager.StringgetRepository()(experimental) The repository is the location where the actual code for your package lives.StringgetRepositoryDirectory()(experimental) If 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.List<ScopedPackagesOptions>getScopedPackagesOptions()(experimental) Options for privately hosted scoped packages.Map<String,String>getScripts()(deprecated) npm scripts to include.StringgetStability()(experimental) Package's Stability.YarnBerryOptionsgetYarnBerryOptions()(experimental) Options for Yarn Berry.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(NodePackageOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theNodePackageOptions.Builder.
-
-
Method Detail
-
getAllowLibraryDependencies
public final Boolean getAllowLibraryDependencies()
Description copied from interface:NodePackageOptions(experimental) Allow the project to includepeerDependenciesandbundledDependencies.This is normally only allowed for libraries. For apps, there's no meaning for specifying these.
Default: true
- Specified by:
getAllowLibraryDependenciesin interfaceNodePackageOptions
-
getAuthorEmail
public final String getAuthorEmail()
Description copied from interface:NodePackageOptions(experimental) Author's e-mail.- Specified by:
getAuthorEmailin interfaceNodePackageOptions
-
getAuthorName
public final String getAuthorName()
Description copied from interface:NodePackageOptions(experimental) Author's name.- Specified by:
getAuthorNamein interfaceNodePackageOptions
-
getAuthorOrganization
public final Boolean getAuthorOrganization()
Description copied from interface:NodePackageOptions(experimental) Is the author an organization.- Specified by:
getAuthorOrganizationin interfaceNodePackageOptions
-
getAuthorUrl
public final String getAuthorUrl()
Description copied from interface:NodePackageOptions(experimental) Author's URL / Website.- Specified by:
getAuthorUrlin interfaceNodePackageOptions
-
getAutoDetectBin
public final Boolean getAutoDetectBin()
Description copied from interface:NodePackageOptions(experimental) Automatically add all executables under thebindirectory to yourpackage.jsonfile under thebinsection.Default: true
- Specified by:
getAutoDetectBinin interfaceNodePackageOptions
-
getBin
public final Map<String,String> getBin()
Description copied from interface:NodePackageOptions(experimental) Binary programs vended with your module.You can use this option to add/customize how binaries are represented in your
package.json, but unlessautoDetectBinisfalse, every executable file underbinwill automatically be added to this section.- Specified by:
getBinin interfaceNodePackageOptions
-
getBugsEmail
public final String getBugsEmail()
Description copied from interface:NodePackageOptions(experimental) The email address to which issues should be reported.- Specified by:
getBugsEmailin interfaceNodePackageOptions
-
getBugsUrl
public final String getBugsUrl()
Description copied from interface:NodePackageOptions(experimental) The url to your project's issue tracker.- Specified by:
getBugsUrlin interfaceNodePackageOptions
-
getBundledDeps
public final List<String> getBundledDeps()
Description copied from interface:NodePackageOptions(experimental) List of dependencies to bundle into this module.These modules will be added both to the
dependenciessection andbundledDependenciessection of yourpackage.json.The recommendation is to only specify the module name here (e.g.
express). This will behave similar toyarn addornpm installin the sense that it will add the module as a dependency to yourpackage.jsonfile with the latest version (^). You can specify semver requirements in the same syntax passed tonpm ioryarn add(e.g.express@^2) and this will be what youpackage.jsonwill eventually include.- Specified by:
getBundledDepsin interfaceNodePackageOptions
-
getCodeArtifactOptions
public final CodeArtifactOptions getCodeArtifactOptions()
Description copied from interface:NodePackageOptions(experimental) Options for npm packages using AWS CodeArtifact.This is required if publishing packages to, or installing scoped packages from AWS CodeArtifact
Default: - undefined
- Specified by:
getCodeArtifactOptionsin interfaceNodePackageOptions
-
getDeps
public final List<String> getDeps()
Description copied from interface:NodePackageOptions(experimental) Runtime dependencies of this module.The recommendation is to only specify the module name here (e.g.
express). This will behave similar toyarn addornpm installin the sense that it will add the module as a dependency to yourpackage.jsonfile with the latest version (^). You can specify semver requirements in the same syntax passed tonpm ioryarn add(e.g.express@^2) and this will be what youpackage.jsonwill eventually include.Default: []
Example:
[ 'express', 'lodash', 'foo@^2' ]
- Specified by:
getDepsin interfaceNodePackageOptions
-
getDescription
public final String getDescription()
Description copied from interface:NodePackageOptions(experimental) The 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
- Specified by:
getDescriptionin interfaceNodePackageOptions
-
getDevDeps
public final List<String> getDevDeps()
Description copied from interface:NodePackageOptions(experimental) Build 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 toyarn addornpm installin the sense that it will add the module as a dependency to yourpackage.jsonfile with the latest version (^). You can specify semver requirements in the same syntax passed tonpm ioryarn add(e.g.express@^2) and this will be what youpackage.jsonwill eventually include.Default: []
Example:
[ 'typescript', '@types/express' ]
- Specified by:
getDevDepsin interfaceNodePackageOptions
-
getEntrypoint
public final String getEntrypoint()
Description copied from interface:NodePackageOptions(experimental) Module entrypoint (maininpackage.json).Set to an empty string to not include
mainin your package.jsonDefault: "lib/index.js"
- Specified by:
getEntrypointin interfaceNodePackageOptions
-
getHomepage
public final String getHomepage()
Description copied from interface:NodePackageOptions(experimental) Package's Homepage / Website.- Specified by:
getHomepagein interfaceNodePackageOptions
-
getKeywords
public final List<String> getKeywords()
Description copied from interface:NodePackageOptions(experimental) Keywords to include inpackage.json.- Specified by:
getKeywordsin interfaceNodePackageOptions
-
getLicense
public final String getLicense()
Description copied from interface:NodePackageOptions(experimental) License's SPDX identifier.See https://github.com/projen/projen/tree/main/license-text for a list of supported licenses. Use the
licensedoption if you want to no license to be specified.Default: "Apache-2.0"
- Specified by:
getLicensein interfaceNodePackageOptions
-
getLicensed
public final Boolean getLicensed()
Description copied from interface:NodePackageOptions(experimental) Indicates if a license should be added.Default: true
- Specified by:
getLicensedin interfaceNodePackageOptions
-
getMaxNodeVersion
public final String getMaxNodeVersion()
Description copied from interface:NodePackageOptions(experimental) Minimum node.js version to require viaengines(inclusive).Default: - no max
- Specified by:
getMaxNodeVersionin interfaceNodePackageOptions
-
getMinNodeVersion
public final String getMinNodeVersion()
Description copied from interface:NodePackageOptions(experimental) Minimum Node.js version to require via package.jsonengines(inclusive).Default: - no "engines" specified
- Specified by:
getMinNodeVersionin interfaceNodePackageOptions
-
getNpmAccess
public final NpmAccess getNpmAccess()
Description copied from interface:NodePackageOptions(experimental) Access level of the npm package.Default: - for scoped packages (e.g. `foo@bar`), the default is `NpmAccess.RESTRICTED`, for non-scoped packages, the default is `NpmAccess.PUBLIC`.
- Specified by:
getNpmAccessin interfaceNodePackageOptions
-
getNpmProvenance
public final Boolean getNpmProvenance()
Description copied from interface:NodePackageOptions(experimental) Should provenance statements be generated when the package is published.A supported package manager is required to publish a package with npm provenance statements and you will need to use a supported CI/CD provider.
Note that the projen
ReleaseandPublishercomponents are usingpublibto publish packages, which is using npm internally and supports provenance statements independently of the package manager used.Default: - true for public packages, false otherwise
- Specified by:
getNpmProvenancein interfaceNodePackageOptions- See Also:
- https://docs.npmjs.com/generating-provenance-statements
-
getNpmRegistry
public final String getNpmRegistry()
Description copied from interface:NodePackageOptions(deprecated) The host name of the npm registry to publish to.Cannot be set together with
npmRegistryUrl.- Specified by:
getNpmRegistryin interfaceNodePackageOptions
-
getNpmRegistryUrl
public final String getNpmRegistryUrl()
Description copied from interface:NodePackageOptions(experimental) The base URL of the npm package registry.Must be a URL (e.g. start with "https://" or "http://")
Default: "https://registry.npmjs.org"
- Specified by:
getNpmRegistryUrlin interfaceNodePackageOptions
-
getNpmTokenSecret
public final String getNpmTokenSecret()
Description copied from interface:NodePackageOptions(experimental) GitHub secret which contains the NPM token to use when publishing packages.Default: "NPM_TOKEN"
- Specified by:
getNpmTokenSecretin interfaceNodePackageOptions
-
getPackageManager
public final NodePackageManager getPackageManager()
Description copied from interface:NodePackageOptions(experimental) The Node Package Manager used to execute scripts.Default: NodePackageManager.YARN_CLASSIC
- Specified by:
getPackageManagerin interfaceNodePackageOptions
-
getPackageName
public final String getPackageName()
Description copied from interface:NodePackageOptions(experimental) The "name" in package.json.Default: - defaults to project name
- Specified by:
getPackageNamein interfaceNodePackageOptions
-
getPeerDependencyOptions
public final PeerDependencyOptions getPeerDependencyOptions()
Description copied from interface:NodePackageOptions(experimental) Options forpeerDeps.- Specified by:
getPeerDependencyOptionsin interfaceNodePackageOptions
-
getPeerDeps
public final List<String> getPeerDeps()
Description copied from interface:NodePackageOptions(experimental) Peer 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_modulestree 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.pinnedDevDependencyis 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.Default: []
- Specified by:
getPeerDepsin interfaceNodePackageOptions
-
getPnpmVersion
public final String getPnpmVersion()
Description copied from interface:NodePackageOptions(experimental) The version of PNPM to use if using PNPM as a package manager.Default: "7"
- Specified by:
getPnpmVersionin interfaceNodePackageOptions
-
getRepository
public final String getRepository()
Description copied from interface:NodePackageOptions(experimental) The repository is the location where the actual code for your package lives.See https://classic.yarnpkg.com/en/docs/package-json/#toc-repository
- Specified by:
getRepositoryin interfaceNodePackageOptions
-
getRepositoryDirectory
public final String getRepositoryDirectory()
Description copied from interface:NodePackageOptions(experimental) If 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.- Specified by:
getRepositoryDirectoryin interfaceNodePackageOptions
-
getScopedPackagesOptions
public final List<ScopedPackagesOptions> getScopedPackagesOptions()
Description copied from interface:NodePackageOptions(experimental) Options for privately hosted scoped packages.Default: - fetch all scoped packages from the public npm registry
- Specified by:
getScopedPackagesOptionsin interfaceNodePackageOptions
-
getScripts
public final Map<String,String> getScripts()
Description copied from interface:NodePackageOptions(deprecated) npm 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.
Default: {}
- Specified by:
getScriptsin interfaceNodePackageOptions
-
getStability
public final String getStability()
Description copied from interface:NodePackageOptions(experimental) Package's Stability.- Specified by:
getStabilityin interfaceNodePackageOptions
-
getYarnBerryOptions
public final YarnBerryOptions getYarnBerryOptions()
Description copied from interface:NodePackageOptions(experimental) Options for Yarn Berry.Default: - Yarn Berry v4 with all default options
- Specified by:
getYarnBerryOptionsin interfaceNodePackageOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-