feat: add gulp support
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.sass-cache/
|
||||
node_modules/
|
||||
dist/
|
||||
package-lock.json
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
33
gulpfile.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
const { src, dest, parallel } = require('gulp');
|
||||
const include = require('gulp-include');
|
||||
const sass = require('gulp-sass');
|
||||
const cleanCSS = require('gulp-clean-css');
|
||||
|
||||
sass.compiler = require('node-sass');
|
||||
|
||||
function html() {
|
||||
return src('static/*.html')
|
||||
.pipe(dest('dist'))
|
||||
}
|
||||
|
||||
function css() {
|
||||
return src('scss/style.scss')
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(dest('dist'))
|
||||
}
|
||||
|
||||
function dep() {
|
||||
return src(['dep/**/*'])
|
||||
.pipe(dest('dist/dep'));
|
||||
}
|
||||
|
||||
function assets() {
|
||||
return src(['assets/**/*'])
|
||||
.pipe(dest('dist'));
|
||||
}
|
||||
|
||||
exports.html = html;
|
||||
exports.css = css;
|
||||
exports.dep = dep;
|
||||
exports.assets = assets;
|
||||
exports.default = parallel(html, css, dep, assets);
|