@madgex/design-system 1.4.0 → 1.4.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/dist/css/index.css
CHANGED
package/gulp-tasks/fractal.js
CHANGED
|
@@ -16,6 +16,8 @@ function fractalStart() {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function fractalBuild() {
|
|
19
|
+
delete require.cache[require.resolve('../fractal.js')]; // eslint-disable-line
|
|
20
|
+
delete require.cache[require.resolve('../dist/assets/icons.json')]; // eslint-disable-line
|
|
19
21
|
const fractal = require('../fractal.js');
|
|
20
22
|
// import the Fractal instance configured in the fractal.js file
|
|
21
23
|
const logger = fractal.cli.console; // make use of Fractal's console object for logging
|
package/gulp-tasks/svgsprite.js
CHANGED
|
@@ -20,6 +20,16 @@ function svgsprite() {
|
|
|
20
20
|
minify: true,
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
+
{ removeDoctype: true },
|
|
24
|
+
{ removeComments: true },
|
|
25
|
+
{ removeTitle: true },
|
|
26
|
+
{ removeDesc: true },
|
|
27
|
+
{ removeUselessDefs: true },
|
|
28
|
+
{ removeEditorsNSData: true },
|
|
29
|
+
{ cleanupAttrs: true },
|
|
30
|
+
{ cleanupNumericValues: true },
|
|
31
|
+
{ removeViewBox: false },
|
|
32
|
+
{ removeDimensions: true },
|
|
23
33
|
],
|
|
24
34
|
};
|
|
25
35
|
})
|
package/gulpfile.js
CHANGED
|
@@ -16,6 +16,7 @@ async function clean(cb) {
|
|
|
16
16
|
function watchFiles() {
|
|
17
17
|
gulp.watch(['src/scss/core/**/*.scss', 'src/components/**/*.scss'], { awaitWriteFinish: true }, gulp.series(css));
|
|
18
18
|
gulp.watch('src/tokens/**/*.json', gulp.series(tokens));
|
|
19
|
+
gulp.watch('src/icons/**/*.svg', gulp.series(svgsprite, fractalBuild));
|
|
19
20
|
// gulp.watch('./assets/js/**/*', gulp.series(scriptsLint, scripts));
|
|
20
21
|
}
|
|
21
22
|
|