-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
executable file
·82 lines (80 loc) · 2.08 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
const projen = require('projen');
const project = new projen.awscdk.AwsCdkConstructLibrary({
author: 'scott.hsieh',
authorName: 'Shu-Jeng Hsieh',
authorAddress: 'https://fantasticsie.medium.com/',
keywords: ['stepfunctions', 'apigateway', 'projen', 'scott.hsieh'],
description: 'An example construct for deploying to npm, PyPi, Maven, and Nuget with Amazon API Gateway and AWS Step Functions.',
cdkVersion: '2.27.0',
majorVersion: 2,
defaultReleaseBranch: 'main',
name: 'projen-statemachine-example',
repositoryUrl: 'https://github.com/HsiehShuJeng/projen-simple.git',
deps: [
'aws-cdk-lib',
'constructs@^10.0.5',
],
devDeps: [
'esbuild',
'source-map-support',
],
peerDeps: [
'aws-cdk-lib',
'constructs@^10.0.5',
],
eslint: true,
jsiiVersion: '5.4.x',
depsUpgradeOptions: {
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
},
},
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['HsiehShuJeng'],
},
gitignore: [
'cdk.out',
// For Mavn GPG
'public.pem',
'private.pem',
// For Python demo
'*.swp',
'package-lock.json',
'__pycache__',
'.pytest_cache',
'.env',
'.venv',
'*.egg-info',
// For Java demo
'.classpath.txt',
'target/',
'.classpath',
'.project',
'.idea',
'.settings',
'.vscode/',
'*.iml',
'.DS_Store',
],
releaseToNpm: true,
publishToPypi: {
distName: 'scotthsieh_projen_statemachine',
module: 'scotthsieh_projen_statemachine',
},
publishToMaven: {
mavenGroupId: 'io.github.hsiehshujeng',
mavenArtifactId: 'projen-statemachine',
javaPackage: 'io.github.hsiehshujeng.projen.statemachine',
mavenEndpoint: 'https://s01.oss.sonatype.org', // check https://central.sonatype.org/publish/release/#login-into-ossrh
},
publishToNuget: {
dotNetNamespace: 'ScottHsieh.Examples',
packageId: 'Projen.Statemachine',
},
publishToGo: {
moduleName: 'github.com/HsiehShuJeng/projen-statemachine-go',
},
});
project.package.addPackageResolutions('got@12.3.0');
project.synth();