bajo 0.0.1 → 0.1.0

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 (107) hide show
  1. package/.jsdoc.conf.json +38 -0
  2. package/README.md +57 -3
  3. package/boot/attach-helper.js +26 -0
  4. package/boot/boot-order.js +34 -0
  5. package/boot/build-config.js +94 -0
  6. package/boot/create-scope.js +36 -0
  7. package/boot/exit-handler.js +60 -0
  8. package/boot/helper/build-collections.js +40 -0
  9. package/boot/helper/call-helper-or-handler.js +15 -0
  10. package/boot/helper/current-loc.js +11 -0
  11. package/boot/helper/defaults-deep.js +14 -0
  12. package/boot/helper/dump.js +10 -0
  13. package/boot/helper/each-plugins.js +94 -0
  14. package/boot/helper/envs.js +14 -0
  15. package/boot/helper/error.js +47 -0
  16. package/boot/helper/fatal.js +12 -0
  17. package/boot/helper/generate-id.js +19 -0
  18. package/boot/helper/get-config.js +18 -0
  19. package/boot/helper/get-global-module-dir.js +27 -0
  20. package/boot/helper/get-helper.js +11 -0
  21. package/boot/helper/get-item-by-name.js +26 -0
  22. package/boot/helper/get-key-by-value.js +5 -0
  23. package/boot/helper/get-module-dir.js +22 -0
  24. package/boot/helper/get-plugin-name.js +39 -0
  25. package/boot/helper/get-plugin.js +7 -0
  26. package/boot/helper/import-module.js +25 -0
  27. package/boot/helper/import-pkg.js +67 -0
  28. package/boot/helper/index.js +36 -0
  29. package/boot/helper/is-empty-dir.js +9 -0
  30. package/boot/helper/is-log-in-range.js +10 -0
  31. package/boot/helper/is-set.js +5 -0
  32. package/boot/helper/is-valid-app.js +12 -0
  33. package/boot/helper/is-valid-plugin.js +12 -0
  34. package/boot/helper/log-levels.js +19 -0
  35. package/boot/helper/pascal-case.js +7 -0
  36. package/boot/helper/print.js +89 -0
  37. package/boot/helper/read-config.js +46 -0
  38. package/boot/helper/read-json.js +10 -0
  39. package/boot/helper/resolve-path.js +15 -0
  40. package/boot/helper/resolve-tpl-path.js +21 -0
  41. package/boot/helper/run-hook.js +46 -0
  42. package/boot/helper/save-as-download.js +18 -0
  43. package/boot/helper/white-space.js +3 -0
  44. package/boot/index.js +60 -0
  45. package/boot/lib/bora.js +97 -0
  46. package/boot/lib/build-helper.js +58 -0
  47. package/boot/lib/logger.js +75 -0
  48. package/boot/lib/omitted-plugin-keys.js +3 -0
  49. package/boot/lib/parse-args-argv.js +75 -0
  50. package/boot/lib/parse-env.js +36 -0
  51. package/boot/lib/shim.js +14 -0
  52. package/boot/plugins/attach-helper.js +20 -0
  53. package/boot/plugins/build-config.js +75 -0
  54. package/boot/plugins/check-clash.js +18 -0
  55. package/boot/plugins/check-dependency.js +37 -0
  56. package/boot/plugins/collect-config-handlers.js +25 -0
  57. package/boot/plugins/collect-exit-handlers.js +23 -0
  58. package/boot/plugins/collect-hooks.js +33 -0
  59. package/boot/plugins/extend-config.js +21 -0
  60. package/boot/plugins/index.js +28 -0
  61. package/boot/plugins/run.js +31 -0
  62. package/boot/run-tool.js +34 -0
  63. package/docs/boot_build-config.js.html +75 -0
  64. package/docs/boot_create-scope.js.html +25 -0
  65. package/docs/boot_index.js.html +43 -0
  66. package/docs/data/search.json +1 -0
  67. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  68. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  69. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  70. package/docs/helper_emit.js.html +18 -0
  71. package/docs/helper_envs.js.html +16 -0
  72. package/docs/helper_error.js.html +25 -0
  73. package/docs/helper_get-bajo.js.html +42 -0
  74. package/docs/helper_index.js.html +39 -0
  75. package/docs/helper_log-levels.js.html +20 -0
  76. package/docs/helper_set-hook.js.html +38 -0
  77. package/docs/helper_walk-bajos.js.html +51 -0
  78. package/docs/index.html +16 -0
  79. package/docs/module-boot.html +3 -0
  80. package/docs/module-boot_buildConfig.html +3 -0
  81. package/docs/module-boot_createScope.html +3 -0
  82. package/docs/module-helper.html +7 -0
  83. package/docs/module-helper_setHook.html +4 -0
  84. package/docs/module-helper_walkBajos.html +6 -0
  85. package/docs/scripts/core.js +655 -0
  86. package/docs/scripts/core.min.js +23 -0
  87. package/docs/scripts/resize.js +90 -0
  88. package/docs/scripts/search.js +265 -0
  89. package/docs/scripts/search.min.js +6 -0
  90. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  91. package/docs/scripts/third-party/fuse.js +9 -0
  92. package/docs/scripts/third-party/hljs-line-num-original.js +369 -0
  93. package/docs/scripts/third-party/hljs-line-num.js +1 -0
  94. package/docs/scripts/third-party/hljs-original.js +5171 -0
  95. package/docs/scripts/third-party/hljs.js +1 -0
  96. package/docs/scripts/third-party/popper.js +5 -0
  97. package/docs/scripts/third-party/tippy.js +1 -0
  98. package/docs/scripts/third-party/tocbot.js +672 -0
  99. package/docs/scripts/third-party/tocbot.min.js +1 -0
  100. package/docs/styles/clean-jsdoc-theme-base.css +975 -0
  101. package/docs/styles/clean-jsdoc-theme-dark.css +407 -0
  102. package/docs/styles/clean-jsdoc-theme-light.css +388 -0
  103. package/docs/styles/clean-jsdoc-theme.min.css +1 -0
  104. package/package.json +36 -4
  105. package/test/helper-error.js +25 -0
  106. package/test/helper-isSet.js +41 -0
  107. package/test/helper-pathResolve.js +28 -0
@@ -0,0 +1,407 @@
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
+ }