-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
109 lines (109 loc) · 5.66 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
{
"name": "event-forwarder",
"version": "1.0.0",
"author": "Aravind Vadamalaimuthu",
"bin": {
"event-forwarder": "bin/event-forwarder.js"
},
"config": {
"stackName": "EventForwarderStack",
"cfnTemplateProcessor": "./cdk.out/EventForwarderStack.template.json",
"remoteTemplate": "./cdk.out/RemoteEventRouterStack-ap-south-1-456.template.json"
},
"scripts": {
"postinstall": "(cd layers/powertoolsSDK/nodejs && npm install) && (cd layers/slackSDK/nodejs && npm install) && (cd layers/xraySDK/nodejs && npm install) && (cd layers/xray/nodejs && npm install) ",
"build:cdk": "tsc --noEmit",
"build:test": "cross-env NODE_ENV=test npm run wp:dev && npm run build:cdk:test",
"build:prod": "cross-env NODE_ENV=production npm run wp:prod && npm run build:cdk:test",
"build": "npm run wp:dev && npm run build:cdk:test",
"build:cdk:test": "cross-env NODE_ENV=test npm run build:cdk && npm run test",
"watch": "tsc --noEmit -w",
"test": "jest",
"cdk": "npx cdk",
"lint": "npm run build:ts && npx eslint --no-eslintrc -c .eslintrc.json . --ext .ts --fix",
"wp:dev": "cross-env MODE=development webpack",
"wp:prod": "cross-env MODE=production webpack",
"cdk:boot": "cdk bootstrap --profile av",
"cdk:synth": "npm run build && cdk synth EventForwarderStack --profile=av",
"cdk:synth:ci": "npm run build && cdk synth",
"cdk:synth:all": "npm run build && cdk synth",
"cdk:diff": "npm run build && cdk diff EventForwarderStack --profile=av",
"cdk:deploy": "npm run build && cdk deploy EventForwarderStack --verbose --profile=av --hotswap",
"cdk:destroy": "npm run build && cdk destroy EventForwarderStack --verbose --profile=av",
"cdk:synth:data": "npm run build && cdk synth EventForwarderDataStack --profile=av",
"cdk:diff:data": "npm run build && cdk diff EventForwarderDataStack --profile=av",
"cdk:deploy:data": "npm run build && cdk deploy EventForwarderDataStack --verbose --profile=av --hotswap",
"cdk:destroy:data": "npm run build && cdk destroy EventForwarderDataStack --verbose --profile=av",
"cdk:deploy:remotes": "npm run build && cdk deploy RemoteEventRouterStack* --verbose --profile=av-s --hotswap",
"cdk:destroy:remotes": "npm run build && cdk destroy RemoteEventRouterStack* --verbose --profile=av-s",
"cdk:synth:remotes": "npm run build && cdk synth RemoteEventRouterStack* --profile=av-s",
"cdk:diff:remotes": "npm run build && cdk diff RemoteEventRouterStack* --profile=av-s",
"wp:stats": "cross-env MODE=development npx webpack --json > stats.json",
"wp:analyze": "npm run wp:stats && npx webpack-bundle-analyzer stats.json",
"sam:b:1": "sam build --docker-network cloud -t $npm_package_config_cfnTemplateProcessor --profile av --region ap-south-1 ",
"sam:b:2": "sam build --docker-network cloud -t $npm_package_config_remoteTemplate --profile av-s --region ap-south-1 ",
"sam:i": "sam local invoke $npm_config_fname --docker-network cloud -e $npm_config_event | jq .",
"sam:i:debug": "sam local invoke $npm_config_fname --docker-network cloud -d 9999 -e $npm_config_event --log-file logs/sam-debug-logs.txt --debug | jq .",
"sam:sync:1": "sam sync --stack-name EventForwarderStack --watch -t $npm_package_config_cfnTemplateProcessor --log-file ./sam-debug-logs.txt --profile av --region ap-south-1",
"sam:sync:2": "sam sync --stack-name RemoteEventRouterStack* --watch -t $npm_package_config_cfnTemplateForwarder --profile av-s --region ap-south-1",
"d:1:func1": "npm run cdk:synth:all && npm run sam:b:1 && npm run sam:i:debug --fname=stackEventProcessor",
"d:1:func2": "npm run cdk:synth:all && npm run sam:b:1 && npm run sam:i:debug --fname=failedMessageLogger",
"d:2:func2": "npm run cdk:synth:all && npm run sam:b:2 && npm run sam:i:debug --fname=failedMessageAggregator",
"t:1:func1": "npm run sam:i --fname=stackEventProcessor",
"t:1:func2": "npm run sam:i --fname=failedMessageLogger",
"t:2:func1": "npm run sam:i --fname=failedMessageAggregator",
"t:1:1": "npm run sam:b:1 && npm run t:1:func1",
"t:1:2": "npm run sam:b:1 && npm run t:1:func2",
"t:2:1": "npm run sam:b:2 && npm run t:2:func1"
},
"devDependencies": {
"@aws-lambda-powertools/commons": "^1.2.1",
"@aws-lambda-powertools/tracer": "^1.2.1",
"@middy/core": "^3.3.0",
"@slack/types": "^2.7.0",
"@slack/webhook": "^6.1.0",
"@types/aws-lambda": "^8.10.102",
"@types/config": "^3.3.0",
"@types/jest": "^26.0.24",
"@types/node": "10.17.27",
"@types/node-fetch": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"aws-cdk": "^2.42.0",
"cross-env": "^7.0.3",
"eslint": "^8.22.0",
"eslint-config-standard-with-typescript": "^22.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.1",
"jest": "^26.6.3",
"node-fetch": "^2.6.7",
"nth-check": "^2.0.1",
"terser-webpack-plugin": "^5.3.5",
"ts-jest": "^26.5.6",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-node-externals": "^3.0.0"
},
"dependencies": {
"aws-cdk-lib": "^2.42.0",
"aws-sdk": "^2.1199.0",
"config": "^3.3.7",
"constructs": "^10.1.80",
"data-uri-to-buffer": "^4.0.0",
"react-scripts": "^2.1.3",
"source-map-support": "^0.5.21"
},
"description": "This is a blank project for CDK development with TypeScript.",
"main": "bin/event-forwarder.ts",
"directories": {
"lib": "lib",
"test": "test"
},
"license": "GPL-3.0-or-later",
"types": "./bin/event-forwarder.d.ts"
}