/
package.json
56 lines (56 loc) · 3.27 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "ergo-one",
"version": "0.0.1",
"description": "",
"scripts": {
"install-python-requirements": "pip install -r requirements.txt",
"create-sam-bucket": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 aws s3 mb s3://$(cat samconfig.toml | grep s3_bucket | cut -d \\\" -f 2)",
"get-stack-output": "scripts/get-stack-output.sh",
"get-api-gateway-url:dev": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 yarn -s get-stack-output ergo-one-dev ApiGatewayUrl",
"get-web-client-bucket-uri:dev": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 yarn -s get-stack-output ergo-one-dev WebClientBucketUri",
"build:backend": "sam build --template infrastructure/template.yaml",
"build:frontend": "cd web-client && yarn build",
"deploy:backend:local": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 sam local start-api --parameter-overrides EnvironmentName=local",
"deploy:backend:dev": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 sam deploy --no-fail-on-empty-changeset --parameter-overrides EnvironmentName=dev",
"deploy:frontend:local": "cd web-client && VUE_APP_API_URL=http://localhost:3000/api yarn serve",
"deploy:frontend:dev": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 aws s3 cp --recursive web-client/dist/ $(yarn -s get-web-client-bucket-uri:dev)",
"build-and-deploy:backend:local": "yarn build:backend && yarn deploy:backend:local",
"build-and-deploy:frontend:local": "yarn deploy:frontend:local",
"build-and-deploy:backend:dev": "yarn build:backend && yarn deploy:backend:dev",
"build-and-deploy:frontend:dev": "cross-env VUE_APP_API_URL=\"$(yarn -s get-api-gateway-url:dev)/api\" yarn build:frontend && yarn deploy:frontend:dev",
"logs": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 sam logs --stack-name ${STACK_NAME} -n ${LAMBDA_NAME}",
"logs:RootLambda": "cross-env STACK_NAME=ergo-one-dev LAMBDA_NAME=RootLambda yarn logs",
"logs:AuthenticateLambda": "cross-env STACK_NAME=ergo-one-dev LAMBDA_NAME=AuthenticateLambda yarn logs",
"logs:GetAnamneseLambda": "cross-env STACK_NAME=ergo-one-dev LAMBDA_NAME=GetAnamneseLambda yarn logs",
"test:backend:local": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 BASE_URL=http://localhost:3000 jest e2e-tests/",
"test:backend:dev": "cross-env AWS_PROFILE=ergo-one-developer AWS_REGION=us-central-1 BASE_URL=$(yarn -s get-api-gateway-url:dev) jest e2e-tests/",
"test:backend:unit": "jest api/",
"lint:frontend": "cd web-client && yarn lint"
},
"repository": {
"type": "git",
"url": "ssh://git@code.symzo.be:2222/alex.derman/ergo-one.git"
},
"author": "Alexandre D'Erman",
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.656.0",
"cookie": "^0.4.1",
"marked": "^1.0.0",
"marked-forms": "^3.1.0",
"throttle-debounce": "^2.1.0",
"vue-feather-icons": "^5.0.0"
},
"devDependencies": {
"@types/marked": "^0.7.4",
"@types/throttle-debounce": "^2.1.0",
"@types/vue-feather-icons": "^5.0.0",
"aws-sdk-mock": "^5.1.0",
"cross-env": "^7.0.2",
"jest": "^25.3.0",
"jest-extended": "^0.11.5",
"prettier": "^2.0.4",
"superagent": "^5.2.2",
"url-join": "^4.0.1"
}
}