-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
63 lines (63 loc) · 4.06 KB
/
package.json
File metadata and controls
63 lines (63 loc) · 4.06 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
{
"name": "website-api",
"version": "2.3.0",
"private": true,
"description": "Serverless back-end for Case Consulting website",
"homepage": "https://www.consultwithcase.com/",
"scripts": {
"build": "sam build",
"build:invoke:apply": "npm run build && npm run invoke:apply",
"build:invoke:upload": "npm run build && npm run invoke:upload",
"clean": "rm -rf .aws-sam .nyc_output coverage",
"deploy:dev": "npm run build && npm run package && npm run deploy:packaged:dev",
"deploy:test": "npm run build && npm run package && npm run deploy:packaged:test",
"deploy:prod": "npm run build && npm run package:prod && npm run deploy:packaged:prod",
"deploy:packaged:dev": "sam deploy --template-file packaged.yaml --parameter-overrides Stage=dev ClientProtocol=http ClientDomain=localhost:8080 DestinationEmail=zramsis@consultwithcase.com,logburn@consultwithcase.com --stack-name website-api-dev --capabilities CAPABILITY_IAM --region us-east-1",
"deploy:packaged:test": "sam deploy --template-file packaged.yaml --parameter-overrides Stage=test ClientDomain=test-web.consultwithcase.com --stack-name website-api-test --capabilities CAPABILITY_IAM --region us-east-1",
"deploy:packaged:prod": "sam deploy --template-file packaged.yaml --parameter-overrides Stage=prod ClientDomain=consultwithcase.com DestinationEmail=afarmer@consultwithcase.com,zramsis@consultwithcase.com,logburn@consultwithcase.com,cvincent@consultwithcase.com,abendele@consultwithcase.com --stack-name website-api-prod --capabilities CAPABILITY_IAM --region us-east-1 --profile prod",
"download:backend-testing:env": "aws s3 cp s3://case-consulting-website-code-dev/.backend-testing-env .backend-testing-env",
"deploy:support:test": "npm run package:support && aws cloudformation deploy --template-file packaged-support.yaml --stack-name case-website-support-test --parameter-overrides Stage=test",
"deploy:support:prod": "npm run package:support && aws cloudformation deploy --template-file packaged-support.yaml --stack-name case-website-support-prod --parameter-overrides Stage=prod",
"eslint": "npx eslint",
"invoke:apply": "sam local invoke ApplyFunction --env-vars env.json --event events/apply.json",
"invoke:upload": "sam local invoke UploadFunction --env-vars env.json --event events/upload.json",
"lint": "npm run eslint",
"outdated": "npm outdated; npm run outdated:apply; npm run outdated:upload; npm run outdated:workable",
"outdated:apply": "cd apply && npm outdated",
"outdated:upload": "cd upload && npm outdated",
"outdated:workable": "cd workable && npm outdated",
"package": "sam package --s3-bucket case-consulting-website-code-dev --output-template-file packaged.yaml",
"package:prod": "sam package --s3-bucket case-consulting-website-code-prod --output-template-file packaged.yaml --profile prod",
"package:support": "aws cloudformation package --template-file support.yaml --s3-bucket case-consulting-website-code-dev --output-template-file packaged-support.yaml",
"precommit": "npm run validate && npm run eslint && npm run test",
"reinstall": "npm install && npm ci && npm run reinstall:apply && npm run reinstall:upload && npm run reinstall:workable",
"reinstall:apply": "cd apply && npm install && npm ci",
"reinstall:upload": "cd upload && npm install && npm ci",
"reinstall:workable": "cd workable && npm install && npm ci",
"tail:dev:apply": "sam logs -n ApplyFunction --stack-name website-api-dev --tail",
"tail:dev:upload": "sam logs -n UploadFunction --stack-name website-api-dev --tail",
"test": "jasmine",
"test-coverage": "nyc --reporter=text --reporter=html --exclude=spec/** jasmine",
"testLambdaLocal": "node testLocalScript.js",
"validate": "npm ls"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=10.5.0"
},
"dependencies": {
"dotenv": "17.2.4"
},
"devDependencies": {
"@eslint/js": "9.39.2",
"eslint": "9.39.2",
"jasmine": "5.13.0",
"lodash": "4.17.23",
"nyc": "17.1.0",
"precommit-hook": "3.0.0"
},
"pre-commit": [
"validate",
"test"
]
}