import gulp from 'gulp'; import {assetsDevelop, assetsBuild} from './gulp/tasks/assets.js'; import {clean} from './gulp/tasks/clean.js'; import {imagesDevelop, imagesBuild} from './gulp/tasks/images.js'; import {phpDevelop} from './gulp/tasks/php.js' import {scriptsDevelop, scriptsBuild} from './gulp/tasks/scripts.js' import {startServer} from './gulp/tasks/server.js' import {stylesDevelop, stylesBuild} from './gulp/tasks/styles.js' import pathConfig from './gulp/paths.js'; // Определяем режим разработки pathConfig.setEnv(); console.log('\x1b[32m*** START', pathConfig.isDevelop ? 'DEVELOP' : 'BUILD', ' ***'); export const build = gulp.series( gulp.parallel( clean.bind(null, pathConfig.assets.js), clean.bind(null, pathConfig.assets.css), clean.bind(null, pathConfig.assets.fonts), // clean.bind(null, pathConfig.assets.img), clean.bind(null, pathConfig.assets.libs), ), gulp.parallel( scriptsBuild, stylesBuild, assetsBuild, // imagesBuild, ), ) export const develop = gulp.series( build, startServer, gulp.parallel( scriptsDevelop, stylesDevelop, assetsDevelop, // imagesDevelop, phpDevelop, ), ); export const script = scriptsBuild;