2021-01-07 16:34:55 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import { task, src, dest, watch, series } from 'gulp';
|
2021-06-04 20:03:18 +02:00
|
|
|
import sass, { compiler, logError } from 'gulp-dart-sass';
|
2021-01-07 16:34:55 +01:00
|
|
|
|
|
|
|
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'));
|