-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
42 lines (42 loc) · 2.03 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
{
"name": "amazon-rekognition-ppe",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "npm run webui-build && npm run cfn-build && npm run webui-package",
"cfn-build": "npm run cfn-ensure-dist && cfn-flip -c -n -l demo/src/cfn/template.yaml templates/template.yaml && npm run cfn-lambdas-dist && npm run cfn-copy-lambda",
"cfn-copy-lambda": "cp -R demo/src/functions ./backend/",
"cfn-ensure-dist": "if [ ! -d './templates' ]; then mkdir templates; fi",
"cfn-lambdas-dist": "if [ ! -d './backend/functions/' ]; then mkdir -p backend/functions/; fi",
"cfn-test-local": "npm run cfn-build && rain deploy templates/template.yaml PPE-DEMO -r us-east-1",
"deploy": "npm run zip && aws s3 cp ./`npm run echo-version --silent`.zip s3://$CFN_BUCKET/$npm_package_name/`npm run echo-version --silent`/$npm_package_name.zip",
"echo-version": "echo v`node -e \"console.log(require('node-yaml').readSync('templates/template.yaml').Globals.Function.Environment.Variables.VERSION)\"`",
"postinstall": "cd demo/src/functions/setup && npm i && cd ../detect/ && npm i",
"start": "npm start --workspace demo/src/web-ui",
"tag": "git tag `npm run echo-version --silent`",
"test": "cfn-lint templates/template.yaml && npm t --workspace demo/src/web-ui",
"webui-build": "npm run build --workspace demo/src/web-ui",
"webui-package": "cd demo/src/web-ui/build && zip -r ../../../../frontend.zip .",
"zip": "zip -r `npm run echo-version --silent`.zip -@ < ci/include.lst"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aws-samples/amazon-rekognition-ppe.git"
},
"bugs": {
"url": "https://github.com/aws-samples/amazon-rekognition-ppe/issues"
},
"homepage": "https://github.com/aws-samples/amazon-rekognition-ppe#readme",
"devDependencies": {
"js-yaml": "3.13.1",
"node-yaml": "4.0.1"
},
"workspaces": ["demo/src/web-ui"],
"overrides": {
"nth-check": "2.0.1",
"autoprefixer": "10.4.5",
"[email protected]": {
"[email protected]": "3.0.5"
}
}
}