mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-15 02:51:32 +01:00
25 lines
617 B
JavaScript
25 lines
617 B
JavaScript
'use strict';
|
|
|
|
import { task, src, dest, watch, series } from 'gulp';
|
|
import sass, { compiler, logError } from 'gulp-dart-sass';
|
|
|
|
compiler = require('sass');
|
|
|
|
task('sass', async () => {
|
|
return src('./www/style/**/*.sass')
|
|
.pipe(sass().on('error', logError))
|
|
.pipe(dest('./www/dist'));
|
|
});
|
|
|
|
task('copyKalkComponent', async () => {
|
|
return src('./node_modules/@paddim8/kalk-component/public/build/*')
|
|
.pipe(dest('./www/dist/'));
|
|
});
|
|
|
|
task('watch', () => {
|
|
watch('./style/**/*.sass', series('sass'));
|
|
|
|
});
|
|
|
|
task('default', series('sass', 'copyKalkComponent'));
|