@nimbus-ds/webpack 1.3.0-rc.1 → 1.3.0-rc.3

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/index.d.ts CHANGED
@@ -7,6 +7,19 @@ export declare const rules: {
7
7
  test: RegExp;
8
8
  use: string[];
9
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
+ };
10
23
  };
11
24
  export declare const plugins: {
12
25
  vanillaExtractPlugin: import("@vanilla-extract/webpack-plugin").VanillaExtractPlugin;
@@ -24,6 +37,13 @@ export declare const plugins: {
24
37
  }) => import("webpack-shell-plugin-next").default;
25
38
  };
26
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
+ };
27
47
  externalLibs: {
28
48
  "@floating-ui/react-dom-interactions": string;
29
49
  "@nimbus-ds/styles": string;
@@ -37,6 +57,19 @@ export declare const configuration: {
37
57
  };
38
58
  export declare const utils: {
39
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;
40
73
  };
41
74
  declare const webpack: {
42
75
  rules: {
@@ -48,6 +81,19 @@ declare const webpack: {
48
81
  test: RegExp;
49
82
  use: string[];
50
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
+ };
51
97
  };
52
98
  plugins: {
53
99
  vanillaExtractPlugin: import("@vanilla-extract/webpack-plugin").VanillaExtractPlugin;
@@ -65,6 +111,13 @@ declare const webpack: {
65
111
  }) => import("webpack-shell-plugin-next").default;
66
112
  };
67
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
+ };
68
121
  externalLibs: {
69
122
  "@floating-ui/react-dom-interactions": string;
70
123
  "@nimbus-ds/styles": string;
@@ -78,6 +131,19 @@ declare const webpack: {
78
131
  };
79
132
  utils: {
80
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;
81
147
  };
82
148
  };
83
149
  export default webpack;
package/dist/index.js CHANGED
@@ -5,7 +5,13 @@ const config_1 = require("./config");
5
5
  const plugins_1 = require("./plugins");
6
6
  const rules_1 = require("./rules");
7
7
  const utils_1 = require("./utils");
8
- exports.rules = { cssLoaderExtractRule: rules_1.cssLoaderExtractRule, styleLoaderCssRule: rules_1.styleLoaderCssRule };
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
+ };
9
15
  exports.plugins = {
10
16
  vanillaExtractPlugin: plugins_1.vanillaExtractPlugin,
11
17
  miniCssExtractPlugin: plugins_1.miniCssExtractPlugin,
@@ -14,13 +20,14 @@ exports.plugins = {
14
20
  dtsBundleGeneratorPlugin: plugins_1.dtsBundleGeneratorPlugin,
15
21
  };
16
22
  exports.configuration = {
23
+ aliasItems: config_1.aliasItems,
17
24
  externalLibs: config_1.externalLibs,
18
25
  development: config_1.development,
19
26
  production: config_1.production,
20
27
  base: config_1.base,
21
28
  getConfiguration: config_1.getConfiguration,
22
29
  };
23
- exports.utils = { rootDir: utils_1.rootDir };
30
+ exports.utils = { rootDir: utils_1.rootDir, arrayFilterEmpty: utils_1.arrayFilterEmpty, isProduction: utils_1.isProduction, isDevelopment: utils_1.isDevelopment };
24
31
  const webpack = {
25
32
  rules: exports.rules,
26
33
  plugins: exports.plugins,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAMkB;AAClB,uCAMmB;AACnB,mCAAmE;AACnE,mCAAkC;AAErB,QAAA,KAAK,GAAG,EAAE,oBAAoB,EAApB,4BAAoB,EAAE,kBAAkB,EAAlB,0BAAkB,EAAE,CAAC;AACrD,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,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,CAAC;AAEjC,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
+ {"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,11 +1,15 @@
1
1
  /**
2
2
  * Created by: Júnior Conquista (junior.conquista@nuvemshop.com.br)
3
3
  */
4
- interface Rule {
4
+ /// <reference types="jest" />
5
+ export declare const arrayFilterEmpty: (array: {
5
6
  test: RegExp;
6
7
  loader?: string;
7
8
  use?: any;
8
9
  exclude?: RegExp;
9
- }
10
- export declare const arrayFilterEmpty: (array: Rule[]) => Rule[];
11
- export {};
10
+ }[]) => {
11
+ test: RegExp;
12
+ loader?: string | undefined;
13
+ use?: any;
14
+ exclude?: RegExp | undefined;
15
+ }[];
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AASI,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAA/D,QAAA,gBAAgB,oBAA+C"}
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-ds/webpack",
3
- "version": "1.3.0-rc.1",
3
+ "version": "1.3.0-rc.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [