@schalkneethling/miyagi-core 4.4.0 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/default-config.js +170 -169
- package/lib/init/router.js +205 -205
- package/lib/init/watcher.js +704 -671
- package/lib/validator/schemas.js +58 -0
- package/package.json +1 -1
package/lib/default-config.js
CHANGED
|
@@ -1,173 +1,174 @@
|
|
|
1
1
|
import AJV from "ajv";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
4
|
+
defaultUserConfig: {
|
|
5
|
+
assets: {
|
|
6
|
+
root: "",
|
|
7
|
+
css: [],
|
|
8
|
+
shared: {
|
|
9
|
+
css: [],
|
|
10
|
+
js: [],
|
|
11
|
+
},
|
|
12
|
+
isolateComponents: false,
|
|
13
|
+
customProperties: {
|
|
14
|
+
files: [],
|
|
15
|
+
prefixes: {
|
|
16
|
+
typo: "typo",
|
|
17
|
+
color: "color",
|
|
18
|
+
spacing: "spacing",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
folder: [],
|
|
22
|
+
js: [],
|
|
23
|
+
manifest: null,
|
|
24
|
+
},
|
|
25
|
+
build: {
|
|
26
|
+
basePath: "/",
|
|
27
|
+
folder: "build",
|
|
28
|
+
},
|
|
29
|
+
docs: {
|
|
30
|
+
folder: "docs",
|
|
31
|
+
},
|
|
32
|
+
components: {
|
|
33
|
+
folder: "src",
|
|
34
|
+
ignores: [
|
|
35
|
+
"node_modules",
|
|
36
|
+
".git",
|
|
37
|
+
"package.json",
|
|
38
|
+
"package-lock.json",
|
|
39
|
+
".miyagi.js",
|
|
40
|
+
".miyagi.mjs",
|
|
41
|
+
],
|
|
42
|
+
lang: "en",
|
|
43
|
+
textDirection: "ltr",
|
|
44
|
+
},
|
|
45
|
+
engine: {
|
|
46
|
+
render: null,
|
|
47
|
+
options: {},
|
|
48
|
+
},
|
|
49
|
+
lint: {
|
|
50
|
+
logLevel: "error",
|
|
51
|
+
},
|
|
52
|
+
extensions: [],
|
|
53
|
+
files: {
|
|
54
|
+
css: {
|
|
55
|
+
abbr: "css",
|
|
56
|
+
name: "index",
|
|
57
|
+
extension: "css",
|
|
58
|
+
},
|
|
59
|
+
js: {
|
|
60
|
+
abbr: "js",
|
|
61
|
+
name: "index",
|
|
62
|
+
extension: "js",
|
|
63
|
+
},
|
|
64
|
+
mocks: {
|
|
65
|
+
abbr: "mocks",
|
|
66
|
+
name: "mocks",
|
|
67
|
+
extension: ["json", "js"],
|
|
68
|
+
},
|
|
69
|
+
schema: {
|
|
70
|
+
abbr: "schema",
|
|
71
|
+
name: "schema",
|
|
72
|
+
extension: "json",
|
|
73
|
+
},
|
|
74
|
+
templates: {
|
|
75
|
+
abbr: "tpl",
|
|
76
|
+
name: "index",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
namespaces: {},
|
|
80
|
+
projectName: "miyagi",
|
|
81
|
+
ui: {
|
|
82
|
+
mode: "light",
|
|
83
|
+
lang: "en",
|
|
84
|
+
reload: true,
|
|
85
|
+
reloadAfterChanges: {
|
|
86
|
+
componentAssets: true,
|
|
87
|
+
},
|
|
88
|
+
textDirection: "ltr",
|
|
89
|
+
theme: {
|
|
90
|
+
css: null,
|
|
91
|
+
favicon: null,
|
|
92
|
+
js: null,
|
|
93
|
+
logo: {
|
|
94
|
+
light: null,
|
|
95
|
+
dark: null,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
watchConfigFile: true,
|
|
99
|
+
},
|
|
100
|
+
watch: {
|
|
101
|
+
enabled: true,
|
|
102
|
+
backend: "chokidar",
|
|
103
|
+
sources: [],
|
|
104
|
+
ignore: {
|
|
105
|
+
defaults: true,
|
|
106
|
+
patterns: [],
|
|
107
|
+
},
|
|
108
|
+
behavior: {
|
|
109
|
+
startupGraceMs: 500,
|
|
110
|
+
debounceMs: 60,
|
|
111
|
+
coalesceWindowMs: 120,
|
|
112
|
+
awaitWriteFinish: {
|
|
113
|
+
enabled: true,
|
|
114
|
+
stabilityThresholdMs: 200,
|
|
115
|
+
pollIntervalMs: 50,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
reload: {
|
|
119
|
+
enabled: true,
|
|
120
|
+
rules: {
|
|
121
|
+
template: "iframe",
|
|
122
|
+
data: "parent",
|
|
123
|
+
docs: "parent",
|
|
124
|
+
schema: "iframe",
|
|
125
|
+
componentAsset: "iframe",
|
|
126
|
+
globalCss: "iframe",
|
|
127
|
+
globalJs: "iframe",
|
|
128
|
+
unknown: "parent",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
socket: {
|
|
132
|
+
reconnect: {
|
|
133
|
+
enabled: true,
|
|
134
|
+
initialDelayMs: 250,
|
|
135
|
+
maxDelayMs: 5000,
|
|
136
|
+
jitter: true,
|
|
137
|
+
},
|
|
138
|
+
heartbeat: {
|
|
139
|
+
enabled: true,
|
|
140
|
+
intervalMs: 30000,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
report: {
|
|
144
|
+
enabled: true,
|
|
145
|
+
onStart: true,
|
|
146
|
+
format: "summary",
|
|
147
|
+
destination: "stdout",
|
|
148
|
+
useColors: true,
|
|
149
|
+
},
|
|
150
|
+
configFile: {
|
|
151
|
+
enabled: true,
|
|
152
|
+
},
|
|
153
|
+
debug: {
|
|
154
|
+
logEvents: false,
|
|
155
|
+
logDecisions: false,
|
|
156
|
+
logResolvedSources: false,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
schema: {
|
|
160
|
+
ajv: AJV,
|
|
161
|
+
verbose: false,
|
|
162
|
+
},
|
|
163
|
+
schemaValidationMode: "collect-all",
|
|
164
|
+
},
|
|
165
|
+
projectName: "miyagi",
|
|
166
|
+
defaultPort: 5000,
|
|
167
|
+
folders: {
|
|
168
|
+
assets: {
|
|
169
|
+
development: "frontend/assets",
|
|
170
|
+
production: "dist",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
defaultVariationName: "default",
|
|
173
174
|
};
|