-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
42 lines (42 loc) · 2.16 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-custom-labels-demo",
"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 src/cfn/template.yaml templates/template.yaml && npm run cfn-lambdas-dist && npm run cfn-copy-lambda",
"cfn-copy-lambda": "cp -R src/functions/setup ./backend/functions/",
"cfn-ensure-dist": "if [ ! -d './templates' ]; then mkdir templates; fi",
"cfn-lambdas-dist": "if [ ! -d './backend/functions/setup/' ]; then mkdir -p backend/functions/setup/; fi",
"cfn-test-local": "npm run cfn-build && rain deploy templates/template.yaml reko-cl -r eu-west-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",
"dev": "npm run dev --workspace src/web-ui",
"echo-version": "echo v`node -e \"console.log(require('node-yaml').readSync('templates/template.yaml').Globals.Function.Environment.Variables.VERSION)\"`",
"pre-deploy-test": "taskcat -c ci/taskcat.yml --verbose --exclude docs --exclude src --exclude taskcat_outputs",
"postinstall": "cd src/functions/setup && npm i",
"start": "npm start --workspace src/web-ui",
"tag": "git tag `npm run echo-version --silent`",
"test": "npm run webui-test",
"webui-build": "npm run build --workspace src/web-ui",
"webui-package": "cd src/web-ui/build && zip -r ../../../frontend.zip . -x *settings.js",
"webui-test": "npm t --workspace src/web-ui",
"zip": "zip -r `npm run echo-version --silent`.zip -@ < ci/include.lst"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aws-samples/amazon-rekognition-custom-labels-demo.git"
},
"bugs": {
"url": "https://github.com/aws-samples/amazon-rekognition-custom-labels-demo/issues"
},
"homepage": "https://github.com/aws-samples/amazon-rekognition-custom-labels-demo#readme",
"devDependencies": {
"js-yaml": "3.13.1",
"node-yaml": "4.0.1"
},
"workspaces": ["src/web-ui"],
"overrides": {
"nth-check": "2.0.1",
"autoprefixer": "10.4.5"
}
}