-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.projenrc.js
88 lines (85 loc) · 2.65 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
const { GemeenteNijmegenCdkApp } = require('@gemeentenijmegen/projen-project-type');
const project = new GemeenteNijmegenCdkApp({
cdkVersion: '2.22.0',
defaultReleaseBranch: 'production',
majorVersion: 1,
name: 'yivi-issue-app',
repository: 'https://github.com/GemeenteNijmegen/yivi-issue-app.git',
deps: [
'dotenv',
'@aws-solutions-constructs/aws-lambda-dynamodb',
'cdk-remote-stack',
'@gemeentenijmegen/dnssec-record',
'@gemeentenijmegen/aws-constructs',
'@pepperize/cdk-route53-health-check',
// Lambda packages
'@aws-sdk/client-dynamodb',
'@aws-sdk/client-secrets-manager',
'@aws-sdk/client-ssm',
'@aws-sdk/client-ses',
'@aws-sdk/client-cloudwatch-logs',
'@gemeentenijmegen/apiclient',
'@gemeentenijmegen/session',
'@gemeentenijmegen/utils',
'@gemeentenijmegen/apigateway-http',
'axios',
'mustache',
'@types/mustache',
'aws4-axios',
'openid-client',
'@types/cookie',
'cookie',
'@types/aws-lambda',
'chart.js',
'@privacybydesign/yivi-frontend',
],
devDeps: [
'copyfiles',
'@playwright/test',
'aws-sdk-client-mock',
'@glen/jest-raw-loader',
'axios-mock-adapter',
'jest-aws-client-mock',
'@gemeentenijmegen/projen-project-type',
'copyfiles',
],
jestOptions: {
jestConfig: {
setupFiles: ['dotenv/config'],
moduleFileExtensions: [
'js', 'json', 'jsx', 'ts', 'tsx', 'node', 'mustache',
],
transform: {
'\\.[jt]sx?$': 'ts-jest',
'^.+\\.mustache$': '@glen/jest-raw-loader',
},
testPathIgnorePatterns: ['/node_modules/', '/cdk.out', '/test/playwright'],
roots: ['src', 'test'],
},
},
eslintOptions: {
devdirs: ['src/app/logout/tests', '/test', '/build-tools'],
},
gitignore: [
'src/app/**/tests/output',
'src/app/static-resources/packages/*',
'test/playwright/report',
'test/playwright/tests/report',
'test/playwright/tests/results',
'test/playwright/test-results',
'test/playwright/screenshots',
'test/__snapshots__/*',
],
bundlerOptions: {
loaders: {
mustache: 'text',
},
},
scripts: {
'lint': 'cfn-lint cdk.out/**/*.template.json -i W3005 W2001 W3045', // W3045: zie CloudFront logs bucket
'install:chartjs': 'copyfiles -f -E -V node_modules/chart.js/dist/chart.umd.js src/app/static-resources/static/scripts/',
'install:yivi-frontend': 'copyfiles -f -E -V node_modules/@privacybydesign/yivi-frontend/dist/yivi.js src/app/static-resources/static/scripts/',
'postinstall': 'echo copying frontend files... && npx projen install:chartjs && npx projen install:yivi-frontend',
},
});
project.synth();