|
1 | 1 | { |
2 | 2 | "name": "graphql-compose-mongoose", |
3 | | - "version": "1.0.12", |
4 | 3 | "description": "Plugin for `graphql-compose` which derive a graphql type from a mongoose model.", |
5 | 4 | "files": [ |
6 | 5 | "es", |
|
10 | 9 | "jsnext:main": "es/index.js", |
11 | 10 | "repository": { |
12 | 11 | "type": "git", |
13 | | - "url": "git+https://github.com/nodkz/graphql-compose-mongoose.git" |
| 12 | + "url": "https://github.com/nodkz/graphql-compose-mongoose.git" |
14 | 13 | }, |
15 | 14 | "keywords": [ |
16 | 15 | "graphql", |
|
36 | 35 | }, |
37 | 36 | "devDependencies": { |
38 | 37 | "babel-cli": "6.14.0", |
| 38 | + "babel-core": "6.14.0", |
39 | 39 | "babel-eslint": "6.1.2", |
40 | 40 | "babel-plugin-syntax-async-functions": "6.13.0", |
41 | 41 | "babel-plugin-transform-class-properties": "6.11.5", |
|
47 | 47 | "chai": "3.5.0", |
48 | 48 | "chai-as-promised": "5.3.0", |
49 | 49 | "chai-spies": "0.7.1", |
| 50 | + "cz-conventional-changelog": "1.2.0", |
50 | 51 | "eslint": "3.4.0", |
51 | 52 | "eslint-config-airbnb": "10.0.1", |
52 | 53 | "eslint-plugin-flowtype": "2.15.0", |
|
55 | 56 | "eslint-plugin-react": "6.2.0", |
56 | 57 | "flow-bin": "0.32.0", |
57 | 58 | "mocha": "3.0.2", |
| 59 | + "nyc": "8.1.0", |
58 | 60 | "rimraf": "2.5.4", |
59 | | - "sane": "1.4.1" |
| 61 | + "sane": "1.4.1", |
| 62 | + "semantic-release": "^4.3.5" |
60 | 63 | }, |
61 | 64 | "scripts": { |
62 | 65 | "build": "npm run build-cjs && npm run build-flow && npm run build-es", |
63 | 66 | "build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib", |
64 | 67 | "build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es", |
65 | 68 | "build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done", |
| 69 | + "coverage": "nyc npm run test", |
66 | 70 | "lint": "eslint src test *.js", |
67 | | - "prepublish": "npm run test && npm run build", |
68 | 71 | "test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js", |
69 | 72 | "watch": "babel-node ./resources/watch.js", |
70 | | - "link": "npm link graphql && npm link graphql-compose && npm link graphql-compose-connection && npm link mongoose && npm link" |
| 73 | + "link": "npm link graphql && npm link graphql-compose && npm link graphql-compose-connection && npm link mongoose && npm link", |
| 74 | + "semantic-release": "semantic-release pre && npm publish && semantic-release post" |
| 75 | + }, |
| 76 | + "config": { |
| 77 | + "commitizen": { |
| 78 | + "path": "./node_modules/cz-conventional-changelog" |
| 79 | + } |
| 80 | + }, |
| 81 | + "nyc": { |
| 82 | + "exclude": [ |
| 83 | + "**/__mocks__/**", |
| 84 | + "**/__tests__/**", |
| 85 | + "resources", |
| 86 | + "node_modules" |
| 87 | + ], |
| 88 | + "reporter": [ |
| 89 | + "lcov", |
| 90 | + "text" |
| 91 | + ] |
71 | 92 | } |
72 | 93 | } |
0 commit comments