@nimbus-ds/webpack 1.5.0-rc.3 → 1.5.0-rc.4
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/dist/config/base.d.ts +2 -8
- package/dist/config/base.js +3 -3
- package/dist/config/base.js.map +1 -1
- package/dist/index.d.ts +2 -14
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/types.d.ts +8 -0
- package/dist/utils/types.js +3 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +1 -1
package/dist/config/base.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Configuration } from "webpack";
|
|
2
|
-
import {
|
|
3
|
-
export declare const getConfiguration: (config?: Configuration, extraParams?:
|
|
4
|
-
dtsBundleConfig?: {
|
|
5
|
-
entries: string[];
|
|
6
|
-
};
|
|
7
|
-
packageJsonConfig?: MoveFilesIntoDistFolderPluginOptions;
|
|
8
|
-
useClientInjectionOptions?: any;
|
|
9
|
-
}) => Configuration;
|
|
2
|
+
import { WebpackBaseConfig } from "../utils";
|
|
3
|
+
export declare const getConfiguration: (config?: Configuration, extraParams?: WebpackBaseConfig) => Configuration;
|
|
10
4
|
declare const _default: Configuration;
|
|
11
5
|
export default _default;
|
package/dist/config/base.js
CHANGED
|
@@ -13,7 +13,7 @@ const alias_1 = require("./alias");
|
|
|
13
13
|
const external_1 = require("./external");
|
|
14
14
|
const production_1 = tslib_1.__importDefault(require("./production"));
|
|
15
15
|
const development_1 = tslib_1.__importDefault(require("./development"));
|
|
16
|
-
const
|
|
16
|
+
const webpack = ({ dtsBundleConfig, packageJsonConfig, useClientInjectionOptions, } = {}) => ({
|
|
17
17
|
target: "node",
|
|
18
18
|
mode: utils_1.isProduction ? "production" : "development",
|
|
19
19
|
entry: {
|
|
@@ -42,8 +42,8 @@ const webpackBase = (dtsBundleConfig, packageJsonConfig, useClientInjectionOptio
|
|
|
42
42
|
externals: external_1.externalItems,
|
|
43
43
|
});
|
|
44
44
|
const getConfiguration = (config, extraParams) => utils_1.isProduction
|
|
45
|
-
? (0, webpack_merge_1.default)(
|
|
46
|
-
: (0, webpack_merge_1.default)(
|
|
45
|
+
? (0, webpack_merge_1.default)(webpack(extraParams), production_1.default, config || {})
|
|
46
|
+
: (0, webpack_merge_1.default)(webpack(), development_1.default, config || {});
|
|
47
47
|
exports.getConfiguration = getConfiguration;
|
|
48
48
|
exports.default = (0, exports.getConfiguration)();
|
|
49
49
|
//# sourceMappingURL=base.js.map
|
package/dist/config/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/config/base.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,0EAAkC;AAGlC,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/config/base.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,0EAAkC;AAGlC,oCAA6E;AAC7E,oCAAmD;AACnD,wCAIoB;AACpB,mCAAqC;AACrC,yCAA2C;AAE3C,sEAAsC;AACtC,wEAAwC;AAExC,MAAM,OAAO,GAAG,CAAC,EACf,eAAe,EACf,iBAAiB,EACjB,yBAAyB,MACJ,EAAE,EAAiB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,oBAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa;IACjD,KAAK,EAAE;QACL,SAAS,EAAE,gBAAgB;KAC5B;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CACrB,QAAQ,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iBAAiB;QACtE,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC;YAC9B,IAAI,EAAE,KAAK;SACZ;QACD,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,IAAA,wBAAgB,EAAC,CAAC,sBAAc,EAAE,eAAO,CAAC,CAAC;KACnD;IACD,OAAO,EAAE;QACP,IAAA,kCAAwB,EAAC,eAAe,CAAC;QACzC,IAAI,uCAA6B,CAAC,iBAAiB,CAAC;QACpD,IAAI,kCAAwB,CAAC,yBAAyB,CAAC;KACxD;IACD,OAAO,EAAE;QACP,KAAK,EAAE,kBAAU;QACjB,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;KACnC;IACD,SAAS,EAAE,wBAAa;CACzB,CAAC,CAAC;AAEI,MAAM,gBAAgB,GAAG,CAC9B,MAAsB,EACtB,WAA+B,EAC/B,EAAE,CACF,oBAAY;IACV,CAAC,CAAC,IAAA,uBAAK,EAAC,OAAO,CAAC,WAAW,CAAC,EAAE,oBAAU,EAAE,MAAM,IAAI,EAAE,CAAC;IACvD,CAAC,CAAC,IAAA,uBAAK,EAAC,OAAO,EAAE,EAAE,qBAAW,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;AANrC,QAAA,gBAAgB,oBAMqB;AAElD,kBAAe,IAAA,wBAAgB,GAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -56,13 +56,7 @@ export declare const configuration: {
|
|
|
56
56
|
development: import("webpack").Configuration;
|
|
57
57
|
production: import("webpack").Configuration;
|
|
58
58
|
base: import("webpack").Configuration;
|
|
59
|
-
getConfiguration: (config?: import("webpack").Configuration | undefined, extraParams?:
|
|
60
|
-
dtsBundleConfig?: {
|
|
61
|
-
entries: string[];
|
|
62
|
-
} | undefined;
|
|
63
|
-
packageJsonConfig?: import("./plugins").MoveFilesIntoDistFolderPluginOptions | undefined;
|
|
64
|
-
useClientInjectionOptions?: any;
|
|
65
|
-
} | undefined) => import("webpack").Configuration;
|
|
59
|
+
getConfiguration: (config?: import("webpack").Configuration | undefined, extraParams?: import("./utils").WebpackBaseConfig | undefined) => import("webpack").Configuration;
|
|
66
60
|
};
|
|
67
61
|
export declare const utils: {
|
|
68
62
|
rootDir: string;
|
|
@@ -146,13 +140,7 @@ declare const webpack: {
|
|
|
146
140
|
development: import("webpack").Configuration;
|
|
147
141
|
production: import("webpack").Configuration;
|
|
148
142
|
base: import("webpack").Configuration;
|
|
149
|
-
getConfiguration: (config?: import("webpack").Configuration | undefined, extraParams?:
|
|
150
|
-
dtsBundleConfig?: {
|
|
151
|
-
entries: string[];
|
|
152
|
-
} | undefined;
|
|
153
|
-
packageJsonConfig?: import("./plugins").MoveFilesIntoDistFolderPluginOptions | undefined;
|
|
154
|
-
useClientInjectionOptions?: any;
|
|
155
|
-
} | undefined) => import("webpack").Configuration;
|
|
143
|
+
getConfiguration: (config?: import("webpack").Configuration | undefined, extraParams?: import("./utils").WebpackBaseConfig | undefined) => import("webpack").Configuration;
|
|
156
144
|
};
|
|
157
145
|
utils: {
|
|
158
146
|
rootDir: string;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./constants"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./helpers"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,oDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,oDAA0B;AAC1B,kDAAwB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MoveFilesIntoDistFolderPluginOptions, UseClientInjectionPluginOptions } from "../plugins";
|
|
2
|
+
export type WebpackBaseConfig = {
|
|
3
|
+
dtsBundleConfig?: {
|
|
4
|
+
entries: string[];
|
|
5
|
+
};
|
|
6
|
+
packageJsonConfig?: MoveFilesIntoDistFolderPluginOptions;
|
|
7
|
+
useClientInjectionOptions?: UseClientInjectionPluginOptions;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":""}
|