@atlaspack/reporter-cli 2.17.3-typescript-b27501580.0 → 2.17.3-typescript-5b4d3ad41.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/lib/CLIReporter.d.ts +5 -0
- package/lib/bundleReport.d.ts +3 -0
- package/lib/emoji.d.ts +7 -0
- package/lib/logLevels.d.ts +10 -0
- package/lib/phaseReport.d.ts +3 -0
- package/lib/render.d.ts +14 -0
- package/lib/utils.d.ts +5 -0
- package/package.json +6 -6
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReporterEvent, PluginOptions } from '@atlaspack/types';
|
|
2
|
+
import { Reporter } from '@atlaspack/plugin';
|
|
3
|
+
export declare function _report(event: ReporterEvent, options: PluginOptions): Promise<void>;
|
|
4
|
+
declare const _default: Reporter;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BundleGraph, FilePath, PackagedBundle } from '@atlaspack/types';
|
|
2
|
+
import type { FileSystem } from '@atlaspack/fs';
|
|
3
|
+
export default function bundleReport(bundleGraph: BundleGraph<PackagedBundle>, fs: FileSystem, projectRoot: FilePath, assetCount?: number): Promise<void>;
|
package/lib/emoji.d.ts
ADDED
package/lib/render.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Writable } from 'stream';
|
|
2
|
+
import type { PadAlign } from './utils';
|
|
3
|
+
type ColumnType = {
|
|
4
|
+
align: PadAlign;
|
|
5
|
+
};
|
|
6
|
+
export declare const isTTY: any | boolean | true;
|
|
7
|
+
export declare function _setStdio(stdoutLike: Writable, stderrLike: Writable): void;
|
|
8
|
+
export declare function writeOut(message: string, isError?: boolean): void;
|
|
9
|
+
export declare function persistMessage(message: string): void;
|
|
10
|
+
export declare function updateSpinner(message: string): void;
|
|
11
|
+
export declare function persistSpinner(name: string, status: 'success' | 'error', message: string): void;
|
|
12
|
+
export declare function resetWindow(): void;
|
|
13
|
+
export declare function table(columns: Array<ColumnType>, table: Array<Array<string>>): void;
|
|
14
|
+
export {};
|
package/lib/utils.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type PadAlign = 'left' | 'right';
|
|
2
|
+
export declare function getTerminalWidth(): any;
|
|
3
|
+
export declare function pad(text: string, length: number, align?: PadAlign): string;
|
|
4
|
+
export declare function formatFilename(filename: string, color?: (s: string) => string): string;
|
|
5
|
+
export declare function countLines(message: string): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/reporter-cli",
|
|
3
|
-
"version": "2.17.3-typescript-
|
|
3
|
+
"version": "2.17.3-typescript-5b4d3ad41.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaspack/plugin": "2.14.21-typescript-
|
|
31
|
-
"@atlaspack/types": "2.15.11-typescript-
|
|
32
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
|
30
|
+
"@atlaspack/plugin": "2.14.21-typescript-5b4d3ad41.0",
|
|
31
|
+
"@atlaspack/types": "2.15.11-typescript-5b4d3ad41.0",
|
|
32
|
+
"@atlaspack/utils": "2.17.3-typescript-5b4d3ad41.0",
|
|
33
33
|
"chalk": "^4.1.0",
|
|
34
34
|
"filesize": "^6.1.0",
|
|
35
35
|
"nullthrows": "^1.1.1",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"wrap-ansi": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@atlaspack/feature-flags": "2.19.3-typescript-
|
|
42
|
+
"@atlaspack/feature-flags": "2.19.3-typescript-5b4d3ad41.0"
|
|
43
43
|
},
|
|
44
44
|
"type": "commonjs",
|
|
45
45
|
"scripts": {
|
|
46
46
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5b4d3ad41ffa002b989ba77271bb3010a1f05b2a"
|
|
49
49
|
}
|