diff options
author | codecalm <codecalm@gmail.com> | 2020-03-12 15:04:56 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-12 15:04:56 +0100 |
commit | 89a774589d6c712fc229f6c946f39b7e3be95a5b (patch) | |
tree | beedbe7e3f49a4b09a67cf6c596490828d52266d /gulpfile.js | |
parent | gulp fixes (diff) | |
download | tabler-icons-89a774589d6c712fc229f6c946f39b7e3be95a5b.tar.xz |
new dir structure
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js index f48368e2..1c562b14 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(); }); }); |