@schalkneethling/miyagi-core 4.4.0 → 4.4.1

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.
@@ -1,173 +1,174 @@
1
1
  import AJV from "ajv";
2
2
 
3
3
  export default {
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: false,
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
- debounceMs: 60,
110
- coalesceWindowMs: 120,
111
- awaitWriteFinish: {
112
- enabled: true,
113
- stabilityThresholdMs: 200,
114
- pollIntervalMs: 50,
115
- },
116
- },
117
- reload: {
118
- enabled: true,
119
- rules: {
120
- template: "iframe",
121
- data: "parent",
122
- docs: "parent",
123
- schema: "iframe",
124
- componentAsset: "none",
125
- globalCss: "none",
126
- globalJs: "none",
127
- unknown: "parent",
128
- },
129
- },
130
- socket: {
131
- reconnect: {
132
- enabled: true,
133
- initialDelayMs: 250,
134
- maxDelayMs: 5000,
135
- jitter: true,
136
- },
137
- heartbeat: {
138
- enabled: true,
139
- intervalMs: 30000,
140
- },
141
- },
142
- report: {
143
- enabled: true,
144
- onStart: true,
145
- format: "summary",
146
- destination: "stdout",
147
- useColors: true,
148
- },
149
- configFile: {
150
- enabled: true,
151
- },
152
- debug: {
153
- logEvents: false,
154
- logDecisions: false,
155
- logResolvedSources: false,
156
- },
157
- },
158
- schema: {
159
- ajv: AJV,
160
- verbose: false,
161
- },
162
- schemaValidationMode: "collect-all",
163
- },
164
- projectName: "miyagi",
165
- defaultPort: 5000,
166
- folders: {
167
- assets: {
168
- development: "frontend/assets",
169
- production: "dist",
170
- },
171
- },
172
- defaultVariationName: "default",
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
  };