-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
60 lines (54 loc) · 1.4 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
const { AwsCdkTypeScriptApp, NodePackageManager } = require('projen');
const project = new AwsCdkTypeScriptApp({
authorEmail: '[email protected]',
authorName: 'Ken Winner',
name: "cubejs-demo",
packageManager: NodePackageManager.NPM,
typescriptVersion: '^4.1.2',
cdkVersion: "1.80.0",
cdkVersionPinning: true,
cdkDependencies: [
'@aws-cdk/aws-apigatewayv2',
'@aws-cdk/aws-apigatewayv2-integrations',
'@aws-cdk/aws-appsync',
'@aws-cdk/aws-cognito',
'@aws-cdk/aws-dynamodb',
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-lambda-event-sources',
'@aws-cdk/aws-lambda-nodejs',
'@aws-cdk/aws-rds',
'@aws-cdk/aws-sns'
],
deps: [
'cdk-appsync-transformer@^1.77.0'
],
devDeps: [
'aws-sdk',
'data-api-client',
'jsonwebtoken',
'knex',
'esbuild',
],
gitignore: [
'.env',
'appsync/*',
'cdk.context.json'
],
// Disable GitHub Stuff
buildWorkflow: false,
releaseWorkflow: false,
dependabot: false,
pullRequestTemplate: false,
mergify: false,
});
project.addScripts({
'build:cube': 'cd cubejs-lambda && npm install && cd ..',
'create-user': 'node bin/createUser.js',
dev: './cubejs-lambda/node_modules/.bin/cubejs-dev-server',
'generate-token': 'node bin/generateToken.js',
'migrate:up': 'knex migrate:up --env demo',
seed: 'knex seed:run --env demo'
})
project.synth();