-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
45 lines (39 loc) · 1.22 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
const { AwsCdkTypeScriptApp } = require('projen');
const project = new AwsCdkTypeScriptApp({
authorAddress: "[email protected]",
authorName: "Martin Mueller",
name: "cdk-alps-constructs-demo",
defaultReleaseBranch: "main",
cdkVersion: "1.75.0",
repository: "https://github.com/mmuller88/cdk-alps-constructs-demo.git",
cdkDependencies: [
'@aws-cdk/aws-dynamodb',
'@aws-cdk/aws-appsync',
'@aws-cdk/aws-lambda',
],
devDeps: [
],
deps: [
'cdk-alps-spec-rest-api',
'cdk-alps-graph-ql',
'@types/uuid',
],
keywords: [
'cdk',
'aws',
'alps',
'appsync',
'graphql',
'apigateway',
],
});
project.addScripts({
'clean': 'rm -rf ./cdk.out && rm -rf ./cdk.out ./build lib',
'compile': 'tsc',
"test": "rm -fr lib/ && yarn run compile && jest --passWithNoTests --updateSnapshot && yarn run eslint",
"build": "yarn run clean && yarn install && yarn run compile && yarn run test && cp src/lambdas/package.json lib/lambdas && cd lib/lambdas && yarn install ",
});
const common_exclude = ['cdk.out', 'cdk.context.json', 'images', 'yarn-error.log', 'tmp'];
project.npmignore.exclude(...common_exclude);
project.gitignore.exclude(...common_exclude);
project.synth();