-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
90 lines (90 loc) · 4.72 KB
/
package.json
File metadata and controls
90 lines (90 loc) · 4.72 KB
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
{
"name": "graphql-serverless",
"version": "1.0.1",
"description": "",
"main": "app.ts",
"scripts": {
"start": "node -r dotenv/config -r ts-node/register ./src/app.ts",
"lint": "tslint ./src/**/*.ts",
"audit": "npm-audit-ci-wrapper -p -t moderate",
"clean": "rimraf dist",
"compile": "tsc --project .",
"webpack": "npx webpack --mode production",
"git-describe": "node -r ts-node/register ./util/git-describe.ts ./dist/.git-info",
"build:webpack": "npm run clean && mkdir dist && npm run git-describe && npm run webpack && (cpx package.json dist & cpx package-lock.json dist & cpx ./config/**/*.* dist/config & cpx ./src/**/*.{graphql,json} dist/src & cpx ./test/**/*.{graphql,json,yml,csv,ps1} dist/test)",
"build": "npm run clean && mkdir dist && npm run git-describe && npm run compile && (cpx package.json dist & cpx package-lock.json dist & cpx ./config/**/*.* dist/config & cpx ./src/**/*.{graphql,json} dist/src & cpx ./test/**/*.{graphql,json,yml,csv,ps1} dist/test) && cd dist && npm install --production && cd ..",
"run-built": "cd dist && node -r dotenv/config ./src/app.js dotenv_config_path=../.env",
"package:zip": "cd dist && rimraf ../package.zip && bestzip ../package.zip *",
"package:cf": "cpx template.yaml dist && cd dist && aws cloudformation package --template-file template.yaml --output-template-file ../serverless-output.yaml --s3-bucket curry.laksa.lambda.graphql",
"deploy:cf": "aws cloudformation deploy --template-file serverless-output.yaml --capabilities CAPABILITY_IAM --stack-name graphql-serverless --parameter-overrides EnvName=test",
"package-deploy": "npm run build:webpack && npm run package:cf && npm run deploy:cf",
"delete-stack": "aws cloudformation delete-stack --stack-name graphql-serverless",
"batch-load-movies": "node -r dotenv/config -r ts-node/register ./util/batch-load.ts ../data/moviedata.json",
"generate-perf-test-data": "json2csv -i data/moviedata.json -f title,year -o test/performance/data/movies.csv",
"run-then-test": "concurrently -k -s first \"npm start\" \"wait-on tcp:3000 -t 15000 && npm run test\"",
"test": "npx mocha --no-timeouts --colors -r dotenv/config -r ts-node/register test/**/*.spec.ts",
"test:unit": "npx mocha --no-timeouts --colors -r ts-node/register test/unit/**/*.spec.ts",
"test:integration": "npx mocha --no-timeouts --colors -r ts-node/register test/integration/**/*.spec.ts",
"perf-test": "dotenv -e test/performance/.env -- artillery -o test/performance/results/output.json run test/performance/artillery.yml",
"perf-report": "artillery report test/performance/results/output.json -o test/performance/results/report.html",
"postversion": "git add package.json && git push && git push --tags"
},
"dependencies": {
"@aws/dynamodb-data-mapper": "^0.7.3",
"@aws/dynamodb-data-mapper-annotations": "^0.7.3",
"@aws/dynamodb-data-marshaller": "^0.7.3",
"@aws/dynamodb-expressions": "^0.7.3",
"@types/lodash": "^4.14.137",
"apollo-server": "^2.8.1",
"apollo-server-core": "^2.8.1",
"apollo-server-env": "^2.4.3",
"apollo-server-lambda": "^2.8.1",
"aws-sdk": "^2.512.0",
"config": "^3.2.2",
"dataloader": "^1.4.0",
"graphql": "^14.4.2",
"graphql-extensions": "^0.9.1",
"graphql-tag": "^2.10.1",
"inversify": "^5.0.1",
"lodash": "^4.17.15",
"logform": "^2.1.2",
"reflect-metadata": "^0.1.13",
"typeorm": "^0.2.18",
"uuid": "^3.3.3",
"winston": "^3.2.1",
"winston-transport": "^4.3.0",
"yamlify-object": "^0.5.1",
"yamlify-object-colors": "^1.0.3"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.31",
"@types/chai": "^4.2.0",
"@types/config": "0.0.34",
"@types/dotenv": "^6.1.1",
"@types/mocha": "^5.2.7",
"@types/uuid": "^3.4.5",
"approvals": "^3.0.5",
"artillery": "^1.6.0-24",
"axios": "^0.19.0",
"bestzip": "^2.1.4",
"chai": "^4.2.0",
"concurrently": "^4.1.2",
"cpx": "^1.5.0",
"dotenv-cli": "^2.0.1",
"git-describe": "^4.0.4",
"json2csv": "^4.5.2",
"mocha": "^6.2.0",
"npm-audit-ci-wrapper": "^2.3.0",
"prettier": "^1.18.2",
"ts-loader": "^6.0.4",
"ts-node": "^8.3.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.5.3",
"wait-on": "^3.3.0",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.7"
}
}