|
1 | 1 | { |
2 | 2 | "name": "koa-404-handler", |
3 | | - "description": "404 handler for Lad and Koa (best used with koa-better-error-handler)", |
| 3 | + "description": |
| 4 | + "404 handler for Lad and Koa (best used with koa-better-error-handler)", |
4 | 5 | "version": "0.0.1", |
5 | 6 | "author": "Nick Baugh <[email protected]> (http://niftylettuce.com/)", |
6 | 7 | "bugs": { |
|
13 | 14 | "dependencies": {}, |
14 | 15 | "devDependencies": { |
15 | 16 | "ava": "^0.22.0", |
| 17 | + "babel-cli": "^6.26.0", |
| 18 | + "babel-preset-env": "^1.6.1", |
16 | 19 | "boom": "^7.1.1", |
17 | 20 | "codecov": "^2.3.0", |
18 | 21 | "cross-env": "^5.0.5", |
|
51 | 54 | "prettier --write --single-quote --trailing-comma none", |
52 | 55 | "git add" |
53 | 56 | ], |
54 | | - "*.md": [ |
55 | | - "remark . -qfo", |
56 | | - "git add" |
57 | | - ] |
| 57 | + "*.md": ["remark . -qfo", "git add"] |
58 | 58 | }, |
59 | | - "main": "index.js", |
| 59 | + "main": "lib/index.js", |
60 | 60 | "remarkConfig": { |
61 | | - "plugins": [ |
62 | | - "preset-github" |
63 | | - ] |
| 61 | + "plugins": ["preset-github"] |
64 | 62 | }, |
65 | 63 | "repository": { |
66 | 64 | "type": "git", |
|
70 | 68 | "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", |
71 | 69 | "lint": "xo && remark . -qfo", |
72 | 70 | "precommit": "lint-staged && npm test", |
73 | | - "test": "npm run lint && npm run test-coverage", |
74 | | - "test-coverage": "cross-env NODE_ENV=test nyc ava" |
| 71 | + "test": "npm run build && npm run lint && npm run test-coverage", |
| 72 | + "test-coverage": "cross-env NODE_ENV=test nyc ava", |
| 73 | + "build": "node_modules/.bin/babel src --out-dir lib", |
| 74 | + "watch": "node_modules/.bin/babel src --watch --out-dir lib" |
75 | 75 | }, |
76 | 76 | "xo": { |
77 | 77 | "extends": "prettier", |
78 | | - "plugins": [ |
79 | | - "prettier" |
80 | | - ], |
| 78 | + "plugins": ["prettier"], |
81 | 79 | "parserOptions": { |
82 | 80 | "sourceType": "script" |
83 | 81 | }, |
|
0 commit comments