-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
157 lines (157 loc) · 10.4 KB
/
package.json
File metadata and controls
157 lines (157 loc) · 10.4 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "expense-app-api",
"version": "4.25.2",
"private": true,
"scripts": {
"cert:setup": "mkcert -install || echo \"\\033[1;31mPlease run again after intalling mkcert: \\033[0;31mhttps://github.com/FiloSottile/mkcert#installation\\033[0m\"",
"cert:mkdir": "echo \"\\033[1;35mYou must be in the root of the backend to continue. Press ^C to exit or Enter to continue:\\033[0m\" && read -r cont && mkdir -p certificates",
"cert:generate": "npm run cert:mkdir && cd certificates && mkcert localhost",
"chronos": "node -e 'require(\"./chronos\").start()'",
"claudia": "claudia",
"clean:dev": "export AWS_PROFILE=dev && node scripts/lambda/cleanup-versions.js",
"clean:test": "export AWS_PROFILE=dev && node scripts/lambda/cleanup-versions.js",
"clean:prod": "export AWS_PROFILE=prod && node scripts/lambda/cleanup-versions.js",
"copy:data:test": "node scripts/dynamo/copy-data.js",
"create:claudia:dev": "node scripts/claudia/generate-env-json.js && claudia create --handler lambda.handler --deploy-proxy-api --use-s3-bucket case-expense-app-deployments-dev --s3-key claudiajs/file.zip --memory 256 --region us-east-1 --name expense-app-api-dev --runtime nodejs20.x --set-env-from-json ./env-variables.json --role expense-api-lambda-dev --version dev",
"create:claudia:prod": "node scripts/claudia/generate-env-json.js && claudia create --handler lambda.handler --deploy-proxy-api --use-s3-bucket case-consulting-expense-app-deployments-prod --s3-key claudiajs/file.zip --memory 256 --region us-east-1 --name expense-app-api-prod --runtime nodejs20.x --set-env-from-json ./env-variables.json --role expense-api-lambda-prod --version prod",
"create:claudia:test": "node scripts/claudia/generate-env-json.js && claudia create --handler lambda.handler --deploy-proxy-api --use-s3-bucket case-expense-app-deployments-test --s3-key claudiajs/file.zip --memory 256 --region us-east-1 --name expense-app-api-test --runtime nodejs20.x --set-env-from-json ./env-variables.json --role expense-api-lambda-test --version test",
"csvScripts:dev": "node ./js/Scripts/csvScripts.js dev",
"csvScripts:prod": "node ./js/Scripts/csvScripts.js prod",
"csvScripts:test": "node ./js/Scripts/csvScripts.js test",
"debug": "nodemon --trace-warnings --inspect bin/www",
"deploy:cloudformation": "node scripts/cloudformation/deploy.js",
"deploy:support:cloudformation:dev": "npm run deploy:cloudformation support dev",
"deploy:support:cloudformation:prod": "npm run deploy:cloudformation support prod",
"deploy:support:cloudformation:test": "npm run deploy:cloudformation support test",
"deploy:claudia:dev": "npm run update:dev",
"deploy:claudia:prod": "npm run update:prod",
"deploy:claudia:test": "npm run update:test",
"predeploy:dev": "npm run download:dev && npm run reinstall:layers",
"deploy:dev": "npm run deploy:claudia:dev && npm run tag:dev && npm run deploy:cloudformation app dev",
"postdeploy:dev": "npm run download:local:env",
"predeploy:prod": "export AWS_PROFILE=prod && npm run download:prod && npm run reinstall:layers",
"deploy:prod": "npm run deploy:claudia:prod && npm run tag:prod && npm run deploy:cloudformation app prod",
"postdeploy:prod": "export AWS_PROFILE=default && npm run download:local:env",
"predeploy:test": "npm run download:test && npm run reinstall:layers",
"deploy:test": "npm run deploy:claudia:test && npm run tag:test && npm run deploy:cloudformation app test",
"postdeploy:test": "npm run download:local:env",
"predeploy:support:dev": "npm run download:dev",
"deploy:support:dev": "npm run deploy:support:cloudformation:dev",
"postdeploy:support:dev": "npm run download:local:env",
"predeploy:support:prod": "export AWS_PROFILE=prod && npm run download:prod",
"deploy:support:prod": "npm run deploy:support:cloudformation:prod",
"postdeploy:support:prod": "export AWS_PROFILE=default && npm run download:local:env",
"predeploy:support:test": "npm run download:test",
"deploy:support:test": "npm run deploy:support:cloudformation:test",
"postdeploy:support:test": "npm run download:local:env",
"destroy": "claudia destroy",
"download:dev": "npm run download:dev:env && npm run download:dev:claudia",
"download:dev:claudia": "aws s3 cp s3://case-expense-app-resources-dev/claudia.json claudia.json",
"download:dev:env": "echo .env chronos/.env thanos/.env timesheet-submission-reminder/.env | xargs -n 1 aws s3 cp s3://case-expense-app-resources-dev/.env",
"download:local:env": "echo .env chronos/.env thanos/.env timesheet-submission-reminder/.env | xargs -n 1 aws s3 cp s3://case-expense-app-resources-local/.env",
"download:prod": "npm run download:prod:env && npm run download:prod:claudia",
"download:prod:claudia": "aws s3 cp s3://case-consulting-expense-app-resources-prod/claudia.json claudia.json",
"download:prod:env": "echo .env chronos/.env thanos/.env timesheet-submission-reminder/.env | xargs -n 1 aws s3 cp s3://case-consulting-expense-app-resources-prod/.env",
"download:test": "npm run download:test:env && npm run download:test:claudia",
"download:test:claudia": "aws s3 cp s3://case-expense-app-resources-test/claudia.json claudia.json",
"download:test:env": "echo .env chronos/.env thanos/.env timesheet-submission-reminder/.env | xargs -n 1 aws s3 cp s3://case-expense-app-resources-test/.env",
"employeeScripts:dev": "node ./scripts/migrations/employeeScripts.js dev",
"employeeScripts:prod": "node ./scripts/migrations/employeeScripts.js prod",
"employeeScripts:test": "node ./scripts/migrations/employeeScripts.js test",
"eslint": "eslint . --ext .js --fix",
"lint": "npm run eslint",
"outdated": "npm outdated; npm run outdated:layers",
"outdated:layers": "cd layers/dependencies/nodejs && npm outdated",
"pm2": "pm2",
"pm2:kill": "pm2 kill",
"pm2:list": "pm2 list",
"pm2:monit": "pm2 monit",
"precommit": "npm run validate && npm run eslint && npm run test",
"receiptSync:dev": "node ./js/Scripts/ReceiptSync.js dev",
"receiptSync:prod": "node ./js/Scripts/ReceiptSync.js prod",
"receiptSync:test": "node ./js/Scripts/ReceiptSync.js test",
"reinstall": "npm install && npm ci && npm run reinstall:chronos && npm run reinstall:leaderboard && npm run reinstall:portal-data-sync && npm run reinstall:thanos && npm run reinstall:layers",
"reinstall:chronos": "cd chronos && npm install && npm ci",
"reinstall:layers": "(cd layers/dependencies/nodejs && npm install && npm ci) && (cd layers/shared/nodejs && npm install && npm ci)",
"reinstall:leaderboard": "cd crons/leaderboard && npm install && npm ci",
"reinstall:portal-data-sync": "cd portal-data-sync && npm install && npm ci",
"reinstall:thanos": "cd thanos && npm install && npm ci",
"postreinstall": "rm -rf node_modules/claudia/node_modules/aws-sdk",
"restart": "pm2 restart services.yml",
"start": "pm2 start services.yml",
"stop": "pm2 stop services.yml",
"tag:dev": "claudia tag --tags Application=expense-app,Stage=dev",
"tag:prod": "claudia tag --tags Application=expense-app,Stage=prod",
"tag:test": "claudia tag --tags Application=expense-app,Stage=test",
"test": "jasmine",
"test-coverage": "nyc --reporter=text --reporter=html --exclude=spec/** jasmine",
"testLambdaLocal": "node scripts/lambda/test-local.js",
"update:dev": "node scripts/claudia/generate-env-json.js && claudia update --runtime nodejs20.x --handler lambda.handler --use-s3-bucket case-expense-app-deployments-dev --s3-key claudiajs/file.zip --memory 256 --update-env-from-json ./env-variables.json --timeout 60 --version dev",
"update:prod": "node scripts/claudia/generate-env-json.js && claudia update --runtime nodejs20.x --handler lambda.handler --use-s3-bucket case-consulting-expense-app-deployments-prod --s3-key claudiajs/file.zip --memory 256 --update-env-from-json ./env-variables.json --timeout 60 --version prod",
"update:test": "node scripts/claudia/generate-env-json.js && claudia update --runtime nodejs20.x --handler lambda.handler --use-s3-bucket case-expense-app-deployments-test --s3-key claudiajs/file.zip --memory 256 --update-env-from-json ./env-variables.json --timeout 60 --version test",
"upload:local:env": "aws s3 cp .env s3://case-expense-app-resources-local/.env --sse",
"upload:dev:claudia": "aws s3 cp claudia.json s3://case-expense-app-resources-dev/claudia.json --sse",
"upload:dev:env": "aws s3 cp .env s3://case-expense-app-resources-dev/.env --sse",
"upload:prod:claudia": "aws s3 cp claudia.json s3://case-consulting-expense-app-resources-prod/claudia.json --sse",
"upload:prod:env": "aws s3 cp .env s3://case-consulting-expense-app-resources-prod/.env --sse",
"upload:test:claudia": "aws s3 cp claudia.json s3://case-expense-app-resources-test/claudia.json --sse",
"upload:test:env": "aws s3 cp .env s3://case-expense-app-resources-test/.env --sse",
"validate": "npm ls"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=10.5.0"
},
"dependencies": {
"@aws-sdk/client-comprehend": "3.988.0",
"@aws-sdk/client-dynamodb": "3.988.0",
"@aws-sdk/client-lambda": "3.988.0",
"@aws-sdk/client-rds-data": "3.988.00",
"@aws-sdk/client-s3": "3.988.0",
"@aws-sdk/client-secrets-manager": "3.988.0",
"@aws-sdk/client-ses": "3.988.0",
"@aws-sdk/client-sns": "3.988.0",
"@aws-sdk/client-textract": "3.988.0",
"@aws-sdk/credential-providers": "3.988.0",
"@aws-sdk/lib-dynamodb": "3.988.0",
"@aws-sdk/s3-request-presigner": "3.988.0",
"atob": "2.1.2",
"aws-serverless-express": "3.4.0",
"axios": "1.13.5",
"axios-oauth-client": "2.2.0",
"body-parser": "2.2.2",
"cookie-parser": "1.4.7",
"cors": "2.8.6",
"dayjs": "1.11.19",
"dotenv": "17.2.4",
"express": "4.22.1",
"express-jwt": "8.5.1",
"got": "14.6.6",
"jwks-rsa": "3.2.2",
"lodash": "4.17.23",
"metadata-scraper": "0.2.61",
"morgan": "1.10.1",
"multer": "2.0.2",
"multer-s3": "3.0.1",
"papaparse": "5.5.3",
"pm2": "6.0.14",
"pug": "3.0.3",
"qs": "6.14.2",
"readline-sync": "1.4.10"
},
"devDependencies": {
"acorn": "8.15.0",
"aws-sdk-client-mock": "4.1.0",
"claudia": "git+https://github.com/claudiajs/claudia.git#pull/230/head",
"eslint": "9.39.2",
"jasmine": "5.13.0",
"nodemon": "3.1.11",
"nyc": "17.1.0",
"precommit-hook": "3.0.0"
},
"pre-commit": [
"validate",
"eslint",
"test"
]
}