@nimbus-ds/webpack 1.3.1-rc.1 → 1.4.0-rc.1
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 +10 -0
- package/package.json +3 -4
- package/dist/config/alias.d.ts +0 -7
- package/dist/config/alias.js +0 -27
- package/dist/config/alias.js.map +0 -1
- package/dist/config/base.d.ts +0 -4
- package/dist/config/base.js +0 -41
- package/dist/config/base.js.map +0 -1
- package/dist/config/development.d.ts +0 -6
- package/dist/config/development.js +0 -12
- package/dist/config/development.js.map +0 -1
- package/dist/config/external.d.ts +0 -32
- package/dist/config/external.js +0 -24
- package/dist/config/external.js.map +0 -1
- package/dist/config/index.d.ts +0 -5
- package/dist/config/index.js +0 -20
- package/dist/config/index.js.map +0 -1
- package/dist/config/production.d.ts +0 -6
- package/dist/config/production.js +0 -16
- package/dist/config/production.js.map +0 -1
- package/dist/index.d.ts +0 -149
- package/dist/index.js +0 -38
- package/dist/index.js.map +0 -1
- package/dist/plugins/cssHashRemoverPlugin.d.ts +0 -14
- package/dist/plugins/cssHashRemoverPlugin.js +0 -60
- package/dist/plugins/cssHashRemoverPlugin.js.map +0 -1
- package/dist/plugins/cssMinimizerPlugin.d.ts +0 -5
- package/dist/plugins/cssMinimizerPlugin.js +0 -10
- package/dist/plugins/cssMinimizerPlugin.js.map +0 -1
- package/dist/plugins/dtsBundleGeneratorPlugin.d.ts +0 -7
- package/dist/plugins/dtsBundleGeneratorPlugin.js +0 -24
- package/dist/plugins/dtsBundleGeneratorPlugin.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -6
- package/dist/plugins/index.js +0 -16
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/miniCssExtract.d.ts +0 -5
- package/dist/plugins/miniCssExtract.js +0 -16
- package/dist/plugins/miniCssExtract.js.map +0 -1
- package/dist/plugins/terserJSPlugin.d.ts +0 -5
- package/dist/plugins/terserJSPlugin.js +0 -14
- package/dist/plugins/terserJSPlugin.js.map +0 -1
- package/dist/plugins/vanillaExtractPlugin.d.ts +0 -5
- package/dist/plugins/vanillaExtractPlugin.js +0 -11
- package/dist/plugins/vanillaExtractPlugin.js.map +0 -1
- package/dist/rules/common.d.ts +0 -11
- package/dist/rules/common.js +0 -15
- package/dist/rules/common.js.map +0 -1
- package/dist/rules/index.d.ts +0 -3
- package/dist/rules/index.js +0 -7
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/styles.d.ts +0 -15
- package/dist/rules/styles.js +0 -21
- package/dist/rules/styles.js.map +0 -1
- package/dist/rules/svg.d.ts +0 -7
- package/dist/rules/svg.js +0 -11
- package/dist/rules/svg.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/constants.js +0 -18
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/helpers.d.ts +0 -15
- package/dist/utils/helpers.js +0 -9
- package/dist/utils/helpers.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -6
- package/dist/utils/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This package is intended for internal use in generating builds of each design system package. It contains all the necessary settings and dependencies to optimize the creation of our builds.
|
|
4
4
|
|
|
5
|
+
## 2023-09-26 `1.2.0`
|
|
6
|
+
|
|
7
|
+
#### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- Updated vanilla extract to new version. ([#193](https://github.com/TiendaNube/nimbus-design-system/pull/#193) by [@juniorconquista](https://github.com/juniorconquista))
|
|
10
|
+
|
|
11
|
+
#### 📚 3rd party library updates
|
|
12
|
+
|
|
13
|
+
- Updated `@vanilla-extract/webpack-plugin@2.3.1`. ([#193](https://github.com/TiendaNube/nimbus-design-system/pull/#193) by [@juniorconquista](https://github.com/juniorconquista))
|
|
14
|
+
|
|
5
15
|
## 2023-03-13 `1.1.0`
|
|
6
16
|
|
|
7
17
|
#### 🎉 New features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-ds/webpack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/dashify": "^1.0.1",
|
|
26
26
|
"@types/webpack": "^5.28.0",
|
|
27
|
-
"@vanilla-extract/webpack-plugin": "^2.
|
|
27
|
+
"@vanilla-extract/webpack-plugin": "^2.3.1",
|
|
28
28
|
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
29
29
|
"dashify": "^2.0.0",
|
|
30
|
-
"dotenv": "^16.0.3",
|
|
31
30
|
"mini-css-extract-plugin": "^2.7.2",
|
|
32
31
|
"terser-webpack-plugin": "^5.3.6",
|
|
33
32
|
"typescript": "^4.9.3",
|
|
@@ -35,5 +34,5 @@
|
|
|
35
34
|
"webpack-merge": "^5.8.0",
|
|
36
35
|
"webpack-shell-plugin-next": "^2.3.1"
|
|
37
36
|
},
|
|
38
|
-
"stableVersion": "1.3.
|
|
37
|
+
"stableVersion": "1.3.1"
|
|
39
38
|
}
|
package/dist/config/alias.d.ts
DELETED
package/dist/config/alias.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aliasItems = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
* @see https://webpack.js.org/configuration/dev-server/
|
|
8
|
-
*/
|
|
9
|
-
const dashify_1 = tslib_1.__importDefault(require("dashify"));
|
|
10
|
-
const glob_1 = tslib_1.__importDefault(require("glob"));
|
|
11
|
-
const path_1 = require("path");
|
|
12
|
-
const constants_1 = require("../utils/constants");
|
|
13
|
-
const paths = glob_1.default.sync(`${(0, path_1.join)(constants_1.rootDir, "./packages/react/src/*/*/src")}`);
|
|
14
|
-
const packages = paths.reduce((prev, curr) => {
|
|
15
|
-
const key = `@nimbus-ds/${(0, dashify_1.default)(curr.split("/")[10])}`;
|
|
16
|
-
prev[key] = curr;
|
|
17
|
-
return prev;
|
|
18
|
-
}, {});
|
|
19
|
-
exports.aliasItems = {
|
|
20
|
-
"@nimbus-ds/icons": (0, path_1.join)(constants_1.rootDir, "./packages/icons"),
|
|
21
|
-
"@nimbus-ds/tokens": (0, path_1.join)(constants_1.rootDir, "./packages/core/tokens"),
|
|
22
|
-
"@nimbus-ds/typings": (0, path_1.join)(constants_1.rootDir, "./packages/core/typings/src"),
|
|
23
|
-
"@nimbus-ds/styles": (0, path_1.join)(constants_1.rootDir, "./packages/core/styles/src"),
|
|
24
|
-
"@nimbus-ds/webpack": (0, path_1.join)(constants_1.rootDir, "./packages/core/webpack/src"),
|
|
25
|
-
...packages,
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=alias.js.map
|
package/dist/config/alias.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../../src/config/alias.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,8DAA8B;AAC9B,wDAAwB;AACxB,+BAA4B;AAC5B,kDAA6C;AAE7C,MAAM,KAAK,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,IAAA,WAAI,EAAC,mBAAO,EAAE,8BAA8B,CAAC,EAAE,CAAC,CAAC;AAE5E,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAA+B,EAAE,IAAI,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,cAAc,IAAA,iBAAO,EAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACzD,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACjB,OAAO,IAAI,CAAC;AACd,CAAC,EAAE,EAAE,CAAC,CAAC;AAEM,QAAA,UAAU,GAAG;IACxB,kBAAkB,EAAE,IAAA,WAAI,EAAC,mBAAO,EAAE,kBAAkB,CAAC;IACrD,mBAAmB,EAAE,IAAA,WAAI,EAAC,mBAAO,EAAE,wBAAwB,CAAC;IAC5D,oBAAoB,EAAE,IAAA,WAAI,EAAC,mBAAO,EAAE,6BAA6B,CAAC;IAClE,mBAAmB,EAAE,IAAA,WAAI,EAAC,mBAAO,EAAE,4BAA4B,CAAC;IAChE,oBAAoB,EAAE,IAAA,WAAI,EAAC,mBAAO,EAAE,6BAA6B,CAAC;IAClE,GAAG,QAAQ;CACZ,CAAC"}
|
package/dist/config/base.d.ts
DELETED
package/dist/config/base.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConfiguration = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
*/
|
|
8
|
-
const webpack_merge_1 = tslib_1.__importDefault(require("webpack-merge"));
|
|
9
|
-
const utils_1 = require("../utils");
|
|
10
|
-
const rules_1 = require("../rules");
|
|
11
|
-
const plugins_1 = require("../plugins");
|
|
12
|
-
const alias_1 = require("./alias");
|
|
13
|
-
const external_1 = require("./external");
|
|
14
|
-
const production_1 = tslib_1.__importDefault(require("./production"));
|
|
15
|
-
const development_1 = tslib_1.__importDefault(require("./development"));
|
|
16
|
-
const webpack = {
|
|
17
|
-
target: "node",
|
|
18
|
-
mode: utils_1.isProduction ? "production" : "development",
|
|
19
|
-
entry: {
|
|
20
|
-
"./index": "./src/index.ts",
|
|
21
|
-
},
|
|
22
|
-
output: {
|
|
23
|
-
filename: "[name].js",
|
|
24
|
-
libraryTarget: "umd",
|
|
25
|
-
},
|
|
26
|
-
module: {
|
|
27
|
-
rules: (0, utils_1.arrayFilterEmpty)([rules_1.typescriptRule, rules_1.svgRule]),
|
|
28
|
-
},
|
|
29
|
-
plugins: [(0, plugins_1.dtsBundleGeneratorPlugin)()],
|
|
30
|
-
resolve: {
|
|
31
|
-
alias: alias_1.aliasItems,
|
|
32
|
-
extensions: [".tsx", ".ts", ".js"],
|
|
33
|
-
},
|
|
34
|
-
externals: external_1.externalItems,
|
|
35
|
-
};
|
|
36
|
-
const getConfiguration = (config) => utils_1.isProduction
|
|
37
|
-
? (0, webpack_merge_1.default)(webpack, production_1.default, config || {})
|
|
38
|
-
: (0, webpack_merge_1.default)(webpack, development_1.default, config || {});
|
|
39
|
-
exports.getConfiguration = getConfiguration;
|
|
40
|
-
exports.default = (0, exports.getConfiguration)();
|
|
41
|
-
//# sourceMappingURL=base.js.map
|
package/dist/config/base.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/config/base.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,0EAAkC;AAGlC,oCAA0D;AAC1D,oCAAmD;AACnD,wCAAsD;AACtD,mCAAqC;AACrC,yCAA2C;AAE3C,sEAAsC;AACtC,wEAAwC;AAExC,MAAM,OAAO,GAAkB;IAC7B,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,WAAW;QACrB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,IAAA,wBAAgB,EAAC,CAAC,sBAAc,EAAE,eAAO,CAAC,CAAC;KACnD;IACD,OAAO,EAAE,CAAC,IAAA,kCAAwB,GAAE,CAAC;IACrC,OAAO,EAAE;QACP,KAAK,EAAE,kBAAU;QACjB,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;KACnC;IACD,SAAS,EAAE,wBAAa;CACzB,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,MAAsB,EAAE,EAAE,CACzD,oBAAY;IACV,CAAC,CAAC,IAAA,uBAAK,EAAC,OAAO,EAAE,oBAAU,EAAE,MAAM,IAAI,EAAE,CAAC;IAC1C,CAAC,CAAC,IAAA,uBAAK,EAAC,OAAO,EAAE,qBAAW,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;AAHnC,QAAA,gBAAgB,oBAGmB;AAEhD,kBAAe,IAAA,wBAAgB,GAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const plugins_1 = require("../plugins");
|
|
4
|
-
const webpack = {
|
|
5
|
-
devtool: "source-map",
|
|
6
|
-
optimization: {
|
|
7
|
-
minimize: true,
|
|
8
|
-
minimizer: [plugins_1.terserJSPlugin],
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
exports.default = webpack;
|
|
12
|
-
//# sourceMappingURL=development.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"development.js","sourceRoot":"","sources":["../../src/config/development.ts"],"names":[],"mappings":";;AAIA,wCAA4C;AAE5C,MAAM,OAAO,GAAkB;IAC7B,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,CAAC,wBAAc,CAAC;KAC5B;CACF,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
3
|
-
* @see https://webpack.js.org/configuration/externals/
|
|
4
|
-
*/
|
|
5
|
-
export declare const externalLibs: {
|
|
6
|
-
"@floating-ui/react": string;
|
|
7
|
-
"@nimbus-ds/styles": string;
|
|
8
|
-
react: string;
|
|
9
|
-
"react-dom": string;
|
|
10
|
-
};
|
|
11
|
-
export declare const externalPackages: {
|
|
12
|
-
"@nimbus-ds/icon": string;
|
|
13
|
-
"@nimbus-ds/icons": string;
|
|
14
|
-
"@nimbus-ds/skeleton": string;
|
|
15
|
-
"@nimbus-ds/spinner": string;
|
|
16
|
-
"@nimbus-ds/text": string;
|
|
17
|
-
"@nimbus-ds/title": string;
|
|
18
|
-
"@nimbus-ds/tokens": string;
|
|
19
|
-
};
|
|
20
|
-
export declare const externalItems: {
|
|
21
|
-
"@nimbus-ds/icon": string;
|
|
22
|
-
"@nimbus-ds/icons": string;
|
|
23
|
-
"@nimbus-ds/skeleton": string;
|
|
24
|
-
"@nimbus-ds/spinner": string;
|
|
25
|
-
"@nimbus-ds/text": string;
|
|
26
|
-
"@nimbus-ds/title": string;
|
|
27
|
-
"@nimbus-ds/tokens": string;
|
|
28
|
-
"@floating-ui/react": string;
|
|
29
|
-
"@nimbus-ds/styles": string;
|
|
30
|
-
react: string;
|
|
31
|
-
"react-dom": string;
|
|
32
|
-
};
|
package/dist/config/external.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.externalItems = exports.externalPackages = exports.externalLibs = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
6
|
-
* @see https://webpack.js.org/configuration/externals/
|
|
7
|
-
*/
|
|
8
|
-
exports.externalLibs = {
|
|
9
|
-
"@floating-ui/react": "@floating-ui/react",
|
|
10
|
-
"@nimbus-ds/styles": "@nimbus-ds/styles",
|
|
11
|
-
react: "react",
|
|
12
|
-
"react-dom": "react-dom",
|
|
13
|
-
};
|
|
14
|
-
exports.externalPackages = {
|
|
15
|
-
"@nimbus-ds/icon": "@nimbus-ds/icon",
|
|
16
|
-
"@nimbus-ds/icons": "@nimbus-ds/icons",
|
|
17
|
-
"@nimbus-ds/skeleton": "@nimbus-ds/skeleton",
|
|
18
|
-
"@nimbus-ds/spinner": "@nimbus-ds/spinner",
|
|
19
|
-
"@nimbus-ds/text": "@nimbus-ds/text",
|
|
20
|
-
"@nimbus-ds/title": "@nimbus-ds/title",
|
|
21
|
-
"@nimbus-ds/tokens": "@nimbus-ds/tokens",
|
|
22
|
-
};
|
|
23
|
-
exports.externalItems = { ...exports.externalLibs, ...exports.externalPackages };
|
|
24
|
-
//# sourceMappingURL=external.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external.js","sourceRoot":"","sources":["../../src/config/external.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,YAAY,GAAG;IAC1B,oBAAoB,EAAE,oBAAoB;IAC1C,mBAAmB,EAAE,mBAAmB;IACxC,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,WAAW;CACzB,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC9B,iBAAiB,EAAE,iBAAiB;IACpC,kBAAkB,EAAE,kBAAkB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,oBAAoB,EAAE,oBAAoB;IAC1C,iBAAiB,EAAE,iBAAiB;IACpC,kBAAkB,EAAE,kBAAkB;IACtC,mBAAmB,EAAE,mBAAmB;CACzC,CAAC;AAEW,QAAA,aAAa,GAAG,EAAE,GAAG,oBAAY,EAAE,GAAG,wBAAgB,EAAE,CAAC"}
|
package/dist/config/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { getConfiguration, default as base } from "./base";
|
|
2
|
-
export { default as development } from "./development";
|
|
3
|
-
export { default as production } from "./production";
|
|
4
|
-
export { aliasItems } from "./alias";
|
|
5
|
-
export { externalItems, externalLibs, externalPackages } from "./external";
|
package/dist/config/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.externalPackages = exports.externalLibs = exports.externalItems = exports.aliasItems = exports.production = exports.development = exports.base = exports.getConfiguration = void 0;
|
|
7
|
-
var base_1 = require("./base");
|
|
8
|
-
Object.defineProperty(exports, "getConfiguration", { enumerable: true, get: function () { return base_1.getConfiguration; } });
|
|
9
|
-
Object.defineProperty(exports, "base", { enumerable: true, get: function () { return __importDefault(base_1).default; } });
|
|
10
|
-
var development_1 = require("./development");
|
|
11
|
-
Object.defineProperty(exports, "development", { enumerable: true, get: function () { return __importDefault(development_1).default; } });
|
|
12
|
-
var production_1 = require("./production");
|
|
13
|
-
Object.defineProperty(exports, "production", { enumerable: true, get: function () { return __importDefault(production_1).default; } });
|
|
14
|
-
var alias_1 = require("./alias");
|
|
15
|
-
Object.defineProperty(exports, "aliasItems", { enumerable: true, get: function () { return alias_1.aliasItems; } });
|
|
16
|
-
var external_1 = require("./external");
|
|
17
|
-
Object.defineProperty(exports, "externalItems", { enumerable: true, get: function () { return external_1.externalItems; } });
|
|
18
|
-
Object.defineProperty(exports, "externalLibs", { enumerable: true, get: function () { return external_1.externalLibs; } });
|
|
19
|
-
Object.defineProperty(exports, "externalPackages", { enumerable: true, get: function () { return external_1.externalPackages; } });
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA2D;AAAlD,wGAAA,gBAAgB,OAAA;AAAE,6GAAA,OAAO,OAAQ;AAC1C,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAE9B,iCAAqC;AAA5B,mGAAA,UAAU,OAAA;AACnB,uCAA2E;AAAlE,yGAAA,aAAa,OAAA;AAAE,wGAAA,YAAY,OAAA;AAAE,4GAAA,gBAAgB,OAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const plugins_1 = require("../plugins");
|
|
4
|
-
const webpack = {
|
|
5
|
-
optimization: {
|
|
6
|
-
minimize: true,
|
|
7
|
-
minimizer: [plugins_1.terserJSPlugin, plugins_1.cssMinimizerPlugin],
|
|
8
|
-
},
|
|
9
|
-
performance: {
|
|
10
|
-
hints: false,
|
|
11
|
-
maxEntrypointSize: 512000,
|
|
12
|
-
maxAssetSize: 512000,
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
exports.default = webpack;
|
|
16
|
-
//# sourceMappingURL=production.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"production.js","sourceRoot":"","sources":["../../src/config/production.ts"],"names":[],"mappings":";;AAIA,wCAAgE;AAEhE,MAAM,OAAO,GAAkB;IAC7B,YAAY,EAAE;QACZ,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,CAAC,wBAAc,EAAE,4BAAkB,CAAC;KAChD;IACD,WAAW,EAAE;QACX,KAAK,EAAE,KAAK;QACZ,iBAAiB,EAAE,MAAM;QACzB,YAAY,EAAE,MAAM;KACrB;CACF,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
export declare const rules: {
|
|
2
|
-
cssLoaderExtractRule: {
|
|
3
|
-
test: RegExp;
|
|
4
|
-
use: string[];
|
|
5
|
-
};
|
|
6
|
-
styleLoaderCssRule: {
|
|
7
|
-
test: RegExp;
|
|
8
|
-
use: string[];
|
|
9
|
-
};
|
|
10
|
-
miniCssExtractRule: {
|
|
11
|
-
test: RegExp;
|
|
12
|
-
loader: string;
|
|
13
|
-
};
|
|
14
|
-
typescriptRule: {
|
|
15
|
-
test: RegExp;
|
|
16
|
-
loader: string;
|
|
17
|
-
exclude: RegExp;
|
|
18
|
-
};
|
|
19
|
-
svgRule: {
|
|
20
|
-
test: RegExp;
|
|
21
|
-
use: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const plugins: {
|
|
25
|
-
vanillaExtractPlugin: import("@vanilla-extract/webpack-plugin").VanillaExtractPlugin;
|
|
26
|
-
miniCssExtractPlugin: import("mini-css-extract-plugin");
|
|
27
|
-
cssHashRemoverPlugin: {
|
|
28
|
-
options: {
|
|
29
|
-
outputFile: string;
|
|
30
|
-
};
|
|
31
|
-
content: string;
|
|
32
|
-
apply(compiler: import("webpack").Compiler): void;
|
|
33
|
-
};
|
|
34
|
-
cssMinimizerPlugin: import("css-minimizer-webpack-plugin")<import("css-minimizer-webpack-plugin").CssNanoOptionsExtended>;
|
|
35
|
-
dtsBundleGeneratorPlugin: (configuration?: {
|
|
36
|
-
entries: string[];
|
|
37
|
-
}) => import("webpack-shell-plugin-next").default;
|
|
38
|
-
};
|
|
39
|
-
export declare const configuration: {
|
|
40
|
-
aliasItems: {
|
|
41
|
-
"@nimbus-ds/icons": string;
|
|
42
|
-
"@nimbus-ds/tokens": string;
|
|
43
|
-
"@nimbus-ds/typings": string;
|
|
44
|
-
"@nimbus-ds/styles": string;
|
|
45
|
-
"@nimbus-ds/webpack": string;
|
|
46
|
-
};
|
|
47
|
-
externalLibs: {
|
|
48
|
-
"@floating-ui/react": string;
|
|
49
|
-
"@nimbus-ds/styles": string;
|
|
50
|
-
react: string;
|
|
51
|
-
"react-dom": string;
|
|
52
|
-
};
|
|
53
|
-
development: import("webpack").Configuration;
|
|
54
|
-
production: import("webpack").Configuration;
|
|
55
|
-
base: import("webpack").Configuration;
|
|
56
|
-
getConfiguration: (config?: import("webpack").Configuration | undefined) => import("webpack").Configuration;
|
|
57
|
-
};
|
|
58
|
-
export declare const utils: {
|
|
59
|
-
rootDir: string;
|
|
60
|
-
arrayFilterEmpty: (array: {
|
|
61
|
-
test: RegExp;
|
|
62
|
-
loader?: string | undefined;
|
|
63
|
-
use?: any;
|
|
64
|
-
exclude?: RegExp | undefined;
|
|
65
|
-
}[]) => {
|
|
66
|
-
test: RegExp;
|
|
67
|
-
loader?: string | undefined;
|
|
68
|
-
use?: any;
|
|
69
|
-
exclude?: RegExp | undefined;
|
|
70
|
-
}[];
|
|
71
|
-
isProduction: boolean;
|
|
72
|
-
isDevelopment: boolean;
|
|
73
|
-
};
|
|
74
|
-
declare const webpack: {
|
|
75
|
-
rules: {
|
|
76
|
-
cssLoaderExtractRule: {
|
|
77
|
-
test: RegExp;
|
|
78
|
-
use: string[];
|
|
79
|
-
};
|
|
80
|
-
styleLoaderCssRule: {
|
|
81
|
-
test: RegExp;
|
|
82
|
-
use: string[];
|
|
83
|
-
};
|
|
84
|
-
miniCssExtractRule: {
|
|
85
|
-
test: RegExp;
|
|
86
|
-
loader: string;
|
|
87
|
-
};
|
|
88
|
-
typescriptRule: {
|
|
89
|
-
test: RegExp;
|
|
90
|
-
loader: string;
|
|
91
|
-
exclude: RegExp;
|
|
92
|
-
};
|
|
93
|
-
svgRule: {
|
|
94
|
-
test: RegExp;
|
|
95
|
-
use: string[];
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
plugins: {
|
|
99
|
-
vanillaExtractPlugin: import("@vanilla-extract/webpack-plugin").VanillaExtractPlugin;
|
|
100
|
-
miniCssExtractPlugin: import("mini-css-extract-plugin");
|
|
101
|
-
cssHashRemoverPlugin: {
|
|
102
|
-
options: {
|
|
103
|
-
outputFile: string;
|
|
104
|
-
};
|
|
105
|
-
content: string;
|
|
106
|
-
apply(compiler: import("webpack").Compiler): void;
|
|
107
|
-
};
|
|
108
|
-
cssMinimizerPlugin: import("css-minimizer-webpack-plugin")<import("css-minimizer-webpack-plugin").CssNanoOptionsExtended>;
|
|
109
|
-
dtsBundleGeneratorPlugin: (configuration?: {
|
|
110
|
-
entries: string[];
|
|
111
|
-
}) => import("webpack-shell-plugin-next").default;
|
|
112
|
-
};
|
|
113
|
-
configuration: {
|
|
114
|
-
aliasItems: {
|
|
115
|
-
"@nimbus-ds/icons": string;
|
|
116
|
-
"@nimbus-ds/tokens": string;
|
|
117
|
-
"@nimbus-ds/typings": string;
|
|
118
|
-
"@nimbus-ds/styles": string;
|
|
119
|
-
"@nimbus-ds/webpack": string;
|
|
120
|
-
};
|
|
121
|
-
externalLibs: {
|
|
122
|
-
"@floating-ui/react": string;
|
|
123
|
-
"@nimbus-ds/styles": string;
|
|
124
|
-
react: string;
|
|
125
|
-
"react-dom": string;
|
|
126
|
-
};
|
|
127
|
-
development: import("webpack").Configuration;
|
|
128
|
-
production: import("webpack").Configuration;
|
|
129
|
-
base: import("webpack").Configuration;
|
|
130
|
-
getConfiguration: (config?: import("webpack").Configuration | undefined) => import("webpack").Configuration;
|
|
131
|
-
};
|
|
132
|
-
utils: {
|
|
133
|
-
rootDir: string;
|
|
134
|
-
arrayFilterEmpty: (array: {
|
|
135
|
-
test: RegExp;
|
|
136
|
-
loader?: string | undefined;
|
|
137
|
-
use?: any;
|
|
138
|
-
exclude?: RegExp | undefined;
|
|
139
|
-
}[]) => {
|
|
140
|
-
test: RegExp;
|
|
141
|
-
loader?: string | undefined;
|
|
142
|
-
use?: any;
|
|
143
|
-
exclude?: RegExp | undefined;
|
|
144
|
-
}[];
|
|
145
|
-
isProduction: boolean;
|
|
146
|
-
isDevelopment: boolean;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
export default webpack;
|
package/dist/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.utils = exports.configuration = exports.plugins = exports.rules = void 0;
|
|
4
|
-
const config_1 = require("./config");
|
|
5
|
-
const plugins_1 = require("./plugins");
|
|
6
|
-
const rules_1 = require("./rules");
|
|
7
|
-
const utils_1 = require("./utils");
|
|
8
|
-
exports.rules = {
|
|
9
|
-
cssLoaderExtractRule: rules_1.cssLoaderExtractRule,
|
|
10
|
-
styleLoaderCssRule: rules_1.styleLoaderCssRule,
|
|
11
|
-
miniCssExtractRule: rules_1.miniCssExtractRule,
|
|
12
|
-
typescriptRule: rules_1.typescriptRule,
|
|
13
|
-
svgRule: rules_1.svgRule,
|
|
14
|
-
};
|
|
15
|
-
exports.plugins = {
|
|
16
|
-
vanillaExtractPlugin: plugins_1.vanillaExtractPlugin,
|
|
17
|
-
miniCssExtractPlugin: plugins_1.miniCssExtractPlugin,
|
|
18
|
-
cssHashRemoverPlugin: plugins_1.cssHashRemoverPlugin,
|
|
19
|
-
cssMinimizerPlugin: plugins_1.cssMinimizerPlugin,
|
|
20
|
-
dtsBundleGeneratorPlugin: plugins_1.dtsBundleGeneratorPlugin,
|
|
21
|
-
};
|
|
22
|
-
exports.configuration = {
|
|
23
|
-
aliasItems: config_1.aliasItems,
|
|
24
|
-
externalLibs: config_1.externalLibs,
|
|
25
|
-
development: config_1.development,
|
|
26
|
-
production: config_1.production,
|
|
27
|
-
base: config_1.base,
|
|
28
|
-
getConfiguration: config_1.getConfiguration,
|
|
29
|
-
};
|
|
30
|
-
exports.utils = { rootDir: utils_1.rootDir, arrayFilterEmpty: utils_1.arrayFilterEmpty, isProduction: utils_1.isProduction, isDevelopment: utils_1.isDevelopment };
|
|
31
|
-
const webpack = {
|
|
32
|
-
rules: exports.rules,
|
|
33
|
-
plugins: exports.plugins,
|
|
34
|
-
configuration: exports.configuration,
|
|
35
|
-
utils: exports.utils,
|
|
36
|
-
};
|
|
37
|
-
exports.default = webpack;
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAOkB;AAClB,uCAMmB;AACnB,mCAMiB;AACjB,mCAKiB;AAEJ,QAAA,KAAK,GAAG;IACnB,oBAAoB,EAApB,4BAAoB;IACpB,kBAAkB,EAAlB,0BAAkB;IAClB,kBAAkB,EAAlB,0BAAkB;IAClB,cAAc,EAAd,sBAAc;IACd,OAAO,EAAP,eAAO;CACR,CAAC;AACW,QAAA,OAAO,GAAG;IACrB,oBAAoB,EAApB,8BAAoB;IACpB,oBAAoB,EAApB,8BAAoB;IACpB,oBAAoB,EAApB,8BAAoB;IACpB,kBAAkB,EAAlB,4BAAkB;IAClB,wBAAwB,EAAxB,kCAAwB;CACzB,CAAC;AACW,QAAA,aAAa,GAAG;IAC3B,UAAU,EAAV,mBAAU;IACV,YAAY,EAAZ,qBAAY;IACZ,WAAW,EAAX,oBAAW;IACX,UAAU,EAAV,mBAAU;IACV,IAAI,EAAJ,aAAI;IACJ,gBAAgB,EAAhB,yBAAgB;CACjB,CAAC;AAEW,QAAA,KAAK,GAAG,EAAE,OAAO,EAAP,eAAO,EAAE,gBAAgB,EAAhB,wBAAgB,EAAE,YAAY,EAAZ,oBAAY,EAAE,aAAa,EAAb,qBAAa,EAAE,CAAC;AAEhF,MAAM,OAAO,GAAG;IACd,KAAK,EAAL,aAAK;IACL,OAAO,EAAP,eAAO;IACP,aAAa,EAAb,qBAAa;IACb,KAAK,EAAL,aAAK;CACN,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type Compiler = import("webpack").Compiler;
|
|
2
|
-
declare class CssHashRemoverPlugin {
|
|
3
|
-
options: {
|
|
4
|
-
outputFile: string;
|
|
5
|
-
};
|
|
6
|
-
content: string;
|
|
7
|
-
static defaultOptions: {
|
|
8
|
-
outputFile: string;
|
|
9
|
-
};
|
|
10
|
-
constructor(options?: {});
|
|
11
|
-
apply(compiler: Compiler): void;
|
|
12
|
-
}
|
|
13
|
-
export declare const cssHashRemoverPlugin: CssHashRemoverPlugin;
|
|
14
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cssHashRemoverPlugin = void 0;
|
|
4
|
-
class CssHashRemoverPlugin {
|
|
5
|
-
options;
|
|
6
|
-
content = "";
|
|
7
|
-
static defaultOptions = {
|
|
8
|
-
outputFile: "styles.css",
|
|
9
|
-
};
|
|
10
|
-
// Any options should be passed in the constructor of your plugin,
|
|
11
|
-
// (this is a public API of your plugin).
|
|
12
|
-
constructor(options = {}) {
|
|
13
|
-
// Applying user-specified options over the default options
|
|
14
|
-
// and making merged options further available to the plugin methods.
|
|
15
|
-
// You should probably validate all the options here as well.
|
|
16
|
-
this.options = { ...CssHashRemoverPlugin.defaultOptions, ...options };
|
|
17
|
-
}
|
|
18
|
-
apply(compiler) {
|
|
19
|
-
const pluginName = CssHashRemoverPlugin.name;
|
|
20
|
-
// webpack module instance can be accessed from the compiler object,
|
|
21
|
-
// this ensures that correct version of the module is used
|
|
22
|
-
// (do not require/import the webpack or any symbols from it directly).
|
|
23
|
-
const { webpack } = compiler;
|
|
24
|
-
// Compilation object gives us reference to some useful constants.
|
|
25
|
-
const { Compilation } = webpack;
|
|
26
|
-
// RawSource is one of the "sources" classes that should be used
|
|
27
|
-
// to represent asset sources in compilation.
|
|
28
|
-
const { RawSource } = webpack.sources;
|
|
29
|
-
// Tapping to the "thisCompilation" hook in order to further tap
|
|
30
|
-
// to the compilation process on an earlier stage.
|
|
31
|
-
compiler.hooks.thisCompilation.tap(pluginName, (compilation) => {
|
|
32
|
-
// Tapping to the assets processing pipeline on a specific stage.
|
|
33
|
-
compilation.hooks.processAssets.tap({
|
|
34
|
-
name: pluginName,
|
|
35
|
-
// Using one of the later asset processing stages to ensure
|
|
36
|
-
// that all assets were already added to the compilation by other plugins.
|
|
37
|
-
stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE,
|
|
38
|
-
}, (assets) => {
|
|
39
|
-
const source = assets?.["./index.css"]?.source()?.toString() ?? "";
|
|
40
|
-
const matches = Array.from(source?.matchAll(/(?:\.nimbus-[\w|-]+)(?:(__\w{7,}))(?::{0,2}(?:disabled|focus|active|hover|placeholder|focus-visible|after)?) ?{/gm), (m) => m[1]);
|
|
41
|
-
const uniqueMatches = [...new Set(matches)];
|
|
42
|
-
this.content = source;
|
|
43
|
-
uniqueMatches?.forEach((hash) => {
|
|
44
|
-
const regex = new RegExp(`${hash}\\b`, "gm");
|
|
45
|
-
this.content = this.content.replace(regex, "");
|
|
46
|
-
});
|
|
47
|
-
// "assets" is an object that contains all assets
|
|
48
|
-
// in the compilation, the keys of the object are pathnames of the assets
|
|
49
|
-
// and the values are file sources.
|
|
50
|
-
// Iterating over all the assets and
|
|
51
|
-
// generating content for our Markdown file.
|
|
52
|
-
// Adding new asset to the compilation, so it would be automatically
|
|
53
|
-
// generated by the webpack in the output directory.
|
|
54
|
-
compilation.emitAsset(this.options.outputFile, new RawSource(this.content));
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.cssHashRemoverPlugin = new CssHashRemoverPlugin();
|
|
60
|
-
//# sourceMappingURL=cssHashRemoverPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cssHashRemoverPlugin.js","sourceRoot":"","sources":["../../src/plugins/cssHashRemoverPlugin.ts"],"names":[],"mappings":";;;AAEA,MAAM,oBAAoB;IACxB,OAAO,CAAC;IAER,OAAO,GAAG,EAAE,CAAC;IAEb,MAAM,CAAC,cAAc,GAAG;QACtB,UAAU,EAAE,YAAY;KACzB,CAAC;IAEF,kEAAkE;IAClE,yCAAyC;IACzC,YAAY,OAAO,GAAG,EAAE;QACtB,2DAA2D;QAC3D,qEAAqE;QACrE,6DAA6D;QAC7D,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,oBAAoB,CAAC,cAAc,EAAE,GAAG,OAAO,EAAE,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,MAAM,UAAU,GAAG,oBAAoB,CAAC,IAAI,CAAC;QAE7C,oEAAoE;QACpE,0DAA0D;QAC1D,uEAAuE;QACvE,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;QAE7B,kEAAkE;QAClE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAEhC,gEAAgE;QAChE,6CAA6C;QAC7C,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;QAEtC,gEAAgE;QAChE,kDAAkD;QAClD,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,WAAW,EAAE,EAAE;YAC7D,iEAAiE;YACjE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CACjC;gBACE,IAAI,EAAE,UAAU;gBAChB,2DAA2D;gBAC3D,0EAA0E;gBAC1E,KAAK,EAAE,WAAW,CAAC,8BAA8B;aAClD,EACD,CAAC,MAAM,EAAE,EAAE;gBACT,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACnE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,MAAM,EAAE,QAAQ,CACd,mHAAmH,CACpH,EACD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CACZ,CAAC;gBAEF,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;gBAE5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;gBACtB,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC9B,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,GAAG,IAAI,KAAK,EAAE,IAAI,CAAC,CAAC;oBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBACjD,CAAC,CAAC,CAAC;gBACH,iDAAiD;gBACjD,yEAAyE;gBACzE,mCAAmC;gBAEnC,oCAAoC;gBACpC,4CAA4C;gBAC5C,oEAAoE;gBACpE,oDAAoD;gBACpD,WAAW,CAAC,SAAS,CACnB,IAAI,CAAC,OAAO,CAAC,UAAU,EACvB,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAC5B,CAAC;YACJ,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;;AAGU,QAAA,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cssMinimizerPlugin = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
*/
|
|
8
|
-
const css_minimizer_webpack_plugin_1 = tslib_1.__importDefault(require("css-minimizer-webpack-plugin"));
|
|
9
|
-
exports.cssMinimizerPlugin = new css_minimizer_webpack_plugin_1.default();
|
|
10
|
-
//# sourceMappingURL=cssMinimizerPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cssMinimizerPlugin.js","sourceRoot":"","sources":["../../src/plugins/cssMinimizerPlugin.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,wGAA8D;AAEjD,QAAA,kBAAkB,GAAG,IAAI,sCAAkB,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
3
|
-
*/
|
|
4
|
-
import WebpackShellPluginNextPlugin from "webpack-shell-plugin-next";
|
|
5
|
-
export declare const dtsBundleGeneratorPlugin: (configuration?: {
|
|
6
|
-
entries: string[];
|
|
7
|
-
}) => WebpackShellPluginNextPlugin;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.dtsBundleGeneratorPlugin = void 0;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
const webpack_shell_plugin_next_1 = tslib_1.__importDefault(require("webpack-shell-plugin-next"));
|
|
9
|
-
const utils_1 = require("../utils");
|
|
10
|
-
const entry = [
|
|
11
|
-
`node ${utils_1.rootDir}/node_modules/.bin/dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts`,
|
|
12
|
-
];
|
|
13
|
-
const dtsBundleGeneratorPlugin = (configuration = { entries: entry }) => {
|
|
14
|
-
const config = {
|
|
15
|
-
onBuildEnd: {
|
|
16
|
-
scripts: [...configuration.entries],
|
|
17
|
-
blocking: false,
|
|
18
|
-
parallel: true,
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
return new webpack_shell_plugin_next_1.default(config);
|
|
22
|
-
};
|
|
23
|
-
exports.dtsBundleGeneratorPlugin = dtsBundleGeneratorPlugin;
|
|
24
|
-
//# sourceMappingURL=dtsBundleGeneratorPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dtsBundleGeneratorPlugin.js","sourceRoot":"","sources":["../../src/plugins/dtsBundleGeneratorPlugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,kGAAqE;AACrE,oCAAmC;AAEnC,MAAM,KAAK,GAAG;IACZ,QAAQ,eAAO,6EAA6E;CAC7F,CAAC;AAEK,MAAM,wBAAwB,GAAG,CACtC,gBAAuC,EAAE,OAAO,EAAE,KAAK,EAAE,EACzD,EAAE;IACF,MAAM,MAAM,GAAG;QACb,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC;YACnC,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI;SACf;KACF,CAAC;IAEF,OAAO,IAAI,mCAA4B,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
|
package/dist/plugins/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { miniCssExtractPlugin } from "./miniCssExtract";
|
|
2
|
-
export { vanillaExtractPlugin } from "./vanillaExtractPlugin";
|
|
3
|
-
export { cssHashRemoverPlugin } from "./cssHashRemoverPlugin";
|
|
4
|
-
export { cssMinimizerPlugin } from "./cssMinimizerPlugin";
|
|
5
|
-
export { terserJSPlugin } from "./terserJSPlugin";
|
|
6
|
-
export { dtsBundleGeneratorPlugin } from "./dtsBundleGeneratorPlugin";
|
package/dist/plugins/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dtsBundleGeneratorPlugin = exports.terserJSPlugin = exports.cssMinimizerPlugin = exports.cssHashRemoverPlugin = exports.vanillaExtractPlugin = exports.miniCssExtractPlugin = void 0;
|
|
4
|
-
var miniCssExtract_1 = require("./miniCssExtract");
|
|
5
|
-
Object.defineProperty(exports, "miniCssExtractPlugin", { enumerable: true, get: function () { return miniCssExtract_1.miniCssExtractPlugin; } });
|
|
6
|
-
var vanillaExtractPlugin_1 = require("./vanillaExtractPlugin");
|
|
7
|
-
Object.defineProperty(exports, "vanillaExtractPlugin", { enumerable: true, get: function () { return vanillaExtractPlugin_1.vanillaExtractPlugin; } });
|
|
8
|
-
var cssHashRemoverPlugin_1 = require("./cssHashRemoverPlugin");
|
|
9
|
-
Object.defineProperty(exports, "cssHashRemoverPlugin", { enumerable: true, get: function () { return cssHashRemoverPlugin_1.cssHashRemoverPlugin; } });
|
|
10
|
-
var cssMinimizerPlugin_1 = require("./cssMinimizerPlugin");
|
|
11
|
-
Object.defineProperty(exports, "cssMinimizerPlugin", { enumerable: true, get: function () { return cssMinimizerPlugin_1.cssMinimizerPlugin; } });
|
|
12
|
-
var terserJSPlugin_1 = require("./terserJSPlugin");
|
|
13
|
-
Object.defineProperty(exports, "terserJSPlugin", { enumerable: true, get: function () { return terserJSPlugin_1.terserJSPlugin; } });
|
|
14
|
-
var dtsBundleGeneratorPlugin_1 = require("./dtsBundleGeneratorPlugin");
|
|
15
|
-
Object.defineProperty(exports, "dtsBundleGeneratorPlugin", { enumerable: true, get: function () { return dtsBundleGeneratorPlugin_1.dtsBundleGeneratorPlugin; } });
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwD;AAA/C,sHAAA,oBAAoB,OAAA;AAC7B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.miniCssExtractPlugin = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
*/
|
|
8
|
-
const mini_css_extract_plugin_1 = tslib_1.__importDefault(require("mini-css-extract-plugin"));
|
|
9
|
-
const config = {
|
|
10
|
-
// Options similar to the same options in webpackOptions.output
|
|
11
|
-
// both options are optional
|
|
12
|
-
filename: "[name].css",
|
|
13
|
-
chunkFilename: "[id].css",
|
|
14
|
-
};
|
|
15
|
-
exports.miniCssExtractPlugin = new mini_css_extract_plugin_1.default(config);
|
|
16
|
-
//# sourceMappingURL=miniCssExtract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"miniCssExtract.js","sourceRoot":"","sources":["../../src/plugins/miniCssExtract.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,8FAA2D;AAE3D,MAAM,MAAM,GAAG;IACb,+DAA+D;IAC/D,4BAA4B;IAC5B,QAAQ,EAAE,YAAY;IACtB,aAAa,EAAE,UAAU;CAC1B,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAI,iCAAoB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.terserJSPlugin = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
*/
|
|
8
|
-
const terser_webpack_plugin_1 = tslib_1.__importDefault(require("terser-webpack-plugin"));
|
|
9
|
-
const config = {
|
|
10
|
-
// Options similar to the same options in webpackOptions.output
|
|
11
|
-
// both options are optional
|
|
12
|
-
};
|
|
13
|
-
exports.terserJSPlugin = new terser_webpack_plugin_1.default(config);
|
|
14
|
-
//# sourceMappingURL=terserJSPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terserJSPlugin.js","sourceRoot":"","sources":["../../src/plugins/terserJSPlugin.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,0FAAmD;AAEnD,MAAM,MAAM,GAAG;AACb,+DAA+D;AAC/D,4BAA4B;CAC7B,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,+BAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.vanillaExtractPlugin = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
6
|
-
*/
|
|
7
|
-
const webpack_plugin_1 = require("@vanilla-extract/webpack-plugin");
|
|
8
|
-
exports.vanillaExtractPlugin = new webpack_plugin_1.VanillaExtractPlugin({
|
|
9
|
-
identifiers: "debug",
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=vanillaExtractPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vanillaExtractPlugin.js","sourceRoot":"","sources":["../../src/plugins/vanillaExtractPlugin.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,oEAAuE;AAE1D,QAAA,oBAAoB,GAAG,IAAI,qCAAoB,CAAC;IAC3D,WAAW,EAAE,OAAO;CACrB,CAAC,CAAC"}
|
package/dist/rules/common.d.ts
DELETED
package/dist/rules/common.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.typescriptRule = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* @see https://webpack.js.org/guides/typescript/#loader
|
|
9
|
-
*/
|
|
10
|
-
exports.typescriptRule = {
|
|
11
|
-
test: /\.tsx?$/,
|
|
12
|
-
loader: "ts-loader",
|
|
13
|
-
exclude: /node_modules/,
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=common.js.map
|
package/dist/rules/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/rules/common.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,cAAc;CACxB,CAAC"}
|
package/dist/rules/index.d.ts
DELETED
package/dist/rules/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./common"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./styles"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./svg"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/rules/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,mDAAyB;AACzB,gDAAsB"}
|
package/dist/rules/styles.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
3
|
-
*/
|
|
4
|
-
export declare const miniCssExtractRule: {
|
|
5
|
-
test: RegExp;
|
|
6
|
-
loader: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const cssLoaderExtractRule: {
|
|
9
|
-
test: RegExp;
|
|
10
|
-
use: string[];
|
|
11
|
-
};
|
|
12
|
-
export declare const styleLoaderCssRule: {
|
|
13
|
-
test: RegExp;
|
|
14
|
-
use: string[];
|
|
15
|
-
};
|
package/dist/rules/styles.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.styleLoaderCssRule = exports.cssLoaderExtractRule = exports.miniCssExtractRule = void 0;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
const mini_css_extract_plugin_1 = tslib_1.__importDefault(require("mini-css-extract-plugin"));
|
|
9
|
-
exports.miniCssExtractRule = {
|
|
10
|
-
test: /\.css$/,
|
|
11
|
-
loader: mini_css_extract_plugin_1.default.loader,
|
|
12
|
-
};
|
|
13
|
-
exports.cssLoaderExtractRule = {
|
|
14
|
-
test: /\.css$/i,
|
|
15
|
-
use: [mini_css_extract_plugin_1.default.loader, "css-loader"],
|
|
16
|
-
};
|
|
17
|
-
exports.styleLoaderCssRule = {
|
|
18
|
-
test: /\.css$/i,
|
|
19
|
-
use: ["style-loader", "css-loader"],
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=styles.js.map
|
package/dist/rules/styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/rules/styles.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,8FAA2D;AAE9C,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,iCAAoB,CAAC,MAAM;CACpC,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,CAAC,iCAAoB,CAAC,MAAM,EAAE,YAAY,CAAC;CACjD,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC;CACpC,CAAC"}
|
package/dist/rules/svg.d.ts
DELETED
package/dist/rules/svg.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.svgRule = void 0;
|
|
7
|
-
exports.svgRule = {
|
|
8
|
-
test: /\.svg$/i,
|
|
9
|
-
use: ["@svgr/webpack"],
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=svg.js.map
|
package/dist/rules/svg.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../src/rules/svg.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEU,QAAA,OAAO,GAAG;IACrB,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,CAAC,eAAe,CAAC;CACvB,CAAC"}
|
package/dist/utils/constants.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webpackDir = exports.rootDir = exports.isDevelopment = exports.isProduction = exports.mode = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
7
|
-
*/
|
|
8
|
-
const path_1 = require("path");
|
|
9
|
-
const dotenv = tslib_1.__importStar(require("dotenv")); // see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-import
|
|
10
|
-
dotenv.config({
|
|
11
|
-
path: (0, path_1.join)(__dirname, "../../../../../.env"),
|
|
12
|
-
});
|
|
13
|
-
exports.mode = process.env.NODE_ENV ?? "production";
|
|
14
|
-
exports.isProduction = exports.mode === "production";
|
|
15
|
-
exports.isDevelopment = !exports.isProduction;
|
|
16
|
-
exports.rootDir = (0, path_1.join)(__dirname, "../../../../../");
|
|
17
|
-
exports.webpackDir = (0, path_1.join)(__dirname, "../../");
|
|
18
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,+BAA4B;AAC5B,uDAAiC,CAAC,yEAAyE;AAE3G,MAAM,CAAC,MAAM,CAAC;IACZ,IAAI,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,qBAAqB,CAAC;CAC7C,CAAC,CAAC;AAEU,QAAA,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,YAAY,CAAC;AAC5C,QAAA,YAAY,GAAG,YAAI,KAAK,YAAY,CAAC;AACrC,QAAA,aAAa,GAAG,CAAC,oBAAY,CAAC;AAC9B,QAAA,OAAO,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;AAC7C,QAAA,UAAU,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,QAAQ,CAAC,CAAC"}
|
package/dist/utils/helpers.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
3
|
-
*/
|
|
4
|
-
/// <reference types="jest" />
|
|
5
|
-
export declare const arrayFilterEmpty: (array: {
|
|
6
|
-
test: RegExp;
|
|
7
|
-
loader?: string;
|
|
8
|
-
use?: any;
|
|
9
|
-
exclude?: RegExp;
|
|
10
|
-
}[]) => {
|
|
11
|
-
test: RegExp;
|
|
12
|
-
loader?: string | undefined;
|
|
13
|
-
use?: any;
|
|
14
|
-
exclude?: RegExp | undefined;
|
|
15
|
-
}[];
|
package/dist/utils/helpers.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.arrayFilterEmpty = void 0;
|
|
7
|
-
const arrayFilterEmpty = (array) => array.filter((x) => !!x);
|
|
8
|
-
exports.arrayFilterEmpty = arrayFilterEmpty;
|
|
9
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEI,MAAM,gBAAgB,GAAG,CAC9B,KAKG,EACH,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAPjB,QAAA,gBAAgB,oBAOC"}
|
package/dist/utils/index.d.ts
DELETED
package/dist/utils/index.js
DELETED
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,oDAA0B"}
|