-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.js
136 lines (123 loc) · 2.48 KB
/
plugin.js
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
'use strict';
module.exports = {
// enable plugins
/**
* app global Error Handling
* @member {Object} Plugin#onerror
* @property {Boolean} enable - `true` by default
*/
onerror: {
enable: true,
package: 'egg-onerror',
},
/**
* session
* @member {Object} Plugin#session
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
session: {
enable: true,
package: 'egg-session',
},
/**
* i18n
* @member {Object} Plugin#i18n
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
i18n: {
enable: true,
package: 'egg-i18n',
},
/**
* file and dir watcher
* @member {Object} Plugin#watcher
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
watcher: {
enable: true,
package: 'egg-watcher',
},
/**
* multipart
* @member {Object} Plugin#multipart
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
multipart: {
enable: true,
package: 'egg-multipart',
},
/**
* security middlewares and extends
* @member {Object} Plugin#security
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
security: {
enable: true,
package: 'egg-security',
},
/**
* local development helper
* @member {Object} Plugin#development
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
development: {
enable: true,
package: 'egg-development',
},
/**
* logger file rotater
* @member {Object} Plugin#logrotator
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
logrotator: {
enable: true,
package: 'egg-logrotator',
},
/**
* schedule tasks
* @member {Object} Plugin#schedule
* @property {Boolean} enable - `true` by default
* @since 2.7.0
*/
schedule: {
enable: true,
package: 'egg-schedule',
},
/**
* `app/public` dir static serve
* @member {Object} Plugin#static
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
static: {
enable: true,
package: 'egg-static',
},
/**
* jsonp support for egg
* @member {Function} Plugin#jsonp
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
jsonp: {
enable: true,
package: 'egg-jsonp',
},
/**
* view plugin
* @member {Function} Plugin#view
* @property {Boolean} enable - `true` by default
* @since 1.0.0
*/
view: {
enable: true,
package: 'egg-view',
},
};