-
Notifications
You must be signed in to change notification settings - Fork 12
/
.projenrc.ts
80 lines (75 loc) · 1.97 KB
/
.projenrc.ts
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
import { awscdk, release } from 'projen';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Brian Caffey',
authorEmail: '[email protected]',
projenrcTs: true,
projenrcTsOptions: {
filename: '.projenrc.ts',
},
authorAddress: '',
authorUrl: 'https://briancaffey.github.io',
license: 'MIT',
copyrightOwner: 'Brian Caffey',
cdkVersion: '2.139.1',
defaultReleaseBranch: 'main',
name: 'cdk-django',
repositoryUrl: '[email protected]:briancaffey/cdk-django.git',
// Automation
githubOptions: {
// projenCredentials: github.GithubCredentials.fromApp(),
pullRequestLintOptions: {
semanticTitleOptions: {
types: ['feat', 'fix', 'chore', 'docs', 'ci'],
},
},
},
// https://github.com/projen/projen/issues/1941
bundledDeps: ['@types/[email protected]'],
majorVersion: 1,
releaseTrigger: {
isContinuous: false,
} as release.ReleaseTrigger,
// ignore
gitignore: ['cdk.out', 'notes', 'app.yml', 'base.yml', 'cdk.context.json'],
npmignore: [
'.npmrc',
'.nvmrc',
'.versionrc',
'.gitattributes',
'*.tgz',
'*.gz',
'*.zip',
'cdk.out',
'.cdk.staging',
'/examples',
'PUBLISHING.md',
'.vscode',
'.projenrc.ts',
'projenrc',
'/images',
'API.md',
'CHANGELOG.md',
'CONTRIBUTING.md',
'SECURITY.md',
],
description: 'CDK construct library for building Django applications on AWS with ECS Fargate',
packageName: 'cdk-django',
});
// release only via manual trigger
project.release?.publisher?.publishToGit({
changelogFile: 'dist/dist/changelog.md',
versionFile: 'dist/dist/version.txt',
releaseTagFile: 'dist/dist/releasetag.txt',
projectChangelogFile: 'CHANGELOG.md',
gitBranch: 'main',
});
project.tryFindObjectFile('.github/workflows/release.yml')?.addToArray(
'jobs.release.steps',
{
name: 'Publish tag',
run: 'npx projen publish:git',
},
);
project.addDevDeps('[email protected]');
project.addDevDeps('[email protected]');
project.synth();