-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.ts
61 lines (55 loc) · 1.62 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
import { nx_monorepo } from "aws-prototyping-sdk";
import { PDKPipelineTsProject } from "aws-prototyping-sdk/pipeline";
import { Project } from "projen";
const project = new nx_monorepo.NxMonorepoProject({
defaultReleaseBranch: "main",
devDeps: ["aws-prototyping-sdk"],
name: "video-search",
description: "This repo is a sample video search app using AWS services.",
deps: [],
license: "MIT",
copyrightOwner: "drskur<[email protected]>",
tsconfig: {
compilerOptions: {
rootDir: undefined,
},
},
});
project.addGitIgnore(".idea");
const pipelineProject = new PDKPipelineTsProject({
parent: project,
outdir: "packages/infra",
defaultReleaseBranch: "main",
name: "infra",
cdkVersion: "2.1.0",
license: "MIT",
copyrightOwner: "drskur<[email protected]>",
deps: [
"@aws-cdk/aws-apigatewayv2-alpha",
"@aws-cdk/aws-apigatewayv2-integrations-alpha",
"@aws-cdk/aws-cognito-identitypool-alpha",
"@aws-prototyping-sdk/identity",
],
scripts: {
ffmpeg: "cd layers/ffmpeg && make",
},
});
const lambdaProject = new Project({
parent: project,
name: "lambda",
outdir: "packages/lambda",
});
lambdaProject.addGitIgnore("target");
lambdaProject.addGitIgnore(".dist");
lambdaProject.tasks.tryFind("package")?.reset("make all");
const appProject = new Project({
parent: project,
name: "app",
outdir: "packages/app",
});
appProject.addGitIgnore("target");
appProject.addGitIgnore(".dist");
appProject.tasks.tryFind("package")?.reset("make all");
project.addImplicitDependency(pipelineProject, lambdaProject);
project.addImplicitDependency(pipelineProject, appProject);
project.synth();