@openeuropa/bcl-builder 0.28.1 → 1.0.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.
@@ -1,118 +1,22 @@
1
1
  module.exports = [
2
2
  {
3
- cleanupAttrs: true,
4
- },
5
- {
6
- cleanupEnableBackground: true,
7
- },
8
- {
9
- cleanupIDs: true,
10
- },
11
- {
12
- cleanupListOfValues: true,
13
- },
14
- {
15
- cleanupNumericValues: true,
16
- },
17
- {
18
- collapseGroups: true,
19
- },
20
- {
21
- convertColors: true,
22
- },
23
- {
24
- convertPathData: {
25
- noSpaceAfterFlags: false,
3
+ name: "preset-default",
4
+ params: {
5
+ overrides: {
6
+ removeUnknownsAndDefaults: {
7
+ keepRoleAttr: true,
8
+ },
9
+ removeViewBox: false,
10
+ },
26
11
  },
27
12
  },
13
+ "cleanupListOfValues",
14
+ "removeXMLNS",
15
+ "sortAttrs",
28
16
  {
29
- convertShapeToPath: true,
30
- },
31
- {
32
- convertStyleToAttrs: true,
33
- },
34
- {
35
- convertTransform: true,
36
- },
37
- {
38
- inlineStyles: true,
39
- },
40
- {
41
- mergePaths: {
42
- noSpaceAfterFlags: false,
43
- },
44
- },
45
- {
46
- minifyStyles: true,
47
- },
48
- {
49
- moveElemsAttrsToGroup: true,
50
- },
51
- {
52
- moveGroupAttrsToElems: true,
53
- },
54
- {
55
- removeAttrs: {
56
- attrs: ["data-name", "fill", "clip-rule"],
57
- },
58
- },
59
- {
60
- removeComments: true,
61
- },
62
- {
63
- removeDesc: true,
64
- },
65
- {
66
- removeDoctype: true,
67
- },
68
- {
69
- removeEditorsNSData: true,
70
- },
71
- {
72
- removeEmptyAttrs: true,
73
- },
74
- {
75
- removeEmptyContainers: true,
76
- },
77
- {
78
- removeEmptyText: true,
79
- },
80
- {
81
- removeHiddenElems: true,
82
- },
83
- {
84
- removeMetadata: true,
85
- },
86
- {
87
- removeNonInheritableGroupAttrs: true,
88
- },
89
- {
90
- removeTitle: true,
91
- },
92
- {
93
- removeUnknownsAndDefaults: {
94
- keepRoleAttr: true,
17
+ name: "removeAttrs",
18
+ params: {
19
+ attrs: ["clip-rule", "data-name", "fill"],
95
20
  },
96
21
  },
97
- {
98
- removeUnusedNS: true,
99
- },
100
- {
101
- removeUselessDefs: true,
102
- },
103
- {
104
- removeUselessStrokeAndFill: true,
105
- },
106
- {
107
- removeViewBox: false,
108
- },
109
- {
110
- removeXMLNS: true,
111
- },
112
- {
113
- removeXMLProcInst: true,
114
- },
115
- {
116
- sortAttrs: true,
117
- },
118
22
  ];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openeuropa/bcl-builder",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "0.28.1",
5
+ "version": "1.0.0",
6
6
  "description": "Bootstrap Component Library builder",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -11,31 +11,31 @@
11
11
  "bcl-builder": "./bin/build.js"
12
12
  },
13
13
  "dependencies": {
14
- "@babel/core": "7.19.1",
15
- "@babel/preset-env": "7.19.1",
16
- "@babel/runtime": "7.19.0",
14
+ "@babel/core": "7.20.12",
15
+ "@babel/preset-env": "7.20.2",
16
+ "@babel/runtime": "7.20.7",
17
17
  "@popperjs/core": "2.11.6",
18
- "@rollup/plugin-babel": "5.3.1",
19
- "@rollup/plugin-commonjs": "22.0.2",
20
- "@rollup/plugin-node-resolve": "14.1.0",
21
- "@rollup/plugin-replace": "4.0.0",
22
- "autoprefixer": "10.4.12",
18
+ "@rollup/plugin-babel": "6.0.3",
19
+ "@rollup/plugin-commonjs": "24.0.0",
20
+ "@rollup/plugin-node-resolve": "15.0.1",
21
+ "@rollup/plugin-replace": "5.0.2",
22
+ "autoprefixer": "10.4.13",
23
23
  "babel-eslint": "10.1.0",
24
- "browser-sync": "2.27.10",
25
- "commander": "9.4.0",
24
+ "browser-sync": "2.27.11",
25
+ "commander": "9.5.0",
26
26
  "copyfiles": "2.4.1",
27
27
  "cross-env": "7.0.3",
28
- "cssnano": "5.1.13",
29
- "postcss": "8.4.16",
30
- "rollup": "2.79.1",
31
- "rollup-plugin-istanbul": "3.0.0",
28
+ "cssnano": "5.1.14",
29
+ "postcss": "8.4.21",
30
+ "rollup": "3.9.1",
31
+ "rollup-plugin-istanbul": "4.0.0",
32
32
  "rollup-plugin-terser": "7.0.2",
33
- "sass": "1.55.0",
34
- "svg-sprite": "1.5.4",
35
- "svgo": "2.8.0"
33
+ "sass": "1.57.1",
34
+ "svg-sprite": "2.0.2",
35
+ "svgo": "3.0.2"
36
36
  },
37
37
  "engines": {
38
- "node": ">=12.0.0"
38
+ "node": ">=14.0.0"
39
39
  },
40
- "gitHead": "3b0d2f4a85c727f38ae4e3403110c98302d09117"
40
+ "gitHead": "16b986722345644e83a37dc8091c07eecbdf4c8c"
41
41
  }
package/scripts/sprite.js CHANGED
@@ -42,7 +42,7 @@ module.exports = (entry, dest, options) => {
42
42
  {
43
43
  svgo: {
44
44
  multipass: true,
45
- plugins: plugins,
45
+ plugins: defaultPlugins,
46
46
  },
47
47
  },
48
48
  ],