@infomaximum/package-cli 1.10.1 → 1.12.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
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.12.0](https://github.com/Infomaximum/package-cli/compare/v1.11.0...v1.12.0) (2023-12-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* добавлено объявление модуля "*.module.less" ([df0b133](https://github.com/Infomaximum/package-cli/commit/df0b133b9bcd205b0209b70f4b28f2b8829372f7))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* удалены объявления модулей ([6c0f4a8](https://github.com/Infomaximum/package-cli/commit/6c0f4a8a02e3cf08062f445a0c58df39edb35470))
|
|
16
|
+
|
|
17
|
+
## [1.11.0](https://github.com/Infomaximum/package-cli/compare/v1.10.1...v1.11.0) (2023-12-15)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* добавлена обработка js, jsx файлов ([baccaba](https://github.com/Infomaximum/package-cli/commit/baccababc23a7fe5b3c78f83aebae4c93083d8a8))
|
|
23
|
+
|
|
5
24
|
### [1.10.1](https://github.com/Infomaximum/package-cli/compare/v1.10.0...v1.10.1) (2023-12-14)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -3,6 +3,7 @@ import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin";
|
|
|
3
3
|
import webpack, {} from "webpack";
|
|
4
4
|
import { systemRequire } from "../../utils.js";
|
|
5
5
|
import { MANIFEST_REG_EXP } from "../../const.js";
|
|
6
|
+
import { cssLoaders } from "./sections/loaders/cssLoaders.js";
|
|
6
7
|
const { ProgressPlugin } = webpack;
|
|
7
8
|
const isProduction = (mode) => mode === "production";
|
|
8
9
|
const isDevelopment = (mode) => mode === "development";
|
|
@@ -31,7 +32,7 @@ export const getCommonWidgetConfig = (mode, PATHS) => {
|
|
|
31
32
|
module: {
|
|
32
33
|
rules: [
|
|
33
34
|
{
|
|
34
|
-
test: /\.(ts|tsx)$/i,
|
|
35
|
+
test: /\.(js|ts|jsx|tsx)$/i,
|
|
35
36
|
exclude: ["/node_modules/"],
|
|
36
37
|
loader: systemRequire.resolve("babel-loader"),
|
|
37
38
|
options: {
|
|
@@ -45,38 +46,12 @@ export const getCommonWidgetConfig = (mode, PATHS) => {
|
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
test: /\.css$/i,
|
|
48
|
-
use:
|
|
49
|
-
systemRequire.resolve("style-loader"),
|
|
50
|
-
systemRequire.resolve("css-loader"),
|
|
51
|
-
{
|
|
52
|
-
loader: systemRequire.resolve("postcss-loader"),
|
|
53
|
-
options: {
|
|
54
|
-
postcssOptions: {
|
|
55
|
-
plugins: [
|
|
56
|
-
systemRequire.resolve("postcss-preset-env"),
|
|
57
|
-
systemRequire.resolve("autoprefixer"),
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
],
|
|
49
|
+
use: cssLoaders,
|
|
63
50
|
},
|
|
64
51
|
{
|
|
65
52
|
test: /\.s[ac]ss$/i,
|
|
66
53
|
use: [
|
|
67
|
-
|
|
68
|
-
systemRequire.resolve("css-loader"),
|
|
69
|
-
{
|
|
70
|
-
loader: systemRequire.resolve("postcss-loader"),
|
|
71
|
-
options: {
|
|
72
|
-
postcssOptions: {
|
|
73
|
-
plugins: [
|
|
74
|
-
systemRequire.resolve("postcss-preset-env"),
|
|
75
|
-
systemRequire.resolve("autoprefixer"),
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
54
|
+
...cssLoaders,
|
|
80
55
|
{
|
|
81
56
|
loader: systemRequire.resolve("sass-loader"),
|
|
82
57
|
options: {
|
|
@@ -91,19 +66,7 @@ export const getCommonWidgetConfig = (mode, PATHS) => {
|
|
|
91
66
|
{
|
|
92
67
|
test: /\.less$/i,
|
|
93
68
|
use: [
|
|
94
|
-
|
|
95
|
-
systemRequire.resolve("css-loader"),
|
|
96
|
-
{
|
|
97
|
-
loader: systemRequire.resolve("postcss-loader"),
|
|
98
|
-
options: {
|
|
99
|
-
postcssOptions: {
|
|
100
|
-
plugins: [
|
|
101
|
-
systemRequire.resolve("postcss-preset-env"),
|
|
102
|
-
systemRequire.resolve("autoprefixer"),
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
69
|
+
...cssLoaders,
|
|
107
70
|
{
|
|
108
71
|
loader: systemRequire.resolve("less-loader"),
|
|
109
72
|
options: {
|
|
@@ -116,7 +79,7 @@ export const getCommonWidgetConfig = (mode, PATHS) => {
|
|
|
116
79
|
],
|
|
117
80
|
},
|
|
118
81
|
{
|
|
119
|
-
test: /\.(eot|ttf|woff|woff2|png|jpg|gif)$/i,
|
|
82
|
+
test: /\.(eot|ttf|woff|woff2|png|jpg|jpeg|webp|gif)$/i,
|
|
120
83
|
type: "asset/inline",
|
|
121
84
|
},
|
|
122
85
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { systemRequire } from "../../../../utils.js";
|
|
2
|
+
export const cssLoaders = [
|
|
3
|
+
systemRequire.resolve("style-loader"),
|
|
4
|
+
systemRequire.resolve("css-loader"),
|
|
5
|
+
{
|
|
6
|
+
loader: systemRequire.resolve("postcss-loader"),
|
|
7
|
+
options: {
|
|
8
|
+
postcssOptions: {
|
|
9
|
+
plugins: [
|
|
10
|
+
systemRequire.resolve("postcss-preset-env"),
|
|
11
|
+
systemRequire.resolve("autoprefixer"),
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
];
|
|
@@ -3,26 +3,6 @@ export const APP_D_TS_TEMPLATE = `\
|
|
|
3
3
|
/// <reference types="@infomaximum/global-types" />
|
|
4
4
|
/// <reference types="@infomaximum/custom-widget" />
|
|
5
5
|
|
|
6
|
-
/// <reference types="node" />
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
/// <reference types="react-dom" />
|
|
9
|
-
|
|
10
|
-
declare namespace NodeJS {
|
|
11
|
-
interface ProcessEnv {
|
|
12
|
-
readonly NODE_ENV: "development" | "production";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare module "*.avif" {
|
|
17
|
-
const src: string;
|
|
18
|
-
export default src;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module "*.bmp" {
|
|
22
|
-
const src: string;
|
|
23
|
-
export default src;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
6
|
declare module "*.gif" {
|
|
27
7
|
const src: string;
|
|
28
8
|
export default src;
|
|
@@ -77,4 +57,9 @@ declare module "*.module.sass" {
|
|
|
77
57
|
const classes: { readonly [key: string]: string };
|
|
78
58
|
export default classes;
|
|
79
59
|
}
|
|
60
|
+
|
|
61
|
+
declare module "*.module.less" {
|
|
62
|
+
const classes: { readonly [key: string]: string };
|
|
63
|
+
export default classes;
|
|
64
|
+
}
|
|
80
65
|
`;
|