-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.ts
79 lines (74 loc) · 1.84 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
import { awscdk, javascript, JsonFile } from 'projen';
import { ReleaseTrigger } from 'projen/lib/release';
const cdkVersion = '2.91.0';
const project = new awscdk.AwsCdkConstructLibrary({
author: 'New Relic',
authorAddress: 'https://newrelic.com',
authorOrganization: true,
description: 'AWS CDK Construct Library for New Relic Dashboards. Generated by projen.',
license: 'Apache-2.0',
name: '@newrelic/cdk-dashboards',
cdkVersion,
defaultReleaseBranch: 'main',
majorVersion: 1,
repositoryUrl: 'https://github.com/newrelic/cdk-dashboards.git',
releaseTrigger: ReleaseTrigger.manual(),
jsiiVersion: '~5.0.0',
projenrcTs: true,
npmAccess: javascript.NpmAccess.PUBLIC,
docgen: true,
releaseToNpm: true,
deps: [
'graphql',
'graphql-request',
],
devDeps: [
'esbuild',
'constructs',
],
bundledDeps: [
'graphql',
'graphql-request',
],
stability: 'experimental',
gitignore: [
'.idea',
'scratch',
'graphql.config.yml',
'cdk.out',
'package-lock.json',
'progen',
'local',
],
keywords: [
'cdk',
'aws-cdk',
'awscdk',
'cloudformation',
'cfn',
'extensions',
'constructs',
'cfn-resources',
'cloudformation-registry',
'l2',
'newrelic',
'new-relic',
],
});
new JsonFile(project, 'cdk.json', {
obj: {
app: 'npx ts-node --prefer-ts-exts src/integ.default.ts',
},
});
project.addPackageIgnore('/local/**/*');
//project.addPackageIgnore('./local/setupJest.ts');
project?.jest?.addSetupFile('<rootDir>/local/setupJest.ts');
project?.jest?.addSetupFileAfterEnv('<rootDir>/local/setupJest.ts');
project?.eslint?.addRules({
// '@typescript-eslint/indent': ['error', 3],
// 'quotes': ['error', 'double'],
'no-trailing-spaces': ['error', { skipBlankLines: true }],
'max-len': ['error', { code: 240 }],
});
// ALWAYS LAST!
project.synth();