-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.projenrc.js
59 lines (58 loc) · 1.55 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
const { awscdk } = require('projen');
const { GithubCredentials } = require('projen/lib/github');
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Taylor Ondrey',
authorAddress: '[email protected]',
cdkVersion: '2.25.0',
defaultReleaseBranch: 'main',
name: 'cdk-hugo-deploy',
description: 'Deploy Hugo static websites to AWS',
repositoryUrl: 'https://github.com/maafk/cdk-hugo-deploy.git',
keywords: ['aws', 'cdk', 'hugo'],
gitignore: ['.vscode/'],
eslintOptions: { prettier: true },
jsiiVersion: '~5.0.0',
autoApproveOptions: {
allowedUsernames: ['maafk'],
},
autoApproveUpgrades: true,
depsUpgradeOptions: {
workflowOptions: {
labels: ['auto-approve'],
},
},
publishToPypi: {
distName: 'cdk-hugo-deploy',
module: 'cdk_hugo_deploy',
},
publishToNuget: {
packageId: 'maafk.CdkHugoDeploy',
dotNetNamespace: 'maafk.CdkHugoDeploy',
},
publishToMaven: {
mavenGroupId: 'io.github.maafk',
javaPackage: 'io.github.maafk.CdkHugoDeploy',
mavenArtifactId: 'CdkHugoDeploy',
mavenEndpoint: 'https://s01.oss.sonatype.org',
},
publishToGo: {
moduleName: 'github.com/maafk/cdk-hugo-deploy',
},
});
project.package.addField('resolutions', {
'ansi-regex': '^5.0.1',
'json-schema': '^0.4.0',
'@types/prettier': '2.6.0',
});
project.package.addField('prettier', {
singleQuote: true,
semi: true,
trailingComma: 'es5',
});
project.eslint.addRules({
'prettier/prettier': [
'error',
{ singleQuote: true, semi: true, trailingComma: 'es5' },
],
});
project.synth();