Package io.github.cdklabs.projen
Class Projects
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.Projects
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:42.795Z") @Stability(Experimental) public class Projects extends software.amazon.jsii.JsiiObject
(experimental) Programmatic API for projen.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateProject(CreateProjectOptions options)(experimental) Creates a new project with defaults.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
createProject
@Stability(Experimental) public static void createProject(@NotNull CreateProjectOptions options)(experimental) Creates a new project with defaults.This function creates the project type in-process (with in VM) and calls
.synth()on it (ifoptions.synthis notfalse).At the moment, it also generates a
.projenrc.jsfile with the same code that was just executed. In the future, this will also be done by the project type, so we can easily support multiple languages of projenrc.An environment variable (PROJEN_CREATE_PROJECT=true) is set within the VM so that custom project types can detect whether the current synthesis is the result of a new project creation (and take additional steps accordingly)
- Parameters:
options- This parameter is required.
-
-