@Stability(value=Experimental) @Internal public static final class NodePackageOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NodePackageOptions
NodePackageOptionssoftware.amazon.jsii.JsiiObject.InitializationModeNodePackageOptions.Builder, NodePackageOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(NodePackageOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
NodePackageOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowLibraryDependencies()
(experimental) Allow the project to include `peerDependencies` and `bundledDependencies`.
|
String |
getAuthorEmail()
(experimental) Author's e-mail.
|
String |
getAuthorName()
(experimental) Author's name.
|
Boolean |
getAuthorOrganization()
(experimental) Author's Organization.
|
String |
getAuthorUrl()
(experimental) Author's URL / Website.
|
Boolean |
getAutoDetectBin()
(experimental) Automatically add all executables under the `bin` directory to your `package.json` file under the `bin` section.
|
Map<String,String> |
getBin()
(experimental) Binary programs vended with your module.
|
List<String> |
getBundledDeps()
(experimental) List of dependencies to bundle into this module.
|
CodeArtifactOptions |
getCodeArtifactOptions()
(experimental) Options for publishing npm package to AWS CodeArtifact.
|
List<String> |
getDeps()
(experimental) Runtime dependencies of this module.
|
String |
getDescription()
(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.
|
String |
getEntrypoint()
(experimental) Module entrypoint (`main` in `package.json`).
|
String |
getHomepage()
(experimental) Package's Homepage / Website.
|
List<String> |
getKeywords()
(experimental) Keywords to include in `package.json`.
|
String |
getLicense()
(experimental) License's SPDX identifier.
|
Boolean |
getLicensed()
(experimental) Indicates if a license should be added.
|
String |
getMaxNodeVersion()
(experimental) Minimum node.js version to require via `engines` (inclusive).
|
String |
getMinNodeVersion()
(experimental) Minimum Node.js version to require via package.json `engines` (inclusive).
|
NpmAccess |
getNpmAccess()
(experimental) Access level of the npm package.
|
String |
getNpmRegistry()
(deprecated) The host name of the npm registry to publish to.
|
String |
getNpmRegistryUrl()
(experimental) The base URL of the npm package registry.
|
String |
getNpmTokenSecret()
(experimental) GitHub secret which contains the NPM token to use when publishing packages.
|
NodePackageManager |
getPackageManager()
(experimental) The Node Package Manager used to execute scripts.
|
String |
getPackageName()
(experimental) The "name" in package.json.
|
PeerDependencyOptions |
getPeerDependencyOptions()
(experimental) Options for `peerDeps`.
|
List<String> |
getPeerDeps()
(experimental) Peer dependencies for this module.
|
String |
getRepository()
(experimental) The repository is the location where the actual code for your package lives.
|
String |
getRepositoryDirectory()
(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.
|
Map<String,String> |
getScripts()
(experimental) npm scripts to include.
|
String |
getStability()
(experimental) Package's Stability.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(NodePackageOptions.Builder builder)
NodePackageOptions.Builder.public final Boolean getAllowLibraryDependencies()
NodePackageOptionsThis is normally only allowed for libraries. For apps, there's no meaning for specifying these.
Default: true
getAllowLibraryDependencies in interface NodePackageOptionspublic final String getAuthorEmail()
NodePackageOptionsgetAuthorEmail in interface NodePackageOptionspublic final String getAuthorName()
NodePackageOptionsgetAuthorName in interface NodePackageOptionspublic final Boolean getAuthorOrganization()
NodePackageOptionsgetAuthorOrganization in interface NodePackageOptionspublic final String getAuthorUrl()
NodePackageOptionsgetAuthorUrl in interface NodePackageOptionspublic final Boolean getAutoDetectBin()
NodePackageOptionsDefault: true
getAutoDetectBin in interface NodePackageOptionspublic final Map<String,String> getBin()
NodePackageOptions
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.
getBin in interface NodePackageOptionspublic final List<String> getBundledDeps()
NodePackageOptions
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.
getBundledDeps in interface NodePackageOptionspublic final CodeArtifactOptions getCodeArtifactOptions()
NodePackageOptionsDefault: - undefined
getCodeArtifactOptions in interface NodePackageOptionspublic final List<String> getDeps()
NodePackageOptions
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.
Default: []
Example:
// Example automatically generated from non-compiling source. May contain errors. [ 'express', 'lodash', 'foo@^2' ]
getDeps in interface NodePackageOptionspublic final String getDescription()
NodePackageOptionsIt can be used when searching for packages in a package manager as well. See https://classic.yarnpkg.com/en/docs/package-json/#toc-description
getDescription in interface NodePackageOptionspublic final List<String> getDevDeps()
NodePackageOptionsThese 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.
Default: []
Example:
// Example automatically generated from non-compiling source. May contain errors. [ 'typescript', '@types/express' ]
getDevDeps in interface NodePackageOptionspublic final String getEntrypoint()
NodePackageOptions
Set to an empty string to not include main in your package.json
Default: "lib/index.js"
getEntrypoint in interface NodePackageOptionspublic final String getHomepage()
NodePackageOptionsgetHomepage in interface NodePackageOptionspublic final List<String> getKeywords()
NodePackageOptionsgetKeywords in interface NodePackageOptionspublic final String getLicense()
NodePackageOptions
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.
Default: "Apache-2.0"
getLicense in interface NodePackageOptionspublic final Boolean getLicensed()
NodePackageOptionsDefault: true
getLicensed in interface NodePackageOptionspublic final String getMaxNodeVersion()
NodePackageOptionsDefault: - no max
getMaxNodeVersion in interface NodePackageOptionspublic final String getMinNodeVersion()
NodePackageOptionsDefault: - no "engines" specified
getMinNodeVersion in interface NodePackageOptionspublic final NpmAccess getNpmAccess()
NodePackageOptionsDefault: - for scoped packages (e.g. `foo@bar`), the default is `NpmAccess.RESTRICTED`, for non-scoped packages, the default is `NpmAccess.PUBLIC`.
getNpmAccess in interface NodePackageOptionspublic final String getNpmRegistry()
NodePackageOptions
Cannot be set together with npmRegistryUrl.
getNpmRegistry in interface NodePackageOptionspublic final String getNpmRegistryUrl()
NodePackageOptionsMust be a URL (e.g. start with "https://" or "http://")
Default: "https://registry.npmjs.org"
getNpmRegistryUrl in interface NodePackageOptionspublic final String getNpmTokenSecret()
NodePackageOptionsDefault: "NPM_TOKEN"
getNpmTokenSecret in interface NodePackageOptionspublic final NodePackageManager getPackageManager()
NodePackageOptionsDefault: NodePackageManager.YARN
getPackageManager in interface NodePackageOptionspublic final String getPackageName()
NodePackageOptionsDefault: - defaults to project name
getPackageName in interface NodePackageOptionspublic final PeerDependencyOptions getPeerDependencyOptions()
NodePackageOptionsgetPeerDependencyOptions in interface NodePackageOptionspublic final List<String> getPeerDeps()
NodePackageOptions
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.
Default: []
getPeerDeps in interface NodePackageOptionspublic final String getRepository()
NodePackageOptionsSee https://classic.yarnpkg.com/en/docs/package-json/#toc-repository
getRepository in interface NodePackageOptionspublic final String getRepositoryDirectory()
NodePackageOptionsgetRepositoryDirectory in interface NodePackageOptionspublic final Map<String,String> getScripts()
NodePackageOptionsIf a script has the same name as a standard script, the standard script will be overwritten.
Default: {}
getScripts in interface NodePackageOptionspublic final String getStability()
NodePackageOptionsgetStability in interface NodePackageOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.