-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
122 lines (122 loc) · 2.44 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "koa-api-boilerplate",
"version": "0.1.0",
"description": "A Boilerplate for modern API's with Koa",
"keywords": [
"Babel",
"ES6",
"JSON API",
"Koa better-router",
"Koa",
"Koajs"
],
"author": "Wille Ristimäki <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "[email protected]:villeristi/koa-api-boilerplate.git"
},
"scripts": {
"start": "babel-watch --watch src src/index.js",
"build": "yarn lint && babel --no-babelrc src -d dist --presets=env,stage-0 --plugins=transform-async-to-generator --minified --quiet",
"lint": "eslint src"
},
"dependencies": {
"dotenv": "^4.0.0",
"joi": "^10.6.0",
"jsonapi-serializer": "^3.5.5",
"koa": "^2.3.0",
"koa-better-body": "^3.0.4",
"koa-better-router": "^2.1.1",
"koa-cors": "0.0.16",
"koa-helmet": "^3.2.0",
"koa-json-error": "^3.1.2"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-plugin-module-resolver": "^2.7.1",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.24.1",
"babel-watch": "^2.0.7",
"debug": "^3.0.0",
"eslint": "^4.5.0",
"morgan": "^1.8.2"
},
"babel": {
"sourceMaps": "inline",
"presets": [
"env",
"stage-0"
],
"plugins": [
[
"transform-async-to-generator"
],
[
"module-resolver",
{
"root": [
"."
],
"alias": {
"src": "./src"
}
}
]
]
},
"eslintConfig": {
"extends": [
"eslint:recommended"
],
"env": {
"browser": false,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"array-bracket-spacing": [
2,
"never"
],
"arrow-parens": [
"error",
"always"
],
"comma-dangle": [
2,
"always-multiline"
],
"eol-last": [
2,
"always"
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"no-console": 0,
"no-multiple-empty-lines": 2,
"object-curly-spacing": [
2,
"never"
],
"quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"display-name": 0
},
"plugins": []
}
}