@gravity-ui/app-builder 0.6.4 → 0.6.6
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/CHANGELOG.md +14 -0
- package/dist/common/webpack/config.js +4 -1
- package/dist/create-cli.d.ts +2 -2
- package/dist/create-cli.js +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.6](https://github.com/gravity-ui/app-builder/compare/v0.6.5...v0.6.6) (2023-09-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* respect verbose property defined in config ([#68](https://github.com/gravity-ui/app-builder/issues/68)) ([6cba27c](https://github.com/gravity-ui/app-builder/commit/6cba27c1d1321874694446724fa4c37ef9788a93)), closes [#67](https://github.com/gravity-ui/app-builder/issues/67)
|
|
9
|
+
|
|
10
|
+
## [0.6.5](https://github.com/gravity-ui/app-builder/compare/v0.6.4...v0.6.5) (2023-08-16)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* replace babel-plugin-lodash with babel-plugin-import ([#65](https://github.com/gravity-ui/app-builder/issues/65)) ([73b6a3e](https://github.com/gravity-ui/app-builder/commit/73b6a3e5bd340ea3b41ecfc7e61575668eb5f474))
|
|
16
|
+
|
|
3
17
|
## [0.6.4](https://github.com/gravity-ui/app-builder/compare/v0.6.3...v0.6.4) (2023-08-04)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -271,7 +271,10 @@ function createJavaScriptLoader({ isEnvProduction, isEnvDevelopment, config, })
|
|
|
271
271
|
}
|
|
272
272
|
: undefined,
|
|
273
273
|
],
|
|
274
|
-
isEnvProduction &&
|
|
274
|
+
isEnvProduction && [
|
|
275
|
+
require.resolve('babel-plugin-import'),
|
|
276
|
+
{ libraryName: 'lodash', libraryDirectory: '', camel2DashComponentName: false },
|
|
277
|
+
],
|
|
275
278
|
].filter(Boolean),
|
|
276
279
|
sourceType: 'unambiguous',
|
|
277
280
|
cacheDirectory: config.babelCacheDirectory ? config.babelCacheDirectory : true,
|
package/dist/create-cli.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type CliArgs = Awaited<ReturnType<typeof createCli>>;
|
|
2
2
|
export declare function createCli(argv: string[]): {
|
|
3
3
|
[x: string]: unknown;
|
|
4
|
-
verbose: boolean;
|
|
4
|
+
verbose: boolean | undefined;
|
|
5
5
|
c: unknown;
|
|
6
6
|
inspect: number | undefined;
|
|
7
7
|
target: "client" | "server" | undefined;
|
|
@@ -27,7 +27,7 @@ export declare function createCli(argv: string[]): {
|
|
|
27
27
|
$0: string;
|
|
28
28
|
} | Promise<{
|
|
29
29
|
[x: string]: unknown;
|
|
30
|
-
verbose: boolean;
|
|
30
|
+
verbose: boolean | undefined;
|
|
31
31
|
c: unknown;
|
|
32
32
|
inspect: number | undefined;
|
|
33
33
|
target: "client" | "server" | undefined;
|
package/dist/create-cli.js
CHANGED
|
@@ -27,7 +27,6 @@ function createCli(argv) {
|
|
|
27
27
|
}
|
|
28
28
|
return cli
|
|
29
29
|
.option('verbose', {
|
|
30
|
-
default: false,
|
|
31
30
|
type: 'boolean',
|
|
32
31
|
describe: 'Turn on verbose output',
|
|
33
32
|
global: true,
|
|
@@ -193,8 +192,8 @@ function handlerP(fn) {
|
|
|
193
192
|
}
|
|
194
193
|
function getCommandHandler(command, handler) {
|
|
195
194
|
return async (argv) => {
|
|
196
|
-
logger_1.default.setVerbose(Boolean(argv.verbose));
|
|
197
195
|
const config = await (0, config_1.getProjectConfig)(command, argv);
|
|
196
|
+
logger_1.default.setVerbose(Boolean(config.verbose));
|
|
198
197
|
const args = { ...config, logger: logger_1.default };
|
|
199
198
|
const localCmd = resolveLocalCommand(command);
|
|
200
199
|
logger_1.default.verbose(`running command: ${command}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@svgr/plugin-jsx": "^8.0.1",
|
|
74
74
|
"@svgr/webpack": "^8.0.1",
|
|
75
75
|
"babel-loader": "^9.1.2",
|
|
76
|
+
"babel-plugin-import": "^1.13.8",
|
|
76
77
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
77
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
78
78
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
79
79
|
"browserslist": "^4.21.9",
|
|
80
80
|
"chalk": "^4.1.2",
|