@gravity-ui/app-builder 0.0.1 → 0.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.0](https://github.com/gravity-ui/app-builder/compare/v0.0.2...v0.1.0) (2023-02-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* limit load of dayjs locales ([#3](https://github.com/gravity-ui/app-builder/issues/3)) ([a7ff218](https://github.com/gravity-ui/app-builder/commit/a7ff2189ad99473e51f7470bc7e9ee32c490b64c))
|
|
9
|
+
|
|
10
|
+
## [0.0.2](https://github.com/gravity-ui/app-builder/compare/v0.0.1...v0.0.2) (2022-12-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **cli:** do not restrict value of the CDN parametr ([9f62c9e](https://github.com/gravity-ui/app-builder/commit/9f62c9e97f04e96567a068a85038776e0f88973d))
|
|
16
|
+
* do not use postcss feature that would need an extra browser library ([a788d9c](https://github.com/gravity-ui/app-builder/commit/a788d9cf334d6306a6feb49ae5a08d4f7518dfa3))
|
|
17
|
+
|
|
3
18
|
## 0.0.1 (2022-12-06)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -137,7 +137,9 @@ function compileStyles(inputDir, outputDir, onFinish, additionalGlobs = []) {
|
|
|
137
137
|
},
|
|
138
138
|
});
|
|
139
139
|
if (sassTransformed === null || sassTransformed === void 0 ? void 0 : sassTransformed.css) {
|
|
140
|
-
const postcssTransformed = await (0, postcss_1.default)([
|
|
140
|
+
const postcssTransformed = await (0, postcss_1.default)([
|
|
141
|
+
(0, postcss_preset_env_1.default)({ enableClientSidePolyfills: false }),
|
|
142
|
+
]).process(sassTransformed.css, {
|
|
141
143
|
to: cssFile.split('/').pop(),
|
|
142
144
|
map: { prev: (_a = sassTransformed.map) === null || _a === void 0 ? void 0 : _a.toString(), inline: false },
|
|
143
145
|
});
|
|
@@ -26,7 +26,12 @@ interface DevServerConfig {
|
|
|
26
26
|
}
|
|
27
27
|
interface ContextReplacement {
|
|
28
28
|
'highlight.js'?: string[];
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Used to limit loading of "moment" and "dayjs" locales
|
|
31
|
+
*
|
|
32
|
+
* @default ['ru']
|
|
33
|
+
*/
|
|
34
|
+
locale?: string[];
|
|
30
35
|
}
|
|
31
36
|
export interface LibraryConfig {
|
|
32
37
|
lib?: {
|
|
@@ -319,7 +319,7 @@ function createStylesRule({ isEnvDevelopment, isEnvProduction, config, }) {
|
|
|
319
319
|
sourceMap: !config.disableSourceMapGeneration,
|
|
320
320
|
postcssOptions: {
|
|
321
321
|
config: false,
|
|
322
|
-
plugins: [(0, postcss_preset_env_1.default)()],
|
|
322
|
+
plugins: [(0, postcss_preset_env_1.default)({ enableClientSidePolyfills: false })],
|
|
323
323
|
},
|
|
324
324
|
},
|
|
325
325
|
});
|
|
@@ -506,7 +506,10 @@ function configurePlugins(options) {
|
|
|
506
506
|
const contextReplacement = config.contextReplacement || {};
|
|
507
507
|
plugins.push(new webpack.ContextReplacementPlugin(/moment[\\/]locale$/,
|
|
508
508
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
509
|
-
new RegExp(`^\\./(${(contextReplacement.
|
|
509
|
+
new RegExp(`^\\./(${(contextReplacement.locale || ['ru']).join('|')})$`)));
|
|
510
|
+
plugins.push(new webpack.ContextReplacementPlugin(/dayjs[\\/]locale$/,
|
|
511
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
512
|
+
new RegExp(`^\\./(${(contextReplacement.locale || ['ru']).join('|')})$`)));
|
|
510
513
|
if (contextReplacement['highlight.js']) {
|
|
511
514
|
plugins.push(new webpack.ContextReplacementPlugin(/highlight\.js[\\/]lib[\\/]languages$/,
|
|
512
515
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
package/dist/create-cli.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function createCli(argv: string[]): {
|
|
|
22
22
|
"disable-fork-ts-checker": boolean | undefined;
|
|
23
23
|
disableSourceMapGeneration: boolean | undefined;
|
|
24
24
|
"disable-source-map-generation": boolean | undefined;
|
|
25
|
-
cdn:
|
|
25
|
+
cdn: string | undefined;
|
|
26
26
|
_: (string | number)[];
|
|
27
27
|
$0: string;
|
|
28
28
|
} | Promise<{
|
|
@@ -48,7 +48,7 @@ export declare function createCli(argv: string[]): {
|
|
|
48
48
|
"disable-fork-ts-checker": boolean | undefined;
|
|
49
49
|
disableSourceMapGeneration: boolean | undefined;
|
|
50
50
|
"disable-source-map-generation": boolean | undefined;
|
|
51
|
-
cdn:
|
|
51
|
+
cdn: string | undefined;
|
|
52
52
|
_: (string | number)[];
|
|
53
53
|
$0: string;
|
|
54
54
|
}>;
|
package/dist/create-cli.js
CHANGED
|
@@ -168,8 +168,8 @@ function createCli(argv) {
|
|
|
168
168
|
})
|
|
169
169
|
.option('cdn', {
|
|
170
170
|
group: 'Client',
|
|
171
|
-
describe: 'Disable upload files to CDN',
|
|
172
|
-
|
|
171
|
+
describe: 'Disable upload files to CDN [false]',
|
|
172
|
+
type: 'string',
|
|
173
173
|
}),
|
|
174
174
|
handler: handlerP(getCommandHandler('build')),
|
|
175
175
|
})
|