@ryanatkn/gro 0.127.1 → 0.128.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.
- package/dist/invoke_task.d.ts +7 -1
- package/dist/invoke_task.js +9 -1
- package/dist/package.js +4 -4
- package/package.json +3 -3
package/dist/invoke_task.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Timings } from '@ryanatkn/belt/timings.js';
|
|
1
2
|
import { type Args } from './args.js';
|
|
2
3
|
import { Raw_Input_Path } from './input_path.js';
|
|
3
4
|
import type { Gro_Config } from './config.js';
|
|
@@ -17,5 +18,10 @@ import type { Gro_Config } from './config.js';
|
|
|
17
18
|
* Precise error messages are especially difficult and
|
|
18
19
|
* there are some subtle differences in the complex logical branches.
|
|
19
20
|
* The comments describe each condition.
|
|
21
|
+
*
|
|
22
|
+
* @param task_name - The name of the task to invoke.
|
|
23
|
+
* @param args - The CLI args to pass to the task.
|
|
24
|
+
* @param config - The Gro configuration.
|
|
25
|
+
* @param initial_timings - The timings to use for the top-level task, `null` for composed tasks.
|
|
20
26
|
*/
|
|
21
|
-
export declare const invoke_task: (task_name: Raw_Input_Path, args: Args | undefined, config: Gro_Config,
|
|
27
|
+
export declare const invoke_task: (task_name: Raw_Input_Path, args: Args | undefined, config: Gro_Config, initial_timings?: Timings | null) => Promise<void>;
|
package/dist/invoke_task.js
CHANGED
|
@@ -24,12 +24,20 @@ import { log_tasks, log_error_reasons } from './task_logging.js';
|
|
|
24
24
|
* Precise error messages are especially difficult and
|
|
25
25
|
* there are some subtle differences in the complex logical branches.
|
|
26
26
|
* The comments describe each condition.
|
|
27
|
+
*
|
|
28
|
+
* @param task_name - The name of the task to invoke.
|
|
29
|
+
* @param args - The CLI args to pass to the task.
|
|
30
|
+
* @param config - The Gro configuration.
|
|
31
|
+
* @param initial_timings - The timings to use for the top-level task, `null` for composed tasks.
|
|
27
32
|
*/
|
|
28
|
-
export const invoke_task = async (task_name, args, config,
|
|
33
|
+
export const invoke_task = async (task_name, args, config, initial_timings = null) => {
|
|
29
34
|
const log = new System_Logger(print_log_label(task_name || 'gro'));
|
|
30
35
|
log.info('invoking', task_name ? cyan(task_name) : 'gro');
|
|
36
|
+
const timings = initial_timings ?? new Timings();
|
|
31
37
|
const total_timing = create_stopwatch();
|
|
32
38
|
const finish = () => {
|
|
39
|
+
if (!initial_timings)
|
|
40
|
+
return; // print timings only for the top-level task
|
|
33
41
|
print_timings(timings, log);
|
|
34
42
|
log.info(`🕒 ${print_ms(total_timing())}`);
|
|
35
43
|
};
|
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// generated by src/lib/package.gen.ts
|
|
2
2
|
export const package_json = {
|
|
3
3
|
name: '@ryanatkn/gro',
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.128.0',
|
|
5
5
|
description: 'task runner and toolkit extending SvelteKit',
|
|
6
6
|
motto: 'generate, run, optimize',
|
|
7
7
|
glyph: '🌰',
|
|
@@ -34,7 +34,7 @@ export const package_json = {
|
|
|
34
34
|
'typescript',
|
|
35
35
|
],
|
|
36
36
|
dependencies: {
|
|
37
|
-
'@ryanatkn/belt': '^0.
|
|
37
|
+
'@ryanatkn/belt': '^0.24.1',
|
|
38
38
|
chokidar: '^3.6.0',
|
|
39
39
|
dotenv: '^16.4.5',
|
|
40
40
|
'es-module-lexer': '^1.5.4',
|
|
@@ -50,7 +50,7 @@ export const package_json = {
|
|
|
50
50
|
'@changesets/changelog-git': '^0.2.0',
|
|
51
51
|
'@changesets/types': '^6.0.0',
|
|
52
52
|
'@ryanatkn/eslint-config': '^0.1.3',
|
|
53
|
-
'@ryanatkn/fuz': '^0.
|
|
53
|
+
'@ryanatkn/fuz': '^0.106.0',
|
|
54
54
|
'@ryanatkn/moss': '^0.6.2',
|
|
55
55
|
'@sveltejs/adapter-static': '^3.0.2',
|
|
56
56
|
'@sveltejs/kit': '^2.5.18',
|
|
@@ -262,7 +262,7 @@ export const package_json = {
|
|
|
262
262
|
};
|
|
263
263
|
export const src_json = {
|
|
264
264
|
name: '@ryanatkn/gro',
|
|
265
|
-
version: '0.
|
|
265
|
+
version: '0.128.0',
|
|
266
266
|
modules: {
|
|
267
267
|
'.': {
|
|
268
268
|
path: 'index.ts',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanatkn/gro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
4
4
|
"description": "task runner and toolkit extending SvelteKit",
|
|
5
5
|
"motto": "generate, run, optimize",
|
|
6
6
|
"glyph": "🌰",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typescript"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ryanatkn/belt": "^0.
|
|
47
|
+
"@ryanatkn/belt": "^0.24.1",
|
|
48
48
|
"chokidar": "^3.6.0",
|
|
49
49
|
"dotenv": "^16.4.5",
|
|
50
50
|
"es-module-lexer": "^1.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@changesets/changelog-git": "^0.2.0",
|
|
64
64
|
"@changesets/types": "^6.0.0",
|
|
65
65
|
"@ryanatkn/eslint-config": "^0.1.3",
|
|
66
|
-
"@ryanatkn/fuz": "^0.
|
|
66
|
+
"@ryanatkn/fuz": "^0.106.0",
|
|
67
67
|
"@ryanatkn/moss": "^0.6.2",
|
|
68
68
|
"@sveltejs/adapter-static": "^3.0.2",
|
|
69
69
|
"@sveltejs/kit": "^2.5.18",
|