projen 0.99.80 → 0.100.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +1719 -3687
- package/BREAKING_CHANGES.md +855 -0
- package/lib/ai-instructions.d.ts +0 -1
- package/lib/ai-instructions.js +6 -12
- package/lib/awscdk/auto-discover.js +7 -14
- package/lib/awscdk/awscdk-app-java.d.ts +0 -7
- package/lib/awscdk/awscdk-app-java.js +28 -21
- package/lib/awscdk/awscdk-app-py.d.ts +0 -12
- package/lib/awscdk/awscdk-app-py.js +27 -24
- package/lib/awscdk/awscdk-app-ts.d.ts +0 -5
- package/lib/awscdk/awscdk-app-ts.js +57 -31
- package/lib/awscdk/awscdk-construct.d.ts +0 -26
- package/lib/awscdk/awscdk-construct.js +4 -44
- package/lib/awscdk/awscdk-deps-java.js +2 -6
- package/lib/awscdk/awscdk-deps-js.js +2 -7
- package/lib/awscdk/awscdk-deps-py.js +2 -7
- package/lib/awscdk/awscdk-deps.d.ts +1 -90
- package/lib/awscdk/awscdk-deps.js +68 -114
- package/lib/awscdk/cdk-config.d.ts +0 -21
- package/lib/awscdk/cdk-config.js +44 -51
- package/lib/awscdk/cdk-tasks.js +26 -4
- package/lib/awscdk/integration-test.js +10 -15
- package/lib/awscdk/internal.js +5 -2
- package/lib/awscdk/lambda-extension.js +4 -16
- package/lib/awscdk/lambda-function.d.ts +0 -10
- package/lib/awscdk/lambda-function.js +88 -78
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +1 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +2 -2
- package/lib/build/build-workflow.js +51 -6
- package/lib/builtin-example.task.d.ts +1 -0
- package/lib/builtin-example.task.js +2 -1
- package/lib/cdk/auto-discover-base.js +43 -8
- package/lib/cdk/construct-lib.js +2 -4
- package/lib/cdk/integration-test-base.js +26 -4
- package/lib/cdk/jsii-build.d.ts +0 -1
- package/lib/cdk/jsii-build.js +4 -4
- package/lib/cdk/jsii-docgen.js +2 -4
- package/lib/cdk/jsii-project.d.ts +12 -9
- package/lib/cdk/jsii-project.js +22 -7
- package/lib/cdk8s/auto-discover.js +3 -6
- package/lib/cdk8s/cdk8s-app-py.js +7 -4
- package/lib/cdk8s/cdk8s-app-ts.js +43 -6
- package/lib/cdk8s/cdk8s-construct.js +44 -5
- package/lib/cdk8s/cdk8s-deps-py.js +2 -4
- package/lib/cdk8s/cdk8s-deps.js +50 -5
- package/lib/cdk8s/integration-test.js +2 -4
- package/lib/cdktf/cdktf-construct.js +36 -5
- package/lib/circleci/circleci.js +66 -44
- package/lib/cleanup.js +38 -5
- package/lib/cli/cmds/new.js +51 -20
- package/lib/cli/cmds/run-task.js +107 -0
- package/lib/cli/{synth.d.ts → cmds/synth.d.ts} +0 -5
- package/lib/cli/cmds/synth.js +90 -0
- package/lib/cli/index.js +47 -22
- package/lib/cli/macros.js +35 -2
- package/lib/cli/task-runtime.d.ts +75 -0
- package/lib/cli/task-runtime.js +482 -0
- package/lib/cli/util.js +37 -4
- package/lib/common.d.ts +9 -0
- package/lib/common.js +11 -2
- package/lib/component.js +3 -4
- package/lib/dependencies.js +43 -12
- package/lib/dev-env.js +10 -4
- package/lib/docker-compose/docker-compose-service.js +54 -4
- package/lib/docker-compose/docker-compose.js +8 -4
- package/lib/file.js +60 -5
- package/lib/gitattributes.js +7 -5
- package/lib/github/actions-provider.js +3 -7
- package/lib/github/auto-approve.js +3 -4
- package/lib/github/auto-merge.js +3 -5
- package/lib/github/auto-queue.js +36 -5
- package/lib/github/dependabot.js +13 -4
- package/lib/github/dependency-review.js +2 -4
- package/lib/github/github-credentials.js +37 -5
- package/lib/github/github-project.d.ts +1 -32
- package/lib/github/github-project.js +30 -8
- package/lib/github/github.d.ts +0 -9
- package/lib/github/github.js +27 -14
- package/lib/github/index.js +24 -2
- package/lib/github/merge-queue.js +3 -4
- package/lib/github/mergify.d.ts +0 -7
- package/lib/github/mergify.js +6 -13
- package/lib/github/pr-template.js +2 -4
- package/lib/github/pull-request-backport.js +4 -4
- package/lib/github/pull-request-lint.js +4 -4
- package/lib/github/stale.js +2 -4
- package/lib/github/task-workflow-job.js +20 -4
- package/lib/github/task-workflow.js +4 -4
- package/lib/github/workflow-actions.d.ts +0 -8
- package/lib/github/workflow-actions.js +2 -14
- package/lib/github/workflow-jobs.js +2 -4
- package/lib/github/workflow-steps.js +2 -4
- package/lib/github/workflows-model.d.ts +0 -8
- package/lib/github/workflows-model.js +1 -1
- package/lib/github/workflows.js +39 -6
- package/lib/gitlab/configuration-model.d.ts +0 -4
- package/lib/gitlab/configuration-model.js +1 -1
- package/lib/gitlab/configuration.js +125 -41
- package/lib/gitlab/gitlab-configuration.js +3 -5
- package/lib/gitlab/nested-configuration.js +3 -4
- package/lib/gitpod.js +11 -7
- package/lib/ignore-file.js +5 -4
- package/lib/index.d.ts +1 -2
- package/lib/index.js +38 -18
- package/lib/ini.js +36 -5
- package/lib/inventory.d.ts +32 -23
- package/lib/inventory.js +37 -4
- package/lib/java/java-project.js +26 -4
- package/lib/java/junit.js +2 -4
- package/lib/java/maven-compile.js +2 -4
- package/lib/java/maven-packaging.js +6 -4
- package/lib/java/maven-sample.js +2 -4
- package/lib/java/pom.js +45 -12
- package/lib/java/projenrc.js +10 -4
- package/lib/javascript/biome/biome.js +48 -6
- package/lib/javascript/bundler.d.ts +0 -8
- package/lib/javascript/bundler.js +48 -11
- package/lib/javascript/eslint.d.ts +0 -13
- package/lib/javascript/eslint.js +38 -37
- package/lib/javascript/index.js +24 -2
- package/lib/javascript/jest.d.ts +0 -20
- package/lib/javascript/jest.js +71 -15
- package/lib/javascript/license-checker.js +3 -4
- package/lib/javascript/node-package.d.ts +0 -28
- package/lib/javascript/node-package.js +136 -38
- package/lib/javascript/node-project.d.ts +5 -76
- package/lib/javascript/node-project.js +88 -81
- package/lib/javascript/npm-config.js +7 -9
- package/lib/javascript/prettier.js +16 -4
- package/lib/javascript/projenrc.js +3 -4
- package/lib/javascript/render-options.d.ts +2 -2
- package/lib/javascript/render-options.js +36 -5
- package/lib/javascript/typescript-config.js +45 -8
- package/lib/javascript/upgrade-dependencies.js +56 -36
- package/lib/javascript/util.js +35 -2
- package/lib/javascript/yarnrc.d.ts +1 -28
- package/lib/javascript/yarnrc.js +3 -45
- package/lib/json-patch.js +3 -4
- package/lib/json.js +4 -5
- package/lib/license.js +37 -5
- package/lib/logger.js +14 -11
- package/lib/logging.js +10 -7
- package/lib/makefile.js +7 -4
- package/lib/object-file.js +19 -4
- package/lib/project-build.js +26 -4
- package/lib/project-tree.js +3 -4
- package/lib/project.d.ts +0 -35
- package/lib/project.js +105 -58
- package/lib/projects.js +37 -6
- package/lib/projenrc-json.d.ts +0 -10
- package/lib/projenrc-json.js +4 -13
- package/lib/projenrc.js +2 -4
- package/lib/python/index.js +24 -2
- package/lib/python/pip.js +5 -4
- package/lib/python/poetry.js +63 -7
- package/lib/python/projenrc.js +10 -4
- package/lib/python/pyproject-toml-file.js +2 -4
- package/lib/python/pytest-sample.js +2 -4
- package/lib/python/pytest.d.ts +0 -12
- package/lib/python/pytest.js +3 -5
- package/lib/python/python-project.js +33 -10
- package/lib/python/python-sample.js +2 -4
- package/lib/python/requirements-file.js +4 -5
- package/lib/python/setuppy.d.ts +0 -8
- package/lib/python/setuppy.js +3 -4
- package/lib/python/setuptools.js +8 -4
- package/lib/python/uv.js +11 -4
- package/lib/python/venv.js +45 -6
- package/lib/readme.js +2 -4
- package/lib/release/bump-version.js +36 -3
- package/lib/release/bump-version.task.js +35 -2
- package/lib/release/commit-tag-version.js +39 -3
- package/lib/release/publisher.d.ts +0 -49
- package/lib/release/publisher.js +24 -22
- package/lib/release/release-trigger.js +33 -4
- package/lib/release/release.d.ts +0 -24
- package/lib/release/release.js +66 -31
- package/lib/release/tag-version.js +35 -2
- package/lib/release/update-changelog.js +36 -3
- package/lib/renovatebot.js +14 -4
- package/lib/run-projenrc-json.task.js +35 -2
- package/lib/run-task.cjs +12631 -275
- package/lib/sample-file.js +43 -9
- package/lib/smithy/smithy-build.js +46 -1
- package/lib/source-code.js +6 -5
- package/lib/task-model.d.ts +10 -0
- package/lib/task-model.js +1 -1
- package/lib/task-runner.d.ts +25 -0
- package/lib/task-runner.js +100 -0
- package/lib/task.d.ts +0 -7
- package/lib/task.js +13 -13
- package/lib/tasks.d.ts +5 -9
- package/lib/tasks.js +64 -23
- package/lib/testing.js +2 -4
- package/lib/textfile.js +3 -4
- package/lib/toml.js +36 -5
- package/lib/typescript/projenrc-ts.js +8 -4
- package/lib/typescript/projenrc.js +6 -4
- package/lib/typescript/typescript-typedoc.js +2 -4
- package/lib/typescript/typescript.d.ts +0 -10
- package/lib/typescript/typescript.js +75 -29
- package/lib/util/synth.js +39 -6
- package/lib/util.js +38 -5
- package/lib/version.d.ts +0 -4
- package/lib/version.js +24 -10
- package/lib/vscode/devcontainer.js +11 -4
- package/lib/vscode/extensions.js +17 -18
- package/lib/vscode/launch-config.js +5 -6
- package/lib/vscode/settings.js +4 -4
- package/lib/vscode/vscode.js +5 -4
- package/lib/web/next.js +38 -8
- package/lib/web/postcss.js +5 -4
- package/lib/web/react.d.ts +0 -14
- package/lib/web/react.js +51 -25
- package/lib/web/tailwind.js +4 -4
- package/lib/xmlfile.js +2 -4
- package/lib/yaml.js +40 -5
- package/package.json +11 -12
- package/lib/cli/synth.js +0 -105
- package/lib/cli/tasks.js +0 -71
- package/lib/semver.d.ts +0 -34
- package/lib/semver.js +0 -56
- package/lib/task-runtime.d.ts +0 -34
- package/lib/task-runtime.js +0 -317
- /package/lib/cli/{tasks.d.ts → cmds/run-task.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ import type { JestOptions } from "./jest";
|
|
|
4
4
|
import { Jest } from "./jest";
|
|
5
5
|
import type { LicenseCheckerOptions } from "./license-checker";
|
|
6
6
|
import type { NodePackageOptions } from "./node-package";
|
|
7
|
-
import { NodePackage
|
|
7
|
+
import { NodePackage } from "./node-package";
|
|
8
8
|
import type { ProjenrcOptions } from "./projenrc";
|
|
9
9
|
import type { BuildWorkflowCommonOptions } from "../build";
|
|
10
10
|
import { BuildWorkflow } from "../build";
|
|
@@ -12,12 +12,12 @@ import type { DependabotOptions, GitHubProjectOptions, GitIdentity } from "../gi
|
|
|
12
12
|
import { AutoMerge, GitHubProject } from "../github";
|
|
13
13
|
import type { BiomeOptions } from "./biome/biome";
|
|
14
14
|
import { Biome } from "./biome/biome";
|
|
15
|
-
import type { JobStep, JobStepConfiguration
|
|
15
|
+
import type { JobStep, JobStepConfiguration } from "../github/workflows-model";
|
|
16
16
|
import type { IgnoreFileOptions } from "../ignore-file";
|
|
17
17
|
import { IgnoreFile } from "../ignore-file";
|
|
18
18
|
import type { PrettierOptions, UpgradeDependenciesOptions } from "../javascript";
|
|
19
19
|
import { NpmConfig, Prettier, UpgradeDependencies } from "../javascript";
|
|
20
|
-
import type {
|
|
20
|
+
import type { ReleaseProjectOptions } from "../release";
|
|
21
21
|
import { Release } from "../release";
|
|
22
22
|
import type { GroupRunnerOptions } from "../runner-options";
|
|
23
23
|
import type { Task } from "../task";
|
|
@@ -84,18 +84,6 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
84
84
|
* Options for PR build workflow.
|
|
85
85
|
*/
|
|
86
86
|
readonly buildWorkflowOptions?: BuildWorkflowOptions;
|
|
87
|
-
/**
|
|
88
|
-
* Automatically update files modified during builds to pull-request branches. This means
|
|
89
|
-
* that any files synthesized by projen or e.g. test snapshots will always be up-to-date
|
|
90
|
-
* before a PR is merged.
|
|
91
|
-
*
|
|
92
|
-
* Implies that PR builds do not have anti-tamper checks.
|
|
93
|
-
*
|
|
94
|
-
* @default true
|
|
95
|
-
*
|
|
96
|
-
* @deprecated - Use `buildWorkflowOptions.mutableBuild`
|
|
97
|
-
*/
|
|
98
|
-
readonly mutableBuild?: boolean;
|
|
99
87
|
/**
|
|
100
88
|
* Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/
|
|
101
89
|
* Uses codecov/codecov-action@v5
|
|
@@ -109,13 +97,6 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
109
97
|
* @default - OIDC auth is used
|
|
110
98
|
*/
|
|
111
99
|
readonly codeCovTokenSecret?: string;
|
|
112
|
-
/**
|
|
113
|
-
* DEPRECATED: renamed to `release`.
|
|
114
|
-
*
|
|
115
|
-
* @default - true if not a subproject
|
|
116
|
-
* @deprecated see `release`.
|
|
117
|
-
*/
|
|
118
|
-
readonly releaseWorkflow?: boolean;
|
|
119
100
|
/**
|
|
120
101
|
* Add release management to this project.
|
|
121
102
|
*
|
|
@@ -126,8 +107,9 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
126
107
|
* The name of the main release branch.
|
|
127
108
|
*
|
|
128
109
|
* @default "main"
|
|
110
|
+
* @featured
|
|
129
111
|
*/
|
|
130
|
-
readonly defaultReleaseBranch
|
|
112
|
+
readonly defaultReleaseBranch?: string;
|
|
131
113
|
/**
|
|
132
114
|
* Workflow steps to use in order to bootstrap this repo.
|
|
133
115
|
*
|
|
@@ -205,11 +187,6 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
205
187
|
* Configuration options for .npmignore file
|
|
206
188
|
*/
|
|
207
189
|
readonly npmIgnoreOptions?: IgnoreFileOptions;
|
|
208
|
-
/**
|
|
209
|
-
* Additional entries to .npmignore.
|
|
210
|
-
* @deprecated - use `project.addPackageIgnore`
|
|
211
|
-
*/
|
|
212
|
-
readonly npmignore?: string[];
|
|
213
190
|
/**
|
|
214
191
|
* Include a GitHub pull request template.
|
|
215
192
|
*
|
|
@@ -276,13 +253,6 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
276
253
|
* @default true
|
|
277
254
|
*/
|
|
278
255
|
readonly package?: boolean;
|
|
279
|
-
/**
|
|
280
|
-
* Build workflow triggers
|
|
281
|
-
* @default "{ pullRequest: {}, workflowDispatch: {} }"
|
|
282
|
-
*
|
|
283
|
-
* @deprecated - Use `buildWorkflowOptions.workflowTriggers`
|
|
284
|
-
*/
|
|
285
|
-
readonly buildWorkflowTriggers?: Triggers;
|
|
286
256
|
/**
|
|
287
257
|
* Configure which licenses should be deemed acceptable for use by dependencies
|
|
288
258
|
*
|
|
@@ -387,14 +357,6 @@ export declare class NodeProject extends GitHubProject {
|
|
|
387
357
|
*/
|
|
388
358
|
get npmrc(): NpmConfig;
|
|
389
359
|
private _npmrc?;
|
|
390
|
-
/**
|
|
391
|
-
* @deprecated use `package.allowLibraryDependencies`
|
|
392
|
-
*/
|
|
393
|
-
get allowLibraryDependencies(): boolean;
|
|
394
|
-
/**
|
|
395
|
-
* @deprecated use `package.entrypoint`
|
|
396
|
-
*/
|
|
397
|
-
get entrypoint(): string;
|
|
398
360
|
/**
|
|
399
361
|
* Component that sets up mergify for merging approved pull requests.
|
|
400
362
|
*/
|
|
@@ -403,13 +365,6 @@ export declare class NodeProject extends GitHubProject {
|
|
|
403
365
|
* The PR build GitHub workflow. `undefined` if `buildWorkflow` is disabled.
|
|
404
366
|
*/
|
|
405
367
|
readonly buildWorkflow?: BuildWorkflow;
|
|
406
|
-
/**
|
|
407
|
-
* Package publisher. This will be `undefined` if the project does not have a
|
|
408
|
-
* release workflow.
|
|
409
|
-
*
|
|
410
|
-
* @deprecated use `release.publisher`.
|
|
411
|
-
*/
|
|
412
|
-
readonly publisher?: Publisher;
|
|
413
368
|
/**
|
|
414
369
|
* Release management.
|
|
415
370
|
*/
|
|
@@ -427,12 +382,6 @@ export declare class NodeProject extends GitHubProject {
|
|
|
427
382
|
*/
|
|
428
383
|
get maxNodeVersion(): string | undefined;
|
|
429
384
|
protected readonly nodeVersion?: string;
|
|
430
|
-
/**
|
|
431
|
-
* The package manager to use.
|
|
432
|
-
*
|
|
433
|
-
* @deprecated use `package.packageManager`
|
|
434
|
-
*/
|
|
435
|
-
get packageManager(): NodePackageManager;
|
|
436
385
|
/**
|
|
437
386
|
* The command to use to run scripts (e.g. `yarn run` or `npm run` depends on the package manager).
|
|
438
387
|
*/
|
|
@@ -441,10 +390,6 @@ export declare class NodeProject extends GitHubProject {
|
|
|
441
390
|
* The Jest configuration (if enabled)
|
|
442
391
|
*/
|
|
443
392
|
readonly jest?: Jest;
|
|
444
|
-
/**
|
|
445
|
-
* @deprecated use `package.addField(x, y)`
|
|
446
|
-
*/
|
|
447
|
-
get manifest(): any;
|
|
448
393
|
readonly bundler: Bundler;
|
|
449
394
|
/**
|
|
450
395
|
* The build output directory. An npm tarball will be created under the `js`
|
|
@@ -492,22 +437,6 @@ export declare class NodeProject extends GitHubProject {
|
|
|
492
437
|
* @param name The name of the script.
|
|
493
438
|
*/
|
|
494
439
|
removeScript(name: string): void;
|
|
495
|
-
/**
|
|
496
|
-
* Indicates if a script by the name name is defined.
|
|
497
|
-
* @param name The name of the script
|
|
498
|
-
* @deprecated Use `project.tasks.tryFind(name)`
|
|
499
|
-
*/
|
|
500
|
-
hasScript(name: string): boolean;
|
|
501
|
-
/**
|
|
502
|
-
* DEPRECATED
|
|
503
|
-
* @deprecated use `project.compileTask.exec()`
|
|
504
|
-
*/
|
|
505
|
-
addCompileCommand(...commands: string[]): void;
|
|
506
|
-
/**
|
|
507
|
-
* DEPRECATED
|
|
508
|
-
* @deprecated use `project.testTask.exec()`
|
|
509
|
-
*/
|
|
510
|
-
addTestCommand(...commands: string[]): void;
|
|
511
440
|
/**
|
|
512
441
|
* Directly set fields in `package.json`.
|
|
513
442
|
* @param fields The fields to set
|