bajo 0.3.10 → 1.0.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.
Files changed (163) hide show
  1. package/README.md +127 -26
  2. package/bajoI18N/resource/id.json +31 -0
  3. package/boot/class/app.js +69 -0
  4. package/boot/class/bajo-core/helper/attach-method.js +30 -0
  5. package/boot/{boot-order.js → class/bajo-core/helper/boot-order.js} +10 -10
  6. package/boot/class/bajo-core/helper/boot-plugins.js +19 -0
  7. package/boot/class/bajo-core/helper/build-config.js +61 -0
  8. package/boot/class/bajo-core/helper/build-plugins.js +26 -0
  9. package/boot/class/bajo-core/helper/collect-config-handlers.js +21 -0
  10. package/boot/{exit-handler.js → class/bajo-core/helper/exit-handler.js} +10 -16
  11. package/boot/class/bajo-core/helper/run-as-applet.js +26 -0
  12. package/boot/class/bajo-core/method/arrange-array.js +18 -0
  13. package/boot/class/bajo-core/method/break-ns-path-from-file.js +24 -0
  14. package/boot/class/bajo-core/method/break-ns-path.js +29 -0
  15. package/boot/class/bajo-core/method/build-collections.js +46 -0
  16. package/boot/class/bajo-core/method/call-handler.js +29 -0
  17. package/boot/{helper → class/bajo-core/method}/defaults-deep.js +1 -1
  18. package/boot/class/bajo-core/method/each-plugins.js +55 -0
  19. package/boot/class/bajo-core/method/envs.js +7 -0
  20. package/boot/{helper → class/bajo-core/method}/generate-id.js +4 -0
  21. package/boot/{helper → class/bajo-core/method}/get-global-module-dir.js +5 -6
  22. package/boot/class/bajo-core/method/get-method.js +10 -0
  23. package/boot/{helper → class/bajo-core/method}/get-module-dir.js +3 -4
  24. package/boot/{helper → class/bajo-core/method}/get-plugin-data-dir.js +2 -3
  25. package/boot/class/bajo-core/method/get-plugin-file.js +18 -0
  26. package/boot/class/bajo-core/method/get-plugin.js +23 -0
  27. package/boot/{helper → class/bajo-core/method}/import-module.js +4 -10
  28. package/boot/{helper → class/bajo-core/method}/import-pkg.js +9 -3
  29. package/boot/class/bajo-core/method/includes.js +13 -0
  30. package/boot/class/bajo-core/method/is-class.js +7 -0
  31. package/boot/{helper → class/bajo-core/method}/is-log-in-range.js +1 -1
  32. package/boot/{helper → class/bajo-core/method}/is-valid-app.js +2 -2
  33. package/boot/class/bajo-core/method/join.js +15 -0
  34. package/boot/class/bajo-core/method/log-levels.js +9 -0
  35. package/boot/class/bajo-core/method/num-unit.js +9 -0
  36. package/boot/{helper → class/bajo-core/method}/parse-object.js +24 -8
  37. package/boot/class/bajo-core/method/read-config.js +48 -0
  38. package/boot/{helper → class/bajo-core/method}/read-json.js +2 -2
  39. package/boot/class/bajo-core/method/run-hook.js +26 -0
  40. package/boot/{helper → class/bajo-core/method}/save-as-download.js +2 -2
  41. package/boot/class/bajo-core/method/slice-string.js +13 -0
  42. package/boot/class/bajo-core/method/titleize.js +23 -0
  43. package/boot/class/bajo-core.js +30 -0
  44. package/boot/class/bajo-plugin/helper/attach-method.js +14 -0
  45. package/boot/class/bajo-plugin/helper/build-config.js +10 -0
  46. package/boot/class/bajo-plugin/helper/check-clash.js +16 -0
  47. package/boot/class/bajo-plugin/helper/check-dependency.js +37 -0
  48. package/boot/class/bajo-plugin/helper/collect-exit-handlers.js +14 -0
  49. package/boot/class/bajo-plugin/helper/collect-hooks.js +29 -0
  50. package/boot/class/bajo-plugin/helper/run.js +20 -0
  51. package/boot/class/bajo-plugin.js +78 -0
  52. package/boot/class/error.js +59 -0
  53. package/boot/class/log.js +67 -0
  54. package/boot/class/plugin.js +51 -0
  55. package/boot/class/print.js +103 -0
  56. package/boot/index.js +4 -51
  57. package/boot/lib/create-method.js +30 -0
  58. package/boot/{helper → lib}/current-loc.js +1 -1
  59. package/boot/lib/get-global-module-path.js +189 -0
  60. package/boot/lib/omitted-plugin-keys.js +1 -1
  61. package/boot/lib/parse-args-argv.js +8 -11
  62. package/boot/lib/parse-env.js +7 -6
  63. package/boot/lib/read-all-configs.js +36 -0
  64. package/boot/lib/translate.js +18 -0
  65. package/docs/ecosystem.md +55 -0
  66. package/docs/hook.md +11 -0
  67. package/package.json +54 -56
  68. package/test/{helper-isSet.js → method/isSet.js} +6 -4
  69. package/waibuStatic/virtual.json +7 -0
  70. package/boot/attach-helper.js +0 -40
  71. package/boot/build-config.js +0 -99
  72. package/boot/create-scope.js +0 -36
  73. package/boot/helper/break-ns-path.js +0 -20
  74. package/boot/helper/build-collections.js +0 -43
  75. package/boot/helper/build-name.js +0 -17
  76. package/boot/helper/call-helper-or-handler.js +0 -15
  77. package/boot/helper/dump.js +0 -14
  78. package/boot/helper/each-plugins.js +0 -106
  79. package/boot/helper/envs.js +0 -14
  80. package/boot/helper/error.js +0 -77
  81. package/boot/helper/fatal.js +0 -13
  82. package/boot/helper/get-config.js +0 -19
  83. package/boot/helper/get-helper.js +0 -12
  84. package/boot/helper/get-item-by-name.js +0 -26
  85. package/boot/helper/get-plugin-file.js +0 -16
  86. package/boot/helper/get-plugin-name.js +0 -39
  87. package/boot/helper/get-plugin.js +0 -14
  88. package/boot/helper/join.js +0 -11
  89. package/boot/helper/log-levels.js +0 -19
  90. package/boot/helper/read-config.js +0 -48
  91. package/boot/helper/resolve-tpl-path.js +0 -15
  92. package/boot/helper/run-hook.js +0 -49
  93. package/boot/helper/spinner.js +0 -9
  94. package/boot/helper/start-plugin.js +0 -7
  95. package/boot/helper/titleize.js +0 -14
  96. package/boot/lib/build-helper.js +0 -60
  97. package/boot/lib/logger.js +0 -76
  98. package/boot/lib/print.js +0 -138
  99. package/boot/plugins/attach-helper.js +0 -20
  100. package/boot/plugins/build-config.js +0 -68
  101. package/boot/plugins/check-clash.js +0 -18
  102. package/boot/plugins/check-dependency.js +0 -37
  103. package/boot/plugins/collect-config-handlers.js +0 -22
  104. package/boot/plugins/collect-exit-handlers.js +0 -18
  105. package/boot/plugins/collect-hooks.js +0 -34
  106. package/boot/plugins/extend-config.js +0 -21
  107. package/boot/plugins/index.js +0 -27
  108. package/boot/plugins/run.js +0 -26
  109. package/boot/run-tool.js +0 -41
  110. package/docs/boot_build-config.js.html +0 -75
  111. package/docs/boot_create-scope.js.html +0 -25
  112. package/docs/boot_index.js.html +0 -43
  113. package/docs/data/search.json +0 -1
  114. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  115. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  116. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  117. package/docs/helper_emit.js.html +0 -18
  118. package/docs/helper_envs.js.html +0 -16
  119. package/docs/helper_error.js.html +0 -25
  120. package/docs/helper_get-bajo.js.html +0 -42
  121. package/docs/helper_index.js.html +0 -39
  122. package/docs/helper_log-levels.js.html +0 -20
  123. package/docs/helper_set-hook.js.html +0 -38
  124. package/docs/helper_walk-bajos.js.html +0 -51
  125. package/docs/index.html +0 -16
  126. package/docs/module-boot.html +0 -3
  127. package/docs/module-boot_buildConfig.html +0 -3
  128. package/docs/module-boot_createScope.html +0 -3
  129. package/docs/module-helper.html +0 -7
  130. package/docs/module-helper_setHook.html +0 -4
  131. package/docs/module-helper_walkBajos.html +0 -6
  132. package/docs/scripts/core.js +0 -655
  133. package/docs/scripts/core.min.js +0 -23
  134. package/docs/scripts/resize.js +0 -90
  135. package/docs/scripts/search.js +0 -265
  136. package/docs/scripts/search.min.js +0 -6
  137. package/docs/scripts/third-party/Apache-License-2.0.txt +0 -202
  138. package/docs/scripts/third-party/fuse.js +0 -9
  139. package/docs/scripts/third-party/hljs-line-num-original.js +0 -369
  140. package/docs/scripts/third-party/hljs-line-num.js +0 -1
  141. package/docs/scripts/third-party/hljs-original.js +0 -5171
  142. package/docs/scripts/third-party/hljs.js +0 -1
  143. package/docs/scripts/third-party/popper.js +0 -5
  144. package/docs/scripts/third-party/tippy.js +0 -1
  145. package/docs/scripts/third-party/tocbot.js +0 -672
  146. package/docs/scripts/third-party/tocbot.min.js +0 -1
  147. package/docs/styles/clean-jsdoc-theme-base.css +0 -975
  148. package/docs/styles/clean-jsdoc-theme-dark.css +0 -407
  149. package/docs/styles/clean-jsdoc-theme-light.css +0 -388
  150. package/docs/styles/clean-jsdoc-theme.min.css +0 -1
  151. package/test/helper-error.js +0 -25
  152. package/test/helper-pathResolve.js +0 -28
  153. /package/boot/{helper → class/bajo-core/method}/get-key-by-value.js +0 -0
  154. /package/boot/{helper → class/bajo-core/method}/is-empty-dir.js +0 -0
  155. /package/boot/{helper → class/bajo-core/method}/is-set.js +0 -0
  156. /package/boot/{helper → class/bajo-core/method}/is-valid-plugin.js +0 -0
  157. /package/boot/{helper → class/bajo-core/method}/paginate.js +0 -0
  158. /package/boot/{helper → class/bajo-core/method}/pascal-case.js +0 -0
  159. /package/boot/{helper → class/bajo-core/method}/pick.js +0 -0
  160. /package/boot/{helper → class/bajo-core/method}/resolve-path.js +0 -0
  161. /package/boot/{helper → class/bajo-core/method}/round.js +0 -0
  162. /package/boot/{helper → class/bajo-core/method}/sec-to-hms.js +0 -0
  163. /package/boot/{helper → class/bajo-core/method}/white-space.js +0 -0
@@ -1,407 +0,0 @@
1
- ::selection {
2
- background: #ffce76;
3
- color: #222;
4
- }
5
-
6
- body {
7
- background-color: #1a1a1a;
8
- color: #fff;
9
- }
10
-
11
- a,
12
- a:active {
13
- color: #00bbff;
14
- }
15
-
16
- hr {
17
- color: #222;
18
- }
19
-
20
- h1,
21
- h2,
22
- h3,
23
- h4,
24
- h5,
25
- h6 {
26
- color: #fff;
27
- }
28
-
29
- .sidebar {
30
- background-color: #222;
31
- color: #999;
32
- }
33
-
34
- .sidebar-title {
35
- color: #999;
36
- }
37
-
38
- .sidebar-section-title {
39
- color: #999;
40
- }
41
-
42
- .sidebar-section-title:hover {
43
- background: #252525;
44
- }
45
-
46
- .with-arrow {
47
- fill: #999;
48
- }
49
-
50
- .sidebar-section-children-container {
51
- background: #292929;
52
- }
53
-
54
- .sidebar-section-children a:hover {
55
- background: #2c2c2c;
56
- }
57
-
58
- .sidebar-section-children a {
59
- color: #fff;
60
- }
61
-
62
- .navbar-container {
63
- background: #1a1a1a;
64
- }
65
-
66
- .icon-button svg,
67
- .navbar-item a {
68
- color: #999;
69
- fill: #999;
70
- }
71
-
72
- .font-size-tooltip .icon-button svg {
73
- fill: #fff;
74
- }
75
-
76
- .font-size-tooltip .icon-button.disabled {
77
- background: #999;
78
- }
79
-
80
- .icon-button:hover {
81
- background: #333;
82
- }
83
-
84
- .icon-button:active {
85
- background: #444;
86
- }
87
-
88
- .navbar-item a:active {
89
- color: #aaa;
90
- background-color: #222;
91
- }
92
-
93
- .navbar-item:hover {
94
- background: #202020;
95
- }
96
-
97
- .footer {
98
- background: #222;
99
- color: #999;
100
- }
101
-
102
- .footer a {
103
- color: #999;
104
- }
105
-
106
- .toc-link {
107
- color: #777;
108
- transition: color 0.3s;
109
- font-size: 0.875rem;
110
- }
111
-
112
- .toc-link.is-active-link {
113
- color: #fff;
114
- }
115
-
116
- .has-anchor .link-anchor {
117
- color: #555;
118
- }
119
-
120
- .has-anchor .link-anchor:hover {
121
- color: #888;
122
- }
123
-
124
- tt,
125
- code,
126
- kbd,
127
- samp {
128
- background: #333;
129
- }
130
-
131
- .signature-attributes {
132
- color: #aaa;
133
- }
134
-
135
- .ancestors {
136
- color: #999;
137
- }
138
-
139
- .ancestors a {
140
- color: #999 !important;
141
- }
142
-
143
- .important {
144
- color: #c51313;
145
- }
146
-
147
- .type-signature {
148
- color: #00918e;
149
- }
150
-
151
- .name,
152
- .name a {
153
- color: #f7f7f7;
154
- }
155
-
156
- .details {
157
- background: #222;
158
- color: #fff;
159
- }
160
-
161
- .prettyprint {
162
- background: #222;
163
- }
164
-
165
- .member-item-container strong,
166
- .method-member-container strong {
167
- color: #fff;
168
- }
169
-
170
- .pre-top-bar-container {
171
- background: #292929;
172
- }
173
-
174
- .prettyprint.source,
175
- .prettyprint code {
176
- background-color: #222;
177
- color: #c9d1d9;
178
- }
179
-
180
- .pre-div {
181
- background-color: #222;
182
- }
183
-
184
- .hljs .hljs-ln-numbers {
185
- color: #777;
186
- }
187
-
188
- .hljs .selected {
189
- background: #444;
190
- }
191
-
192
- .hljs .selected .hljs-ln-numbers {
193
- color: #eee;
194
- }
195
-
196
- /* stylelint-enable */
197
-
198
- table .name,
199
- .params .name,
200
- .props .name,
201
- .name code {
202
- color: #fff;
203
- }
204
-
205
- table td,
206
- .params td {
207
- background-color: #292929;
208
- }
209
-
210
- table thead th,
211
- .params thead th,
212
- .props thead th {
213
- background-color: #222;
214
- color: #fff;
215
- }
216
-
217
- /* stylelint-disable */
218
- table .params thead tr,
219
- .params .params thead tr,
220
- .props .props thead tr {
221
- background-color: #222;
222
- color: #fff;
223
- }
224
-
225
- .disabled {
226
- color: #aaaaaa;
227
- }
228
-
229
- .code-lang-name {
230
- color: #ff8a00;
231
- }
232
-
233
- .tooltip {
234
- background: #ffce76;
235
- color: #222;
236
- }
237
-
238
- /* code */
239
- .hljs-comment {
240
- color: #8b949e;
241
- }
242
-
243
- .hljs-doctag,
244
- .hljs-keyword,
245
- .hljs-template-tag,
246
- .hljs-variable.language_ {
247
- color: #ff7b72;
248
- }
249
-
250
- .hljs-template-variable,
251
- .hljs-type {
252
- color: #30ac7c;
253
- }
254
-
255
- .hljs-meta,
256
- .hljs-string,
257
- .hljs-regexp {
258
- color: #a5d6ff;
259
- }
260
-
261
- .hljs-title.class_,
262
- .hljs-title {
263
- color: #ffa657;
264
- }
265
-
266
- .hljs-title.class_.inherited__,
267
- .hljs-title.function_ {
268
- color: #d2a8ff;
269
- }
270
-
271
- .hljs-attr,
272
- .hljs-attribute,
273
- .hljs-literal,
274
- .hljs-meta,
275
- .hljs-number,
276
- .hljs-operator,
277
- .hljs-selector-attr,
278
- .hljs-selector-class,
279
- .hljs-selector-id,
280
- .hljs-variable {
281
- color: #79c0ff;
282
- }
283
-
284
- .hljs-meta .hljs-string,
285
- .hljs-regexp,
286
- .hljs-string {
287
- color: #a5d6ff;
288
- }
289
-
290
- .hljs-built_in,
291
- .hljs-symbol {
292
- color: #ffa657;
293
- }
294
-
295
- .hljs-code,
296
- .hljs-comment,
297
- .hljs-formula {
298
- color: #8b949e;
299
- }
300
-
301
- .hljs-name,
302
- .hljs-quote,
303
- .hljs-selector-pseudo,
304
- .hljs-selector-tag {
305
- color: #7ee787;
306
- }
307
-
308
- .hljs-subst {
309
- color: #c9d1d9;
310
- }
311
-
312
- .hljs-section {
313
- color: #1f6feb;
314
- font-weight: 700;
315
- }
316
-
317
- .hljs-bullet {
318
- color: #f2cc60;
319
- }
320
-
321
- .hljs-emphasis {
322
- color: #c9d1d9;
323
- font-style: italic;
324
- }
325
-
326
- .hljs-strong {
327
- color: #c9d1d9;
328
- font-weight: 700;
329
- }
330
-
331
- /* code end*/
332
-
333
- blockquote {
334
- background: #222;
335
- color: #fff;
336
- }
337
-
338
- .search-container {
339
- background: rgba(255, 255, 255, 0.1);
340
- }
341
-
342
- .icon-button.search-close-button svg {
343
- fill: #a00;
344
- }
345
-
346
- .search-container .wrapper {
347
- background: #222;
348
- }
349
-
350
- .search-result-c {
351
- color: #666;
352
- }
353
-
354
- .search-box-c {
355
- fill: #333;
356
- }
357
-
358
- .search-input {
359
- background: #333;
360
- color: #fff;
361
- }
362
-
363
- .search-box-c svg {
364
- fill: #fff;
365
- }
366
-
367
- .search-result-item {
368
- background: #333;
369
- }
370
-
371
- .search-result-item:hover {
372
- background: #444;
373
- }
374
-
375
- .search-result-item:active {
376
- background: #555;
377
- }
378
-
379
- .search-result-item-title {
380
- color: #fff;
381
- }
382
-
383
- .search-result-item-p {
384
- color: #aaa;
385
- }
386
-
387
- .mobile-menu-icon-container .icon-button {
388
- background: #333;
389
- }
390
-
391
- .mobile-sidebar-container {
392
- background: #1a1a1a;
393
- }
394
-
395
- .mobile-sidebar-wrapper {
396
- background: #222;
397
- }
398
-
399
- /* scroll bar */
400
- ::-webkit-scrollbar-track {
401
- background: #333;
402
- }
403
-
404
- ::-webkit-scrollbar-thumb {
405
- background: #555;
406
- outline: 0.06125rem solid #555;
407
- }