|
1 | 1 | { |
2 | 2 | "name": "unity-api", |
3 | 3 | "version": "1.0.2", |
4 | | - "description": "", |
| 4 | + "description": "REST-API helper, wrapped around fetch.", |
5 | 5 | "main": "dist/index.js", |
6 | 6 | "scripts": { |
7 | 7 | "build": "npm run test && npm run clean && ./node_modules/.bin/babel src --out-dir dist", |
| 8 | + "build:watch": "npm run clean && ./node_modules/.bin/babel src --out-dir dist -s -w", |
8 | 9 | "clean": "./node_modules/.bin/rimraf dist", |
| 10 | + "commit": "./node_modules/.bin/git-cz", |
9 | 11 | "lint": "./node_modules/.bin/eslint --ignore-path=.gitignore --fix ./src", |
10 | 12 | "lint-prod": "NODE_ENV='production' npm run lint", |
| 13 | + "version": " ./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s && git add CHANGELOG.md", |
11 | 14 | "prepublish": "npm run build", |
12 | | - "precommit-msg": "echo 'Running pre-commit checks...' && exit 0", |
| 15 | + "precommit": "npm test", |
| 16 | + "commitmsg": "./node_modules/.bin/validate-commit-msg", |
13 | 17 | "test": "npm run lint-prod && ./node_modules/.bin/ava --verbose", |
14 | | - "test-watch": "npm run lint && ./node_modules/.bin/ava --verbose --watch" |
| 18 | + "test:watch": "npm run lint && ./node_modules/.bin/ava --verbose --watch" |
15 | 19 | }, |
16 | 20 | "repository": { |
17 | 21 | "type": "git", |
|
25 | 29 | "bugs": { |
26 | 30 | "url": "https://github.com/auru/unity-api/issues" |
27 | 31 | }, |
| 32 | + "keywords": [ |
| 33 | + "api", |
| 34 | + "fetch", |
| 35 | + "rest", |
| 36 | + "unity" |
| 37 | + ], |
28 | 38 | "homepage": "https://github.com/auru/unity-api#readme", |
29 | 39 | "engines": { |
30 | 40 | "node": ">=4" |
|
43 | 53 | "babel-preset-es2015": "^6.16.0", |
44 | 54 | "babel-preset-stage-2": "^6.16.0", |
45 | 55 | "babel-register": "^6.16.3", |
| 56 | + "commitizen": "^2.8.6", |
| 57 | + "conventional-changelog-cli": "^1.2.0", |
| 58 | + "cz-conventional-changelog": "^1.2.0", |
| 59 | + "husky": "^0.11.9", |
46 | 60 | "eslint": "^3.7.1", |
47 | 61 | "eslint-plugin-ava": "^3.1.0", |
48 | | - "pre-commit": "^1.1.3", |
49 | | - "rimraf": "^2.5.4" |
| 62 | + "rimraf": "^2.5.4", |
| 63 | + "validate-commit-msg": "^2.8.2" |
50 | 64 | }, |
51 | 65 | "ava": { |
52 | 66 | "files": [ |
|
63 | 77 | "babel-polyfill" |
64 | 78 | ], |
65 | 79 | "babel": "inherit" |
| 80 | + }, |
| 81 | + "config": { |
| 82 | + "commitizen": { |
| 83 | + "path": "./node_modules/cz-conventional-changelog" |
| 84 | + } |
66 | 85 | } |
67 | 86 | } |
0 commit comments