-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
118 lines (118 loc) · 5.02 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
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
{
"dependencies": {
"@aws-amplify/auth": "^3.4.16",
"amazon-cognito-identity-js": "^4.5.7",
"aws-lambda-cors": "0.0.2",
"aws-sdk": "^2.824.0",
"axios": "^0.21.1",
"crypto": "^1.0.1",
"serverless": "^2.16.1",
"serverless-cloudformation-sub-variables": "^0.2.1",
"serverless-dynamodb-client": "0.0.2",
"serverless-pseudo-parameters": "^2.5.0",
"swagger-ui-dist": "^3.38.0",
"uuid": "^8.3.2"
},
"scripts": {
"redeploy-all": "run-s remove:all deploy deploy:gateway",
"deploy": "run-s prepublish deploy:dynamodb deploy:all-gateway",
"deploy:all-gateway": "run-s build:functions-yaml deploy:lambda deploy:gateway",
"deploy:dynamodb": "sls deploy -v -c serverless-dynamodb.yml",
"deploy:lambda": "sls deploy -v -c serverless-lambda.yml",
"deploy:gateway": "run-s build:functions-yaml build:swagger-yaml deploy:gateway-force",
"deploy:gateway-force": "sls deploy -v --force",
"build:swagger-yaml": "util/build_swagger_yml.sh",
"build:functions-yaml": "util/build_function_template.sh",
"createAdmin": "util/create_admin.sh",
"confirmAdmin": "util/confirm_admin.sh",
"openSwaggerUI": "util/open_swagger-ui.sh",
"prepublish": "tsc",
"dynamodb:start": "sls -c serverless-dynamodb.yml dynamodb start",
"dev": "webpack --mode development",
"build": "webpack --mode production",
"format": "prettier --write 'src/**/*.{ts,js,json}'",
"check-types": "tsc --noEmit",
"eslint": "eslint src/**/*.ts",
"eslint:fix": "eslint src/**/*.ts --fix",
"lint": "run-s eslint check-types format",
"test": "jest --silent=false --runInBand",
"test:e2e": "util/delete_all_cognito_users.sh && jest --silent=false --runInBand test/e2e",
"test:e2e:watch": "jest --watch --silent=false --runInBand test/e2e",
"test:local": "jest --silent=false test/lambda",
"test:local:watch": "jest --watch --silent=false test/lambda",
"local": "run-s build:functions-yaml; sls offline --offline true",
"remove:all": "run-s remove:gateway remove:dynamodb",
"remove:gateway": "sls remove",
"remove:dynamodb": "sls remove -c serverless-dynamodb.yml",
"delete:cognitoUsers": "util/delete_all_cognito_users.sh",
"stg:delete:cognitoUsers": "util/delete_all_cognito_users.sh -s stg",
"stg:deploy": "run-s \"deploy:dynamodb -- --stage stg\" stg:deploy:all-gateway",
"stg:deploy:all-gateway": "run-s build:functions-yaml \"deploy:lambda -- --stage stg\" stg:deploy:gateway",
"stg:deploy:gateway": "run-s build:functions-yaml \"build:swagger-yaml -- --stage stg\" \"deploy:gateway-force -- --stage stg\"",
"stg:redeploy-all": "run-s stg:remove:all stg:deploy stg:deploy:gateway",
"stg:createAdmin": "util/create_admin.sh -s stg",
"stg:confirmAdmin": "util/confirm_admin.sh -s stg",
"stg:test:e2e": "util/delete_all_cognito_users.sh -s stg && JEST_STAGE=\"stg\" jest --silent=false --runInBand test/e2e",
"stg:remove:all": "run-s \"remove:gateway -- --stage stg\" \"remove:dynamodb -- --stage stg\"",
"prd:deploy": "run-s \"deploy:dynamodb -- --stage prd\" prd:deploy:all-gateway",
"prd:deploy:all-gateway": "run-s build:functions-yaml \"deploy:lambda -- --stage prd\" prd:deploy:gateway",
"prd:deploy:gateway": "run-s build:functions-yaml \"build:swagger-yaml -- --stage prd\" \"deploy:gateway-force -- --stage prd\"",
"prd:createAdmin": "util/create_admin.sh -s prd",
"prd:confirmAdmin": "util/confirm_admin.sh -s prd"
},
"name": "remote-patient-monitoring",
"devDependencies": {
"@shelf/jest-dynamodb": "^1.7.0",
"@types/aws-lambda": "^8.10.70",
"@types/jest": "^26.0.20",
"@types/serverless": "^1.78.20",
"@types/swagger-ui-dist": "^3.30.0",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.15.0",
"@typescript-eslint/parser": "^4.15.0",
"clean-webpack-plugin": "^3.0.0",
"cognito-backup": "^2.1.1",
"css-loader": "^5.0.1",
"csv-parse": "^4.15.3",
"eslint": "^7.19.0",
"eslint-config-prettier": "7.2.0",
"fs": "0.0.1-security",
"html-webpack-plugin": "^4.5.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"js2ts": "^1.1.0",
"light-server": "^2.9.1",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "2.2.1",
"serverless-dynamodb-local": "^0.2.39",
"serverless-layers": "^2.3.3",
"serverless-offline": "^6.8.0",
"serverless-plugin-typescript": "^1.1.9",
"serverless-s3-deploy": "^0.9.0",
"serverless-s3-remover": "^0.6.0",
"serverless-scriptable-plugin": "^1.1.0",
"style-loader": "^2.0.0",
"swagger-cli": "^4.0.4",
"swagger-merger": "^1.4.3",
"ts-jest": "^26.4.4",
"ts-loader": "^8.0.13",
"ts-node": "^9.1.1",
"typescript": "^4.2.0-dev.20210108",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.1"
},
"husky": {
"comments": {
"hooks": {
"pre-commit": "lint-staged"
}
}
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.ts": "tsc --noEmit",
"*.{ts,js,json}": "prettier --write"
}
}