@gravity-ui/app-builder 0.9.1 → 0.9.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
2
|
import type { Logger } from '../logger';
|
|
3
|
-
export declare function webpackCompilerHandlerFactory(logger: Logger, onCompilationEnd?: () => void): (err?: Error, stats?: webpack.Stats) => Promise<void>;
|
|
3
|
+
export declare function webpackCompilerHandlerFactory(logger: Logger, onCompilationEnd?: () => void): (err?: Error | null, stats?: webpack.Stats) => Promise<void>;
|
|
4
4
|
export declare function resolveTsconfigPathsToAlias(tsConfigPath: string): {
|
|
5
5
|
aliases: Record<string, string[]>;
|
|
6
6
|
modules: string[];
|
|
@@ -49,8 +49,13 @@ function webpackCompilerHandlerFactory(logger, onCompilationEnd) {
|
|
|
49
49
|
if (onCompilationEnd) {
|
|
50
50
|
await onCompilationEnd();
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
if (stats) {
|
|
53
|
+
const time = stats.endTime - stats.startTime;
|
|
54
|
+
logger.success(`Client was successfully compiled in ${(0, pretty_time_1.prettyTime)(BigInt(time) * BigInt(1000000))}`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
logger.success(`Client was successfully compiled`);
|
|
58
|
+
}
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
exports.webpackCompilerHandlerFactory = webpackCompilerHandlerFactory;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"get-port": "^7.0.0",
|
|
99
99
|
"lodash": "^4.17.21",
|
|
100
100
|
"mime-types": "^2.1.35",
|
|
101
|
-
"mini-css-extract-plugin": "^2.
|
|
101
|
+
"mini-css-extract-plugin": "^2.8.1",
|
|
102
102
|
"moment-timezone-data-webpack-plugin": "^1.5.1",
|
|
103
103
|
"nodemon": "^3.0.1",
|
|
104
104
|
"p-map": "^4.0.0",
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"strip-ansi": "^6.0.1",
|
|
121
121
|
"style-loader": "^3.3.3",
|
|
122
122
|
"svgo": "^3.0.2",
|
|
123
|
-
"terser-webpack-plugin": "5.3.
|
|
124
|
-
"ts-node": "10.9.
|
|
123
|
+
"terser-webpack-plugin": "5.3.10",
|
|
124
|
+
"ts-node": "10.9.2",
|
|
125
125
|
"tslib": "^2.6.2",
|
|
126
126
|
"typescript": "^5.3.3",
|
|
127
|
-
"webpack": "^5.
|
|
128
|
-
"webpack-assets-manifest": "^5.1
|
|
129
|
-
"webpack-bundle-analyzer": "^4.
|
|
127
|
+
"webpack": "^5.91.0",
|
|
128
|
+
"webpack-assets-manifest": "^5.2.1",
|
|
129
|
+
"webpack-bundle-analyzer": "^4.10.1",
|
|
130
130
|
"webpack-dev-server": "^4.15.1",
|
|
131
131
|
"webpack-manifest-plugin": "^5.0.0",
|
|
132
132
|
"worker-loader": "^3.0.8",
|