-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
110 lines (103 loc) · 10.8 KB
/
.projenrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
const {AwsCdkTypeScriptApp} = require('projen')
const project = new AwsCdkTypeScriptApp({
cdkVersion: '1.73.0',
name: 'jenkins-as-code-example',
/* AwsCdkTypeScriptAppOptions */
// appEntrypoint: "main.ts", /* The CDK app's entrypoint (relative to the source directory, which is "src" by default). */
// cdkDependencies: undefined, /* Which AWS CDK modules (those that start with "@aws-cdk/") this app uses. */
// cdkVersionPinning: false, /* Use pinned version instead of caret version for CDK. */
// context: undefined, /* Additional context to include in `cdk.json`. */
// requireApproval: CdkApprovalLevel.BROADENING, /* To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. */
/* NodeProjectCommonOptions */
// allowLibraryDependencies: true, /* Allow the project to include `peerDependencies` and `bundledDependencies`. */
// antitamper: true, /* Checks that after build there are no modified files on git. */
// autoDetectBin: true, /* Automatically add all executables under the `bin` directory to your `package.json` file under the `bin` section. */
// bin: undefined, /* Binary programs vended with your module. */
// buildWorkflow: true, /* Define a GitHub workflow for building PRs. */
// bundledDeps: undefined, /* List of dependencies to bundle into this module. */
// copyrightOwner: undefined, /* License copyright owner. */
// copyrightPeriod: undefined, /* The copyright years to put in the LICENSE file. */
// defaultReleaseBranch: "master", /* The name of the main release branch. */
// dependabot: true, /* Include dependabot configuration. */
// dependabotOptions: undefined, /* Options for dependabot. */
// deps: [], /* Runtime dependencies of this module. */
// devDeps: [], /* Build dependencies for this module. */
// entrypoint: "lib/index.js", /* Module entrypoint (`main` in `package.json`). */
// keywords: undefined, /* Keywords to include in `package.json`. */
// libdir: "lib", /* Compiler artifacts output directory. */
// maxNodeVersion: undefined, /* Minimum node.js version to require via `engines` (inclusive). */
// mergify: true, /* Adds mergify configuration. */
// mergifyAutoMergeLabel: "auto-merge", /* Automatically merge PRs that build successfully and have this label. */
// mergifyOptions: undefined, /* Options for mergify. */
// minNodeVersion: undefined, /* Minimum Node.js version to require via package.json `engines` (inclusive). */
// npmDistTag: "latest", /* The dist-tag to use when releasing to npm. */
// npmignore: undefined, /* Additional entries to .npmignore. */
// npmignoreEnabled: true, /* Defines an .npmignore file. Normally this is only needed for libraries that are packaged as tarballs. */
// npmRegistry: "registry.npmjs.org", /* The registry url to use when releasing packages. */
// packageManager: NodePackageManager.YARN, /* The Node Package Manager used to execute scripts. */
// peerDependencyOptions: undefined, /* Options for `peerDeps`. */
// peerDeps: [], /* Peer dependencies for this module. */
// projenDevDependency: true, /* Indicates of "projen" should be installed as a devDependency. */
// projenUpgradeAutoMerge: undefined, /* Automatically merge projen upgrade PRs when build passes. */
// projenUpgradeSchedule: [ "0 6 * * *" ], /* Customize the projenUpgrade schedule in cron expression. */
// projenUpgradeSecret: undefined, /* Periodically submits a pull request for projen upgrades (executes `yarn projen:upgrade`). */
// projenVersion: Semver.latest(), /* Version of projen to install. */
// pullRequestTemplate: true, /* Include a GitHub pull request template. */
// pullRequestTemplateContents: undefined, /* The contents of the pull request template. */
// releaseBranches: [ "master" ], /* Branches which trigger a release. */
// releaseEveryCommit: true, /* Automatically release new versions every commit to one of branches in `releaseBranches`. */
// releaseSchedule: undefined, /* CRON schedule to trigger new releases. */
// releaseToNpm: false, /* Automatically release to npm when new versions are introduced. */
// releaseWorkflow: true, /* Define a GitHub workflow for releasing from "master" when new versions are bumped. */
// scripts: {}, /* npm scripts to include. */
// srcdir: "src", /* Typescript sources directory. */
// start: true, /* Defines a `yarn start` interactive experience. */
// startOptions: undefined, /* Options for `yarn start`. */
// testdir: "test", /* Tests directory. */
// workflowBootstrapSteps: "yarn install --frozen-lockfile && yarn projen", /* Workflow steps to use in order to bootstrap this repo. */
// workflowContainerImage: undefined, /* Container image to use for GitHub workflows. */
// workflowNodeVersion: undefined, /* The node version to use in GitHub workflows. */
/* NodeProjectOptions */
// authorEmail: undefined, /* Author's e-mail. */
// authorName: undefined, /* Author's name. */
// authorOrganization: undefined, /* Author's Organization. */
// authorUrl: undefined, /* Author's URL / Website. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// gitignore: undefined, /* Additional entries to .gitignore. */
// homepage: undefined, /* Package's Homepage / Website. */
// license: undefined, /* License's SPDX identifier. */
// repository: undefined, /* The repository is the location where the actual code for your package lives. */
// repositoryDirectory: undefined, /* 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. */
// stability: undefined, /* Package's Stability. */
/* TypeScriptProjectOptions */
// compileBeforeTest: undefined, /* Compile the code before running tests. */
// disableTsconfig: false, /* Do not generate a `tsconfig.json` file (used by jsii projects since tsconfig.json is generated by the jsii compiler). */
// docgen: false, /* Docgen by Typedoc. */
// docsDirectory: "docs", /* Docs directory. */
// entrypointTypes: undefined, /* The .d.ts file that includes the type declarations for this module. */
// eslint: true, /* Setup eslint. */
// jest: true, /* Setup jest unit tests. */
// jestOptions: undefined, /* Jest options. */
// package: true, /* Defines a `yarn package` command that will produce a tarball and place it under `dist/js`. */
// sampleCode: true, /* Generate one-time sample in `src/` and `test/` if there are no files there. */
// tsconfig: undefined, /* Custom TSConfig. */
// typescriptVersion: "^3.9.5", /* TypeScript version to use. */
buildWorkflow: false,
license: 'MIT',
gitignore: ['.idea'],
cdkDependencies: [
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-ecs',
'@aws-cdk/aws-ecs-patterns',
'@aws-cdk/aws-logs',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-imagebuilder',
'@aws-cdk/aws-s3',
'@aws-cdk/aws-secretsmanager',
'@aws-cdk/aws-servicediscovery'
],
})
const common_exclude = ['cdk.context.json'];
project.npmignore.exclude(...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth()