UNPKG

graphql-compose-mongoose

Version:

Plugin for `graphql-compose` which derive a graphql types from a mongoose model.

100 lines (99 loc) 4.08 kB
{ "name": "graphql-compose-mongoose", "version": "7.1.2", "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.5.5", "@babel/core": "^7.5.5", "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/plugin-proposal-object-rest-spread": "^7.5.5", "@babel/plugin-transform-flow-strip-types": "^7.4.4", "@babel/plugin-transform-runtime": "^7.5.5", "@babel/preset-env": "^7.5.5", "@babel/preset-flow": "^7.0.0", "@types/graphql": "^14.2.3", "@types/mongoose": "5.5.11", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.0.2", "babel-jest": "^24.8.0", "eslint": "^5.16.0", "eslint-config-airbnb-base": "^13.2.0", "eslint-config-prettier": "^4.3.0", "eslint-plugin-flowtype": "^3.13.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-prettier": "^3.1.0", "flow-bin": "^0.104.0", "graphql": "14.4.2", "graphql-compose": "^7.3.0", "graphql-compose-connection": "^6.0.3", "graphql-compose-pagination": "^6.0.3", "jest": "^24.8.0", "mongodb-memory-server": "^5.1.9", "mongoose": "^5.6.8", "prettier": "^1.18.2", "request": "^2.88.0", "rimraf": "^2.6.3", "semantic-release": "^15.13.19", "tslint": "^5.18.0", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.0.1", "typescript": "^3.5.3" }, "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" } }