import gulp from 'gulp'

import { scripts } from './webpack'

import { server }  from './server'

import { serveFonts } from './serve-fonts'

import { serveHTML } from './serve-html'

import { serveImages } from './serve-images'

import { servePHP } from './serve-php'

import { serveOur, serveRoot } from './serve-source'

import { serveCoreCSS } from './serve-css--core'

import { serveMainCSS } from './serve-css--main'

const pre = gulp.parallel(gulp.series(serveCoreCSS, serveHTML), servePHP, serveFonts, serveImages, serveOur, serveRoot, serveMainCSS);

export const dev   = gulp.series(pre, server);

export const build = gulp.series(pre, scripts);

export default dev

