aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-10 22:12:47 +0100
committercodecalm <codecalm@gmail.com>2020-03-10 22:12:47 +0100
commitfe151338aeedcf04cc2078653193903519f7b4ad (patch)
tree051e557be0474af0192e1990b3f352885545509b /gulpfile.js
parenticons sprite (diff)
downloadtabler-icons-fe151338aeedcf04cc2078653193903519f7b4ad.tar.xz
icons directory structure
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 21149364..f2430664 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -73,7 +73,7 @@ gulp.task('icons-preview', function (cb) {
const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" style="color: #354052"><rect x="0" y="0" width="${width}" height="${height}" fill="#fff"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`;
- fs.writeFileSync('demo/icons.svg', svgContent);
+ fs.writeFileSync('icons.svg', svgContent);
cb();
});
});
@@ -109,7 +109,7 @@ gulp.task('icons-stroke', function (cb) {
const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" style="color: #354052"><rect x="0" y="0" width="${width}" height="${height}" fill="#fff"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`;
- fs.writeFileSync('demo/icons-stroke.svg', svgContent);
+ fs.writeFileSync('dist/icons-stroke.svg', svgContent);
cb();
});
@@ -139,7 +139,7 @@ gulp.task('optimize', function (cb) {
gulp.task('build', function (cb) {
cp.exec('bundle exec jekyll build', function() {
- cp.exec('rm -f ./icons/* && cp ./_site/icons/* ./icons', function() {
+ cp.exec('rm -f ./dist/icons/* && cp ./_site/icons/* ./dist/icons', function() {
cb();
});
})