-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
67 lines (52 loc) · 1.71 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
const { awscdk } = require('projen');
const { NodePackageManager } = require('projen/lib/javascript');
const cdkVersion = '2.69.0';
const alphaVersionSuffix = 'alpha.0';
const project = new awscdk.AwsCdkConstructLibrary({
name: 'cdk-blender-render',
description: 'Render Blender with AWS',
repositoryUrl: 'https://github.com/mattiamatrix/cdk-blender-render.git',
licensed: true,
author: 'mattiamatrix',
stability: 'experimental',
defaultReleaseBranch: 'main',
keywords: ['aws', 'batch', 'blender', 'cdk', 'render'],
docgen: false,
releaseToNpm: true,
publishTasks: true,
packageManager: NodePackageManager.NPM,
cdkVersion: cdkVersion,
peerDeps: [`@aws-cdk/aws-batch-alpha@^${cdkVersion}-${alphaVersionSuffix}`],
devDeps: [
'@trivago/prettier-plugin-sort-imports',
'eslint-config-prettier',
'eslint-plugin-prettier',
'eslint-plugin-promise',
'ts-node',
'tsc-alias',
],
eslint: true,
prettier: true,
prettierOptions: {
settings: {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
importOrder: ['^constructs(.*)$', '^aws-cdk(.*)$', '^@aws-sdk(.*)$', '^test/(.*)$', '^[./]'],
importOrderSeparation: true,
},
},
dependabot: false,
});
// .eslintrc.json
project.eslint.addRules({ 'import/order': 'off' });
const common_exclude = ['cdk.out', 'cdk.context.json', 'yarn-error.log', 'coverage', 'venv', '.env', '*.png'];
// .gitignore
project.gitignore.exclude(...common_exclude);
// .npmignore
project.npmignore.exclude(...common_exclude);
// .prettierignore
[...common_exclude, 'node_modules', 'dist', 'out'].forEach((element) => project.prettier.addIgnorePattern(element));
project.synth();