-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
98 lines (98 loc) · 5.13 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
{
"name": "aegis-host",
"version": "1.2.0",
"description": "Federated Application Host",
"installConfig": {
"pnp": false
},
"config": {
"s3BucketName": "aegisserverless2",
"region": "us-east-1",
"cloudFormationStackName": "ServerlessExpressHttpApiStack",
"functionName": "",
"domain": ""
},
"repository": {
"url": "https://github.com/module-federation/aegis-host"
},
"scripts": {
"build": "yarn clean && webpack --config webpack.config.js",
"test": "jest",
"transpile": "babel src --out-dir dist",
"start": "node --title aegis --trace-warnings src/bootstrap.js",
"demo": "open http://localhost",
"reload": "curl -s http://localhost/reload",
"stop": "PID=$(lsof -P -i | grep aegis | grep LISTEN | awk '{print $2}'); kill $PID",
"restart": "yarn build && yarn start",
"webswitch": "cd ../aegis && export SWITCH=true && export PORT=8888 && ./start.sh ",
"gen-keys": "node cert/mesh/keys.js",
"login-status": "echo \"/workspace/aegis-host/status.sh\" >> ~/.aegis && echo \". ~/.aegis\"",
"cmd-log": "echo \"alias log='view ~/aegis-host/public/aegis.log'\" >> ~/.aegis",
"cmd-tail": "echo \"alias tail='tail -f ~/aegis-host/public/aegis.log'\" >> ~/.aegis",
"cmd-start": "echo \"alias start='/workspace/aegis-host/start.sh'\" >> ~/.aegis",
"cmd-status": "echo \"alias status='~/aegis-host/status.sh'\" >> ~/.aegis",
"cmd-stop": "echo \"alias stop='/workspace/aegis-host/stop.sh'\" >> ~/.aegis",
"cmd-env": "cp /workspace/aegis-host/dotenv.example ~/aegis-host/.env",
"cmd-backupcfg": "cp public/aegis.config.json ../",
"cmd-restorecfg": "cp ../aegis.config.json public/aegis.config.json",
"cmd-backupremote": "cp ~/aegis-host/webpack/remote-entries/index.js ~",
"cmd-restoreremote": "cp ~/index.js ~/aegis-host/webpack/remote-entries",
"cmd-backup": "echo \"alias backup='yarn cmd-backupcfg && yarn cmd-backupremote'\" >> ~/.aegis",
"cmd-restore": "echo \"alias restore='yarn cmd-restorecfg && yarn cmd-restoreremote'\" >> ~/.aegis",
"stats": "git ls-files | xargs wc -l",
"deploy-lambda": "yarn clean npm run transpile && webpack --config webpack.config.js --env serverless && serverless package && serverless deploy",
"clean": "rimraf dist",
"test-mocha": "mocha --recursive -r esm",
"demo-ssl": "open https://localhost:443",
"demo-aws": "open https://aegis.module-federation.org",
"refresh-token": "./accessToken.sh",
"serverless-deploy": "serverless deploy",
"serverless-invoke-local-api-post": "serverless invoke local --function aegis --path ./test/lambda/apigateway-post.json",
"serverless-invoke-local-api-getid": "serverless invoke local --function aegis --path ./test/lambda/apigateway-getid.json",
"serverless-invoke-local-html": "serverless invoke local --function html --path ./test/lambda/lambda-html.json",
"call-aegis-on-lambda": "aws lambda invoke --function arn:aws:lambda:us-east-1:758072746799:function:aegis-dev-aegis --payload file://test/lambda/lambda-post.json lambda.out --cmd-binary-format raw-in-base64-out && cat lambda.out",
"create-bucket": "cross-var aws s3 mb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"delete-bucket": "cross-var aws s3 rb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"aws-package": "cross-var aws cloudformation package --template ./sam-template.yaml --s3-bucket $npm_package_config_s3BucketName --output-template sam-template.packaged.yaml --region $npm_package_config_region",
"aws-deploy": "cross-var aws cloudformation deploy --template-file sam-template.packaged.yaml --stack-name $npm_package_config_cloudFormationStackName --capabilities CAPABILITY_IAM --region $npm_package_config_region --parameter-overrides DomainName=$npm_package_config_domain",
"aws-package-deploy": "npm run build && npm run package && npm run deploy",
"aws-delete-stack": "cross-var aws cloudformation delete-stack --stack-name $npm_package_config_cloudFormationStackName --region $npm_package_config_region",
"aws-setup": "npm install && (cross-var aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy"
},
"author": "Tyson Midboe",
"license": "Apache-2.0",
"dependencies": {
"@module-federation/aegis": "1.4.2-beta",
"bufferutil": "^4.0.6",
"cors": "^2.8.5",
"dotenv": "16.0.3",
"express": "^4.18.1",
"express-attack": "^0.5.3",
"helmet": "^6.0.1",
"path-to-regexp": "^6.2.1",
"pino": "^8.5.0",
"pretty": "^2.0.0",
"pretty-cli": "^0.0.14",
"regenerator-runtime": "^0.13.9",
"require-fresh": "^1.1.0",
"rimraf": "^3.0.2",
"rustwasmc": "^0.1.29",
"ws": "^8.8.0",
"yarn": "^1.22.19"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.15.5",
"babel-loader": "^8.2.2",
"chalk": "^2.4.2",
"cross-var": "^1.1.0",
"esm": "^3.2.25",
"express-cli": "0.0.1",
"jest": "^27.0.6",
"mocha": "^8.2.0",
"split": "^1.0.1",
"webpack": "5.47.1",
"webpack-cli": "^4.10.0",
"webpack-node-externals": "^3.0.0"
}
}