This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
79 lines (77 loc) · 2.17 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
const { AwsCdkConstructLibrary, ProjectType, NpmAccess } = require("projen");
const project = new AwsCdkConstructLibrary({
name: "aws-domain-redirector",
description: "AWS CDK construct to redirect one domain to another.",
repository: "https://github.com/awslabs/aws-domain-redirector",
author: "mattsb42-aws",
authorAddress: "bullocm@amazon.com",
copyrightOwner: "Amazon.com Inc. or its affiliates",
license: "Apache-2.0",
// CDK and dependencies
projectType: ProjectType.LIB,
cdkVersion: "1.124.0",
cdkAssert: true,
cdkDependencies: [
"@aws-cdk/core",
"@aws-cdk/aws-certificatemanager",
"@aws-cdk/aws-ec2",
"@aws-cdk/aws-elasticloadbalancingv2",
"@aws-cdk/aws-route53",
"@aws-cdk/aws-route53-targets",
],
// Disable stale issues workflow
stale: false,
// Other Configuration
gitignore: [".idea"],
eslint: true,
eslintOptions: {
prettier: true,
fileExtensions: [".ts", ".md"],
dirs: ["src", "test", "docs"],
},
docgen: true,
docsDirectory: "docs",
pullRequestTemplateContents: [
"*Issue #, if available:*",
"",
"*Description of changes:*",
"",
"By submitting this pull request ",
"I confirm that you can use, modify, copy, and redistribute this contribution ",
"under the terms of your choice.",
],
// Release Configuration
defaultReleaseBranch: "main",
packageName: "@aws/aws-domain-redirector",
releaseToNpm: true,
npmAccess: NpmAccess.PUBLIC,
// TODO: Turn these on as we're ready.
publishToGo: false,
publishToMaven: false,
publishToNuget: false,
publishToPypi: false,
});
// Markdown linting configuration
project.addDevDeps("eslint-plugin-md");
project.eslint.config.extends.push("plugin:md/recommended");
project.eslint.addOverride({
files: ["*.md"],
parser: "markdown-eslint-parser",
rules: {
"prettier/prettier": ["error", { parser: "markdown" }],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/return-await": "off",
},
});
project.eslint.addRules({
"md/remark": [
"error",
{
plugins: [
"preset-lint-markdown-style-guide",
["lint-list-item-indent", "space"],
],
},
],
});
project.synth();