-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
93 lines (93 loc) · 2.82 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
{
"name": "api",
"description": "Books API",
"version": "0.0.1",
"dependencies": {
"@entria/graphql-mongoose-loader": "^1.1.1",
"apollo-server-koa": "^1.3.2",
"babel-polyfill": "^6.26.0",
"bcryptjs": "^2.4.3",
"dataloader": "^1.4.0",
"dotenv-safe": "^4.0.4",
"fs-extra-promise": "^1.0.1",
"graphql": "^0.13.1",
"graphql-currency-scalars": "^0.0.1",
"graphql-playground-middleware": "^1.1.2",
"graphql-relay": "^0.5.4",
"graphql-subscriptions": "^0.5.8",
"idx": "^2.3.0",
"isomorphic-fetch": "^2.2.1",
"jsonwebtoken": "^8.1.0",
"kcors": "^2.2.1",
"koa": "^2.5.0",
"koa-bodyparser": "^4.2.0",
"koa-compose": "^4.0.0",
"koa-convert": "^1.2.0",
"koa-graphql": "^0.7.5",
"koa-graphql-batch": "^1.1.0",
"koa-logger": "^3.1.0",
"koa-router": "^7.4.0",
"mongoose": "^5.0.8",
"rimraf": "^2.6.2",
"subscriptions-transport-ws": "^0.9.6",
"yup": "^0.27.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.2",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-stage-0": "^6.24.1",
"eslint": "^4.14.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-flowtype": "^4.2.0",
"eslint-plugin-import": "^2.8.0",
"esm": "^3.0.5",
"flow-bin": "^0.104.0",
"husky": "^0.14.3",
"jest": "22.4.2",
"jest-cli": "22.4.2",
"lint-staged": "6.0.0",
"nodemon": "^1.17.1",
"prettier": "^1.11.1"
},
"jest": {
"testEnvironment": "node",
"testPathIgnorePatterns": [ "/node_modules/", "./dist" ],
"coverageReporters": [ "lcov", "html" ],
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"moduleNameMapper": {
"^mongoose$": "<rootDir>/node_modules/mongoose"
},
"setupFiles": [ "babel-polyfill" ]
},
"license": "MIT",
"main": "index.js",
"lint-staged": {
"*.js": [
"prettier --write --single-quote true --trailing-comma all --print-width 120",
"git add"
]
},
"scripts": {
"build": "npm run clear && babel src --ignore *.spec.js --out-dir dist --copy-files",
"clear": "rimraf ./dist",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"lint": "eslint src/**",
"precommit": "lint-staged",
"start": "yarn build && node dist/index.js",
"test": "jest --coverage --forceExit --runInBand",
"test:watch": "NODE_ENV=test && jest --watch --coverage",
"copy-to-project": "babel-node ./scripts/copySchemaToProject.js",
"update-schema": "babel-node ./scripts/updateSchema.js && npm run copy-to-project",
"graphql": "nodemon src/index.js --exec babel-node",
"seed": "babel-node ./src/seeds/bookSeed.js"
}
}