Class NpmConfig
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- io.github.cdklabs.projen.Component
-
- io.github.cdklabs.projen.javascript.NpmConfig
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.199Z") @Stability(Experimental) public class NpmConfig extends Component
(experimental) File representing the local NPM config in .npmrc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNpmConfig.Builder(experimental) A fluent builder forNpmConfig.
-
Constructor Summary
Constructors Modifier Constructor Description NpmConfig(NodeProject project)NpmConfig(NodeProject project, NpmConfigOptions options)protectedNpmConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedNpmConfig(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfig(String name, String value)(experimental) configure a generic property.voidaddRegistry(String url)(experimental) configure a scoped registry.voidaddRegistry(String url, String scope)(experimental) configure a scoped registry.-
Methods inherited from class io.github.cdklabs.projen.Component
getProject, isComponent, postSynthesize, preSynthesize, synthesize
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
NpmConfig
protected NpmConfig(software.amazon.jsii.JsiiObjectRef objRef)
-
NpmConfig
protected NpmConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
NpmConfig
@Stability(Experimental) public NpmConfig(@NotNull NodeProject project, @Nullable NpmConfigOptions options)- Parameters:
project- This parameter is required.options-
-
NpmConfig
@Stability(Experimental) public NpmConfig(@NotNull NodeProject project)- Parameters:
project- This parameter is required.
-
-
Method Detail
-
addConfig
@Stability(Experimental) public void addConfig(@NotNull String name, @NotNull String value)(experimental) configure a generic property.- Parameters:
name- the name of the property. This parameter is required.value- the value of the property. This parameter is required.
-
addRegistry
@Stability(Experimental) public void addRegistry(@NotNull String url, @Nullable String scope)(experimental) configure a scoped registry.- Parameters:
url- the URL of the registry to use. This parameter is required.scope- the scope the registry is used for;.
-
addRegistry
@Stability(Experimental) public void addRegistry(@NotNull String url)(experimental) configure a scoped registry.- Parameters:
url- the URL of the registry to use. This parameter is required.
-
-