-
Notifications
You must be signed in to change notification settings - Fork 24
/
.projenrc.js
127 lines (115 loc) · 2.7 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
const { awscdk, javascript } = require('projen');
const project = new awscdk.AwsCdkConstructLibrary({
authorAddress: '[email protected]',
authorName: 'Ken Winner',
name: 'cdk-appsync-transformer',
repository: 'https://github.com/kcwinner/cdk-appsync-transformer.git',
stability: 'experimental',
catalog: {
twitter: 'KenWin0x539',
},
license: 'Apache-2.0',
defaultReleaseBranch: 'main',
keywords: [
'aws',
'cdk',
'appsync',
'amplify',
],
// Until we merge v2 into main
majorVersion: 1,
releaseBranches: {
'feat/cdk-v2-upgrade': {
majorVersion: 2,
npmDistTag: 'next',
prerelease: 'alpha',
workflowName: 'release-cdk-v2',
},
},
codeCov: true,
githubOptions: {
mergify: false,
},
packageManager: javascript.NodePackageManager.NPM,
dependabot: true,
dependabotOptions: {
ignoreProjen: true,
ignore: [
{ dependencyName: '@aws-cdk*' },
],
},
jestOptions: {
jestConfig: {
testPathIgnorePatterns: [
'<rootDir>/test/mappedTransformer',
],
},
},
// Ignore our generated appsync files
npmignore: [
'appsync/*',
'customtest/*',
],
gitignore: [
'appsync/*',
'customtest/*',
],
// Jsii packaging
python: {
distName: 'cdk-appsync-transformer',
module: 'cdk_appsync_transformer',
},
// Dependency information
cdkVersion: '1.138.0',
cdkDependenciesAsDeps: false,
cdkDependencies: [
'@aws-cdk/aws-appsync',
'@aws-cdk/aws-cognito',
'@aws-cdk/aws-dynamodb',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/core',
],
devDeps: [
'@aws-cdk/aws-appsync',
'@aws-cdk/aws-cognito',
'@aws-cdk/aws-dynamodb',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/core',
'@types/deep-diff',
'@types/jest',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'eslint',
'jest',
'ts-jest',
'cloudform-types@^4.2.0',
],
bundledDeps: [
'graphql@^14.5.8',
'graphql-auth-transformer',
'graphql-connection-transformer',
'graphql-dynamodb-transformer',
'graphql-function-transformer',
'graphql-http-transformer',
'graphql-key-transformer',
'graphql-mapping-template',
'graphql-relational-schema-transformer',
'graphql-transformer-common',
'graphql-transformer-core',
'graphql-ttl-transformer', // Community transformer
'graphql-versioned-transformer',
],
});
// const unbumpTask = project.tasks.tryFind('unbump');
// unbumpTask.exec('git checkout package-lock.json');
project.eslint.overrides.push({
files: [
'custom-vtl-transformer.ts',
],
rules: {
'import/no-extraneous-dependencies': 'off',
},
});
project.synth();