mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-15 09:34:25 -05:00
Checking to see if this is the reason the build is failing
This commit is contained in:
21
gulpfile.js
21
gulpfile.js
@@ -21,7 +21,6 @@ plugins.cssUrlAdjuster = require('gulp-css-url-adjuster');
|
|||||||
plugins.jshint = require('gulp-jshint');
|
plugins.jshint = require('gulp-jshint');
|
||||||
plugins.prettyerror = require('gulp-prettyerror');
|
plugins.prettyerror = require('gulp-prettyerror');
|
||||||
plugins.rollup = require('gulp-better-rollup')
|
plugins.rollup = require('gulp-better-rollup')
|
||||||
plugins.sass = require('gulp-sass')(require('sass'));
|
|
||||||
plugins.sassLint = require('gulp-sass-lint');
|
plugins.sassLint = require('gulp-sass-lint');
|
||||||
plugins.uglify = require('gulp-uglify');
|
plugins.uglify = require('gulp-uglify');
|
||||||
|
|
||||||
@@ -163,10 +162,6 @@ const watchFiles = {
|
|||||||
watch([paths.src + 'javascripts/**/*'], javascripts);
|
watch([paths.src + 'javascripts/**/*'], javascripts);
|
||||||
cb();
|
cb();
|
||||||
},
|
},
|
||||||
sass: (cb) => {
|
|
||||||
watch([paths.src + 'stylesheets/**/*'], sass);
|
|
||||||
cb();
|
|
||||||
},
|
|
||||||
images: (cb) => {
|
images: (cb) => {
|
||||||
watch([paths.src + 'images/**/*'], images);
|
watch([paths.src + 'images/**/*'], images);
|
||||||
cb();
|
cb();
|
||||||
@@ -183,19 +178,6 @@ const watchFiles = {
|
|||||||
|
|
||||||
|
|
||||||
const lint = {
|
const lint = {
|
||||||
'sass': () => {
|
|
||||||
return src([
|
|
||||||
paths.src + 'stylesheets/*.scss',
|
|
||||||
paths.src + 'stylesheets/components/*.scss',
|
|
||||||
paths.src + 'stylesheets/views/*.scss',
|
|
||||||
])
|
|
||||||
.pipe(plugins.sassLint({
|
|
||||||
'options': { 'formatter': 'stylish' },
|
|
||||||
'rules': { 'mixins-before-declarations': [2, { 'exclude': ['media', 'govuk-media-query'] }] }
|
|
||||||
}))
|
|
||||||
.pipe(plugins.sassLint.format())
|
|
||||||
.pipe(plugins.sassLint.failOnError());
|
|
||||||
},
|
|
||||||
'js': (cb) => {
|
'js': (cb) => {
|
||||||
return src(
|
return src(
|
||||||
paths.src + 'javascripts/**/*.js'
|
paths.src + 'javascripts/**/*.js'
|
||||||
@@ -228,7 +210,6 @@ const defaultTask = parallel(
|
|||||||
// Watch for changes and re-run tasks
|
// Watch for changes and re-run tasks
|
||||||
const watchForChanges = parallel(
|
const watchForChanges = parallel(
|
||||||
watchFiles.javascripts,
|
watchFiles.javascripts,
|
||||||
watchFiles.sass,
|
|
||||||
watchFiles.images,
|
watchFiles.images,
|
||||||
watchFiles.self
|
watchFiles.self
|
||||||
);
|
);
|
||||||
@@ -236,7 +217,7 @@ const watchForChanges = parallel(
|
|||||||
|
|
||||||
exports.default = defaultTask;
|
exports.default = defaultTask;
|
||||||
|
|
||||||
exports.lint = series(lint.sass, lint.js);
|
exports.lint = series(lint.js);
|
||||||
|
|
||||||
// Optional: recompile on changes
|
// Optional: recompile on changes
|
||||||
exports.watch = series(defaultTask, watchForChanges);
|
exports.watch = series(defaultTask, watchForChanges);
|
||||||
|
|||||||
Reference in New Issue
Block a user