-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
37 lines (37 loc) · 1.96 KB
/
package.json
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
{
"name": "thom-aws-auth",
"version": "0.0.1",
"description": "lambda functions for auth with dynamodb",
"scripts": {
"setup": "npm i && cd src/layers/nodejs && npm i",
"build": "node esbuild.build.js",
"test": "vitest",
"coverage": "vitest run --coverage",
"clean": "scripts/clean.sh",
"apply:aws": "npm run build && cd terraform/aws && terraform plan -out=out.tfplan -var-file=secrets.tfvars && terraform apply \"out.tfplan\"",
"destroy:aws": "cd terraform/aws && terraform destroy -auto-approve -var-file=secrets.tfvars",
"apply:local": "npm run build && cd terraform/localstack && terraform init && terraform plan -out=out.tfplan -var-file=secrets.tfvars && terraform apply \"out.tfplan\"",
"destroy:local": "cd terraform/localstack && terraform destroy -auto-approve",
"up": "cd terraform/docker && terraform init && terraform apply -auto-approve",
"down": "cd terraform/docker && terraform destroy -auto-approve",
"create:local-lambdas": "rm -rf temp && mkdir temp && npm run merge:packages && npm run copy:lambdas && npm run copy:esbuild && npm run update:esbuild-local && cd temp && npm i --omit=dev && npm run build",
"merge:packages": "package-json-merge package.json ./src/layers/nodejs/package.json > temp/package.json",
"copy:esbuild": "cat esbuild.build.js >> temp/esbuild.build.js",
"copy:lambdas": "cp -R ./src/lambdas/* ./temp && find temp* -name '*.test.ts' -type f -delete",
"update:esbuild-local": "sed -i -e 's#src/lambdas/login/login.ts#lambdas/login/login.ts#g' temp/esbuild.build.js && sed -i -e 's#tsconfig.json#../tsconfig.json#g' temp/esbuild.build.js"
},
"author": "Thomas Newman",
"license": "ISC",
"dependencies": {
"amazon-cognito-identity-js": "^5.2.9"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.97",
"@types/node": "^17.0.36",
"c8": "^7.11.3",
"esbuild": "^0.14.42",
"package-json-merge": "^0.0.1",
"typescript": "^4.7.2",
"vitest": "^0.12.10"
}
}