dayverr
10/28/2019 - 5:23 PM

gulp file

const
    gulp = require('gulp'),
    {series, parallel} = require('gulp'),
    pug = require('gulp-pug')

function compilePug(cb) {
    return gulp.src('**/*.pug')
        .pipe(pug({
            pretty: '    '
        }))
        .pipe(gulp.dest('dev'))

    cb()
}

function watchFiles(cb) {
    gulp.watch('**/*.pug', compilePug)

    cb()
}

const build = series(compilePug, watchFiles)

exports.default = parallel(build)
{
  "name": "marchuk",
  "version": "1.0.0",
  "description": "strigavka online",
  "main": "gulpfile.js",
  "dependencies": {
    "array-sort": "^1.0.0",
    "flagged-respawn": "^1.0.1",
    "for-in": "^1.0.2",
    "for-own": "^1.0.0",
    "fs.realpath": "^1.0.0",
    "get-caller-file": "^1.0.3",
    "get-value": "^2.0.6",
    "graceful-fs": "^4.2.3",
    "pug": "^2.0.4",
    "ug": "0.0.8"
  },
  "devDependencies": {
    "browser-sync": "^2.26.7",
    "del": "^5.1.0",
    "gulp": "^4.0.0",
    "gulp-plumber": "^1.2.1",
    "gulp-pug": "^4.0.1",
    "gulp-rename": "^1.4.0",
    "gulp-sass": "^4.0.2",
    "gulp-svg-symbols": "^3.2.3",
    "gulp-svgmin": "^2.2.0",
    "gulp-watch": "^5.0.1",
    "remove-svg-properties": "^0.3.3",
    "webpack": "^4.41.2",
    "webpack-stream": "^5.2.1"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "marchuk",
  "license": "ISC"
}