@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo CLI (CommonJS) v3.2.0 | MIT Licensed | https://rindojs.web.app
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('[LOCAL DEV]');
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.0 | MIT Licensed | https://rindojs.web.app
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('[LOCAL DEV]');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/cli",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Rindo CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/compiler",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Rindo Compiler.",
5
5
  "main": "./rindo.js",
6
6
  "types": "./rindo.d.ts",