generated from shoNagai/apollo-server-micro-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
87 lines (87 loc) · 2.67 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
{
"name": "apollo-server-with-firestore",
"version": "1.0.0",
"main": "index.js",
"author": "sho nagai <[email protected]>",
"description": "Getting started with GraphQL on apollo-server-micro 🚀",
"license": "MIT",
"homepage": "https://github.com/shoNagai/apollo-server-with-firestore#readme",
"repository": {
"type": "git",
"url": "https://github.com/shoNagai/apollo-server-with-firestore"
},
"bugs": {
"url": "https://github.com/shoNagai/apollo-server-with-firestore/issues"
},
"keywords": [
"typescript",
"micro",
"apollo-server",
"microservices"
],
"private": false,
"scripts": {
"start": "micro ./build/index.js",
"dev": "GOOGLE_APPLICATION_CREDENTIALS=./.key/service_account.json PROJECT_ID=apollo-server-with-firestore node -r ts-node/register node_modules/.bin/micro-dev ./src/index.ts",
"build": "tsc -b",
"format": "prettier . -w",
"lint": "eslint src/**/*.ts",
"lint:fix": "yarn lint --fix",
"generate": "graphql-codegen",
"test": "FIRESTORE_EMULATOR_HOST='localhost:8080' NODE_ENV=test jest --config ./jest.config.ts",
"test:local": "firebase use apollo-server-with-firestore && PROJECT_ID=apollo-server-with-firestore yarn test",
"test:ci": "firebase emulators:exec --project $PROJECT_ID 'yarn test'",
"emulators:start": "yarn build && firebase emulators:start"
},
"dependencies": {
"apollo-server-micro": "^2.21.0",
"firebase-admin": "^9.5.0",
"graphql": "^15.5.0",
"graphql-import": "^1.0.2",
"graphql-tools": "^7.0.4",
"micro": "^9.3.4",
"microrouter": "^3.1.3"
},
"devDependencies": {
"@firebase/testing": "^0.20.11",
"@graphql-codegen/cli": "^1.20.1",
"@graphql-codegen/typescript": "^1.20.0",
"@graphql-codegen/typescript-resolvers": "^1.18.2",
"@types/graphql": "^14.5.0",
"@types/jest": "^26.0.20",
"@types/micro": "^7.3.3",
"@types/microrouter": "^3.1.1",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"apollo-server-testing": "^2.21.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"firebase-tools": "^9.5.0",
"husky": "^5.0.9",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"micro-dev": "^3.0.0",
"prettier": "^2.2.1",
"ts-jest": "^26.5.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.5"
},
"prettier": {
"semi": true,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "prettier ./src -c"
}
},
"lint-staged": {
"**/*.ts": [
"eslint --fix"
]
}
}