@rindo/core 3.2.0 → 3.2.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.
- package/cli/index.cjs +33 -11
- package/cli/index.js +33 -11
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +755 -739
- package/compiler/rindo.min.js +2 -2
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +5795 -268
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-private.d.ts +30 -2
- package/internal/rindo-public-compiler.d.ts +1 -9
- package/internal/testing/index.js +5 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +7 -2
- package/mock-doc/index.d.ts +6 -1
- package/mock-doc/index.js +7 -2
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +40 -37
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +5 -4
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo CLI (CommonJS) v3.2.
|
|
2
|
+
Rindo CLI (CommonJS) v3.2.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -25,6 +25,34 @@ function _interopNamespace(e) {
|
|
|
25
25
|
return Object.freeze(n);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Default style mode id
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Constant for the 'dist-hydrate-script' output target
|
|
33
|
+
*/
|
|
34
|
+
const DIST_HYDRATE_SCRIPT = 'dist-hydrate-script';
|
|
35
|
+
/**
|
|
36
|
+
* Constant for the 'docs-custom' output target
|
|
37
|
+
*/
|
|
38
|
+
const DOCS_CUSTOM = 'docs-custom';
|
|
39
|
+
/**
|
|
40
|
+
* Constant for the 'docs-json' output target
|
|
41
|
+
*/
|
|
42
|
+
const DOCS_JSON = 'docs-json';
|
|
43
|
+
/**
|
|
44
|
+
* Constant for the 'docs-readme' output target
|
|
45
|
+
*/
|
|
46
|
+
const DOCS_README = 'docs-readme';
|
|
47
|
+
/**
|
|
48
|
+
* Constant for the 'docs-vscode' output target
|
|
49
|
+
*/
|
|
50
|
+
const DOCS_VSCODE = 'docs-vscode';
|
|
51
|
+
/**
|
|
52
|
+
* Constant for the 'www' output target
|
|
53
|
+
*/
|
|
54
|
+
const WWW = 'www';
|
|
55
|
+
|
|
28
56
|
/**
|
|
29
57
|
* Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
|
|
30
58
|
* or whatever you call it!)
|
|
@@ -272,6 +300,9 @@ const pathComponents = (path, rootLength) => {
|
|
|
272
300
|
return [root, ...rest];
|
|
273
301
|
};
|
|
274
302
|
|
|
303
|
+
const isOutputTargetHydrate = (o) => o.type === DIST_HYDRATE_SCRIPT;
|
|
304
|
+
const isOutputTargetDocs = (o) => o.type === DOCS_README || o.type === DOCS_JSON || o.type === DOCS_CUSTOM || o.type === DOCS_VSCODE;
|
|
305
|
+
|
|
275
306
|
/**
|
|
276
307
|
* Check whether a string is a member of a ReadonlyArray<string>
|
|
277
308
|
*
|
|
@@ -1204,7 +1235,7 @@ const startupLogVersion = (logger, task, coreCompiler) => {
|
|
|
1204
1235
|
const isDevBuild = coreCompiler.version.includes('-dev.');
|
|
1205
1236
|
let startupMsg;
|
|
1206
1237
|
if (isDevBuild) {
|
|
1207
|
-
startupMsg = logger.yellow(
|
|
1238
|
+
startupMsg = logger.yellow(`[LOCAL DEV] v${coreCompiler.version}`);
|
|
1208
1239
|
}
|
|
1209
1240
|
else {
|
|
1210
1241
|
startupMsg = logger.cyan(`v${coreCompiler.version}`);
|
|
@@ -1365,15 +1396,6 @@ const taskWatch = async (coreCompiler, config) => {
|
|
|
1365
1396
|
}
|
|
1366
1397
|
};
|
|
1367
1398
|
|
|
1368
|
-
const isOutputTargetHydrate = (o) => o.type === DIST_HYDRATE_SCRIPT;
|
|
1369
|
-
const isOutputTargetDocs = (o) => o.type === DOCS_README || o.type === DOCS_JSON || o.type === DOCS_CUSTOM || o.type === DOCS_VSCODE;
|
|
1370
|
-
const DIST_HYDRATE_SCRIPT = 'dist-hydrate-script';
|
|
1371
|
-
const DOCS_CUSTOM = 'docs-custom';
|
|
1372
|
-
const DOCS_JSON = 'docs-json';
|
|
1373
|
-
const DOCS_README = 'docs-readme';
|
|
1374
|
-
const DOCS_VSCODE = 'docs-vscode';
|
|
1375
|
-
const WWW = 'www';
|
|
1376
|
-
|
|
1377
1399
|
const tryFn = async (fn, ...args) => {
|
|
1378
1400
|
try {
|
|
1379
1401
|
return await fn(...args);
|
package/cli/index.js
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo CLI v3.2.
|
|
2
|
+
Rindo CLI v3.2.1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* Default style mode id
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Constant for the 'dist-hydrate-script' output target
|
|
9
|
+
*/
|
|
10
|
+
const DIST_HYDRATE_SCRIPT = 'dist-hydrate-script';
|
|
11
|
+
/**
|
|
12
|
+
* Constant for the 'docs-custom' output target
|
|
13
|
+
*/
|
|
14
|
+
const DOCS_CUSTOM = 'docs-custom';
|
|
15
|
+
/**
|
|
16
|
+
* Constant for the 'docs-json' output target
|
|
17
|
+
*/
|
|
18
|
+
const DOCS_JSON = 'docs-json';
|
|
19
|
+
/**
|
|
20
|
+
* Constant for the 'docs-readme' output target
|
|
21
|
+
*/
|
|
22
|
+
const DOCS_README = 'docs-readme';
|
|
23
|
+
/**
|
|
24
|
+
* Constant for the 'docs-vscode' output target
|
|
25
|
+
*/
|
|
26
|
+
const DOCS_VSCODE = 'docs-vscode';
|
|
27
|
+
/**
|
|
28
|
+
* Constant for the 'www' output target
|
|
29
|
+
*/
|
|
30
|
+
const WWW = 'www';
|
|
31
|
+
|
|
4
32
|
/**
|
|
5
33
|
* Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
|
|
6
34
|
* or whatever you call it!)
|
|
@@ -248,6 +276,9 @@ const pathComponents = (path, rootLength) => {
|
|
|
248
276
|
return [root, ...rest];
|
|
249
277
|
};
|
|
250
278
|
|
|
279
|
+
const isOutputTargetHydrate = (o) => o.type === DIST_HYDRATE_SCRIPT;
|
|
280
|
+
const isOutputTargetDocs = (o) => o.type === DOCS_README || o.type === DOCS_JSON || o.type === DOCS_CUSTOM || o.type === DOCS_VSCODE;
|
|
281
|
+
|
|
251
282
|
/**
|
|
252
283
|
* Check whether a string is a member of a ReadonlyArray<string>
|
|
253
284
|
*
|
|
@@ -1180,7 +1211,7 @@ const startupLogVersion = (logger, task, coreCompiler) => {
|
|
|
1180
1211
|
const isDevBuild = coreCompiler.version.includes('-dev.');
|
|
1181
1212
|
let startupMsg;
|
|
1182
1213
|
if (isDevBuild) {
|
|
1183
|
-
startupMsg = logger.yellow(
|
|
1214
|
+
startupMsg = logger.yellow(`[LOCAL DEV] v${coreCompiler.version}`);
|
|
1184
1215
|
}
|
|
1185
1216
|
else {
|
|
1186
1217
|
startupMsg = logger.cyan(`v${coreCompiler.version}`);
|
|
@@ -1341,15 +1372,6 @@ const taskWatch = async (coreCompiler, config) => {
|
|
|
1341
1372
|
}
|
|
1342
1373
|
};
|
|
1343
1374
|
|
|
1344
|
-
const isOutputTargetHydrate = (o) => o.type === DIST_HYDRATE_SCRIPT;
|
|
1345
|
-
const isOutputTargetDocs = (o) => o.type === DOCS_README || o.type === DOCS_JSON || o.type === DOCS_CUSTOM || o.type === DOCS_VSCODE;
|
|
1346
|
-
const DIST_HYDRATE_SCRIPT = 'dist-hydrate-script';
|
|
1347
|
-
const DOCS_CUSTOM = 'docs-custom';
|
|
1348
|
-
const DOCS_JSON = 'docs-json';
|
|
1349
|
-
const DOCS_README = 'docs-readme';
|
|
1350
|
-
const DOCS_VSCODE = 'docs-vscode';
|
|
1351
|
-
const WWW = 'www';
|
|
1352
|
-
|
|
1353
1375
|
const tryFn = async (fn, ...args) => {
|
|
1354
1376
|
try {
|
|
1355
1377
|
return await fn(...args);
|
package/cli/package.json
CHANGED