Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

104: Remove unnecessary serve task #106

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = (gulp, config) => {
/**
* Task for running browserSync.
*/
gulp.task('serve', ['css', 'scripts', 'watch:pl'], () => {
gulp.task('theme', ['css', 'scripts', 'watch:pl'], () => {
if (config.browserSync.domain) {
browserSync.init({
injectChanges: true,
Expand Down Expand Up @@ -127,20 +127,12 @@ module.exports = (gulp, config) => {
gulp.watch(config.patternLab.scssToYAML[0].src, ['pl:scss-to-yaml']);
});

/**
* Theme task declaration
*/
gulp.task('theme', ['serve']);

gulp.task('compile', tasks.compile);
gulp.task('validate', tasks.validate);
gulp.task('watch', tasks.watch);
tasks.default.push('watch');
gulp.task('default', tasks.default);

/**
* Theme task declaration
*/
gulp.task('build', ['compile', 'scripts', 'css']);

/**
Expand Down