This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
51 lines (51 loc) · 4.15 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
{
"name": "amazon-transcribe-news-media-analysis",
"private": true,
"scripts": {
"backend": "npm run backend-package && npm run backend-deploy",
"backend-package": "cd src/backend/transcriber/ && zip -r ../../../transcriber.zip Dockerfile pom.xml src/",
"build": "npm run webui-build && npm run lambda-build && npm run cfn-build && npm run backend-package && npm run webui-package",
"cfn-build": "npm run cfn-dist && cfn-flip -c -n -l src/cfn/template.yaml templates/template.yaml && npm run cfn-lambdas-dist && npm run cfn-copy-lambdas",
"cfn-copy-lambdas": "npm run cfn-copy-lambdas-aws_sdk && npm run cfn-copy-lambdas-fp && npm run cfn-copy-lambdas-orchestrator && npm run cfn-copy-lambdas-setup",
"cfn-copy-lambdas-aws_sdk": "cp -R src/backend/functions/layers/aws_sdk ./backend/functions/layers",
"cfn-copy-lambdas-fp": "cp -R src/backend/functions/layers/fp ./backend/functions/layers",
"cfn-copy-lambdas-orchestrator": "cp -R src/backend/functions/orchestrator/dist ./backend/functions/orchestrator/",
"cfn-copy-lambdas-setup": "cp -R src/backend/functions/setup/dist ./backend/functions/setup/",
"cfn-dist": "if [ ! -d './templates' ]; then mkdir templates; fi",
"cfn-lambdas-dist": "npm run cfn-lambdas-dist-aws_sdk && npm run cfn-lambdas-dist-fp && npm run cfn-lambdas-dist-orchestrator && npm run cfn-lambdas-dist-setup",
"cfn-lambdas-dist-aws_sdk": "if [ ! -d './backend/functions/layers/aws_sdk' ]; then mkdir -p backend/functions/layers/aws_sdk; fi",
"cfn-lambdas-dist-fp": "if [ ! -d './backend/functions/layers/fp' ]; then mkdir -p backend/functions/layers/fp; fi",
"cfn-lambdas-dist-orchestrator": "if [ ! -d './backend/functions/orchestrator/' ]; then mkdir -p backend/functions/orchestrator/; fi",
"cfn-lambdas-dist-setup": "if [ ! -d './backend/functions/setup/' ]; then mkdir -p backend/functions/setup/; fi",
"cfn-test": "yamllint -d '{extends: default, rules: {line-length: disable}}' src/cfn/template.yaml && cfn-lint src/cfn/template.yaml",
"cfn-test-local": "npm run lambda-build && npm run cfn-build && aws cloudformation package --template-file templates/template.yaml --output-template-file templates/packaged.yaml --s3-bucket $TEST_BUCKET && aws cloudformation deploy --template-file templates/packaged.yaml --stack-name amazon-transcribe-news-media-analysis --capabilities CAPABILITY_IAM",
"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)\"`",
"lambda-build": "npm run lambda-build-layers && npm run lambda-build-orchestrator && npm run lambda-build-setup",
"lambda-build-layers": "cd src/backend/functions/layers && npm run build",
"lambda-build-orchestrator": "cd src/backend/functions/orchestrator && npm run build",
"lambda-build-setup": "cd src/backend/functions/setup && npm run build",
"lambda-clean": "rm -rf src/backend/functions/layers/aws_sdk/nodejs && rm -rf src/backend/functions/layers/fp/nodejs",
"orch-test": "cd src/backend/functions/orchestrator && npm t",
"postinstall": "cd src/frontend && npm i && cd ../backend/functions/setup && npm i && cd ../orchestrator && npm i",
"start": "cd src/frontend && npm start",
"tag": "git tag `npm run echo-version --silent`",
"test": "npm run cfn-test && npm run webui-test && npm run orch-test",
"webui-build": "cd src/frontend && npm run build",
"webui-package": "cd src/frontend/build && zip -r ../../../frontend.zip .",
"webui-test": "cd src/frontend && npm t",
"zip": "zip -r `npm run echo-version --silent`.zip -@ < ci/include.lst"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aws-samples/amazon-transcribe-news-media-analysis.git"
},
"bugs": {
"url": "https://github.com/aws-samples/amazon-transcribe-news-media-analysis/issues"
},
"homepage": "https://github.com/aws-samples/amazon-transcribe-news-media-analysis#readme",
"devDependencies": {
"js-yaml": "3.13.1",
"node-yaml": "4.0.1"
}
}