Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/gulpfile.js

37 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-10-23 10:31:07 +02:00
2019-01-17 17:02:12 +01:00
'use strict';
/*
2019-10-23 10:31:07 +02:00
* gulpfile.js
* ===========
* This is now using Gulp 4, each child task is now a child function in its own corresponding file.
*
* To add a new task, simply add a new task file to gulp/tasks folder, add a require statement below to include the one or more methods
* and then add the exports command to add the new item into the task menu.
*/
2019-01-17 17:02:12 +01:00
2019-10-23 10:31:07 +02:00
const { src, dest, series, parallel, lastRun } = require('gulp');
const config = require('./gulp/config');
const { setDevelopmentMode } = require('./gulp/modes');
2019-10-23 10:31:07 +02:00
const { dependencies } = require('./gulp/tasks/dependencies');
const { js } = require('./gulp/tasks/js');
const { less } = require('./gulp/tasks/less');
const { testE2e, testUnit } = require('./gulp/tasks/test');
const { views } = require('./gulp/tasks/views');
const { watchTask } = require('./gulp/tasks/watchTask');
// set default current compile mode:
config.compile.current = config.compile.build;
2019-10-23 10:31:07 +02:00
// ***********************************************************
// These Exports are the new way of defining Tasks in Gulp 4.x
// ***********************************************************
exports.build = series(parallel(dependencies, js, less, views), testUnit);
exports.dev = series(setDevelopmentMode, parallel(dependencies, js, less, views), watchTask);
2019-10-23 10:31:07 +02:00
exports.watch = series(watchTask);
//
exports.runTests = series(js, testUnit);
exports.testUnit = series(testUnit);
exports.testE2e = series(testE2e);