-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 3.44 KB
/
Copy pathpackage.json
File metadata and controls
74 lines (74 loc) · 3.44 KB
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
68
69
70
71
72
73
74
{
"name": "@nodeboot/lambda-sample",
"version": "1.1.1",
"description": "Node-Boot sample project deployed as an AWS Lambda function",
"author": "Manuel Santos <ney.br.santos@gmail.com>",
"license": "MIT",
"private": "true",
"keywords": [
"node-boot",
"aws",
"lambda",
"serverless"
],
"repository": {
"type": "git",
"url": "https://github.com/nodejs-boot/node-boot.git"
},
"publishConfig": {
"access": "public"
},
"main": "dist/handler.js",
"types": "src/index.ts",
"scripts": {
"dev": "pnpm run build && NODE_ENV=development serverless offline --reloadHandler",
"invoke:local": "ts-node src/local-invoke.ts",
"nodeboot:update": "pnpm update @nodeboot/*@latest",
"build": "tsc -p tsconfig.build.json",
"postbuild": "node ./node_modules/@nodeboot/aot/dist/scripts/node-boot-aot.js",
"package": "bash scripts/build-zip.sh",
"clean:build": "rimraf ./dist ./lambda.zip",
"deploy:serverless": "pnpm run clean:build && pnpm run build && serverless deploy",
"remove:serverless": "serverless remove",
"localstack:up": "docker compose -f docker-compose.localstack.yml up -d --wait",
"localstack:down": "docker compose -f docker-compose.localstack.yml down -v",
"localstack:logs": "docker compose -f docker-compose.localstack.yml logs -f",
"deploy:localstack": "bash scripts/deploy-localstack.sh",
"terraform:init": "terraform -chdir=terraform init",
"terraform:plan": "terraform -chdir=terraform plan -var-file=localstack.tfvars",
"terraform:apply": "terraform -chdir=terraform apply -var-file=localstack.tfvars",
"terraform:destroy": "terraform -chdir=terraform destroy -var-file=localstack.tfvars",
"terraform:apply:aws": "terraform -chdir=terraform apply",
"terraform:destroy:aws": "terraform -chdir=terraform destroy",
"lint": "eslint . --ext .js,.ts",
"lint:fix": "pnpm lint --fix",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"test": "node --test --test-reporter node-test-reporter --require ts-node/register test/**/*.{test,it.test}.ts",
"pretest:coverage": "mkdir -p coverage",
"test:coverage": "node --experimental-test-coverage --test-coverage-include='src/**/*.ts' --test-coverage-exclude='src/**/*.test.ts' --test-coverage-exclude='src/**/*.spec.ts' --test --test-reporter node-test-reporter --test-reporter-destination stdout --test-reporter lcov --test-reporter-destination coverage/lcov.info --require ts-node/register test/**/*.{test,it.test}.ts",
"tsc": "tsc"
},
"dependencies": {
"@nodeboot/config": "workspace:*",
"@nodeboot/context": "workspace:*",
"@nodeboot/core": "workspace:*",
"@nodeboot/lambda-server": "workspace:*",
"@nodeboot/authorization": "workspace:*",
"@nodeboot/di": "workspace:*",
"@nodeboot/error": "workspace:*",
"@nodeboot/starter-validation": "workspace:*",
"@nodeboot/aot": "workspace:*",
"reflect-metadata": "^0.2.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"typedi": "^0.10.0",
"winston": "^3.17.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.155",
"@types/node": "^22.13.4",
"serverless": "^3.40.0",
"serverless-offline": "^13.9.0"
}
}