forked from graphql-compose/graphql-compose-mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 4.01 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
{
"name": "graphql-compose-mongoose",
"version": "0.0.0-semantically-released",
"description": "Plugin for `graphql-compose` which derive a graphql types from a mongoose model.",
"license": "MIT",
"files": [
"lib",
"node8",
"es",
"mjs"
],
"main": "lib/index.js",
"module": "mjs/index.mjs",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/graphql-compose/graphql-compose-mongoose.git"
},
"keywords": [
"graphql",
"compose",
"graphql-compose",
"mongoose",
"mongodb"
],
"bugs": {
"url": "https://github.com/graphql-compose/graphql-compose-mongoose/issues"
},
"homepage": "https://github.com/graphql-compose/graphql-compose-mongoose",
"dependencies": {
"object-path": "^0.11.4"
},
"optionalDependencies": {
"graphql-compose-connection": "^6.0.3",
"graphql-compose-pagination": "^6.0.3"
},
"peerDependencies": {
"graphql-compose": "^7.1.0",
"mongoose": "^5.0.0 || ^4.4.0"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-flow": "^7.0.0",
"@types/graphql": "^14.2.0",
"@types/mongoose": "5.5.5",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-flowtype": "^3.9.1",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-prettier": "^3.1.0",
"flow-bin": "^0.100.0",
"graphql": "14.3.1",
"graphql-compose": "^7.1.0",
"graphql-compose-connection": "^6.0.3",
"graphql-compose-pagination": "^6.0.3",
"jest": "^24.8.0",
"mongodb-memory-server": "^5.1.2",
"mongoose": "^5.5.12",
"prettier": "^1.17.1",
"request": "^2.88.0",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.12",
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^3.5.1"
},
"scripts": {
"build": "npm run build-lib && npm run build-mjs && npm run build-es && npm run build-node8 && npm run build-ts",
"build-lib": "rimraf lib && BABEL_ENV=cjs babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow",
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es && COPY_TO_FOLDER=es npm run build-flow",
"build-node8": "rimraf node8 && BABEL_ENV=node8 babel src --ignore __tests__,__mocks__ -d node8 && COPY_TO_FOLDER=node8 npm run build-flow",
"build-mjs": "rimraf mjs && BABEL_ENV=mjs babel src --ignore __tests__,__mocks__ -d mjs && yarn build-mjs-rename && COPY_TO_FOLDER=mjs npm run build-flow",
"build-mjs-rename": "find ./mjs -name \"*.js\" -exec bash -c 'mv \"$1\" \"${1%.js}\".mjs' - '{}' \\;",
"build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done",
"build-ts": "find ./src -name '*.d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done",
"watch": "jest --watch",
"coverage": "jest --coverage --maxWorkers 4",
"lint": "npm run eslint && npm run tslint",
"eslint": "eslint --ext .js ./src",
"tslint": "tslint -p .",
"tscheck": "tsc --noEmit",
"flow": "./node_modules/.bin/flow",
"test": "npm run coverage && npm run lint && npm run flow && npm run tscheck",
"link": "yarn build && yarn link graphql-compose && yarn link graphql-compose-connection && yarn link graphql-compose-pagination && yarn link mongoose && yarn link",
"unlink": "rimraf node_modules && yarn install",
"semantic-release": "semantic-release"
}
}