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

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;
@@ -37,6 +50,17 @@ export declare const configuration: {
37
50
  };
38
51
  export declare const utils: {
39
52
  rootDir: string;
53
+ arrayFilterEmpty: (array: {
54
+ test: RegExp;
55
+ loader?: string | undefined;
56
+ use?: any;
57
+ exclude?: RegExp | undefined;
58
+ }[]) => {
59
+ test: RegExp;
60
+ loader?: string | undefined;
61
+ use?: any;
62
+ exclude?: RegExp | undefined;
63
+ }[];
40
64
  };
41
65
  declare const webpack: {
42
66
  rules: {
@@ -48,6 +72,19 @@ declare const webpack: {
48
72
  test: RegExp;
49
73
  use: string[];
50
74
  };
75
+ miniCssExtractRule: {
76
+ test: RegExp;
77
+ loader: string;
78
+ };
79
+ typescriptRule: {
80
+ test: RegExp;
81
+ loader: string;
82
+ exclude: RegExp;
83
+ };
84
+ svgRule: {
85
+ test: RegExp;
86
+ use: string[];
87
+ };
51
88
  };
52
89
  plugins: {
53
90
  vanillaExtractPlugin: import("@vanilla-extract/webpack-plugin").VanillaExtractPlugin;
@@ -78,6 +115,17 @@ declare const webpack: {
78
115
  };
79
116
  utils: {
80
117
  rootDir: string;
118
+ arrayFilterEmpty: (array: {
119
+ test: RegExp;
120
+ loader?: string | undefined;
121
+ use?: any;
122
+ exclude?: RegExp | undefined;
123
+ }[]) => {
124
+ test: RegExp;
125
+ loader?: string | undefined;
126
+ use?: any;
127
+ exclude?: RegExp | undefined;
128
+ }[];
81
129
  };
82
130
  };
83
131
  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,
@@ -20,7 +26,7 @@ exports.configuration = {
20
26
  base: config_1.base,
21
27
  getConfiguration: config_1.getConfiguration,
22
28
  };
23
- exports.utils = { rootDir: utils_1.rootDir };
29
+ exports.utils = { rootDir: utils_1.rootDir, arrayFilterEmpty: utils_1.arrayFilterEmpty };
24
30
  const webpack = {
25
31
  rules: exports.rules,
26
32
  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,4B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O;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;;;AAII,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.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [