aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-12 15:04:56 +0100
committercodecalm <codecalm@gmail.com>2020-03-12 15:04:56 +0100
commit89a774589d6c712fc229f6c946f39b7e3be95a5b (patch)
treebeedbe7e3f49a4b09a67cf6c596490828d52266d /gulpfile.js
parentgulp fixes (diff)
downloadtabler-icons-89a774589d6c712fc229f6c946f39b7e3be95a5b.tar.xz
new dir 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 f48368e..1c562b1 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -58,7 +58,7 @@ gulp.task('icons-sprite', function (cb) {
let svg = `<svg xmlns="http://www.w3.org/2000/svg"><defs>${svgContent}</defs></svg>`;
- fs.writeFileSync('dist/tabler-sprite.svg', svg);
+ fs.writeFileSync('tabler-sprite.svg', svg);
cb();
});
});
@@ -172,7 +172,7 @@ gulp.task('optimize', function (cb) {
gulp.task('build-zip', function(cb) {
const version = p.version;
- return gulp.src('dist/**/*')
+ return gulp.src('icons/**/*')
.pipe(zip(`${version}.zip`))
.pipe(gulp.dest('packages'))
});
@@ -184,7 +184,7 @@ gulp.task('build-jekyll', function(cb){
});
gulp.task('build-copy', function(cb){
- cp.exec('mkdir -p dist/icons/ && rm -f ./dist/icons/* && cp ./_site/icons/* ./dist/icons && cp ./icons.{png,svg} ./dist && cp ./tabler-icons.png ./dist', function() {
+ cp.exec('mkdir -p icons/ && rm -fd ./icons/* && cp ./_site/icons/* ./icons', function() {
cb();
});
});