mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Ensure Gulp tasks run sequentially
So that images are always copied into place before trying to build the SASS.
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
import gulp from 'gulp';
|
import gulp from 'gulp';
|
||||||
import loadPlugins from 'gulp-load-plugins';
|
import loadPlugins from 'gulp-load-plugins';
|
||||||
import stylish from 'jshint-stylish';
|
import stylish from 'jshint-stylish';
|
||||||
|
import runSequence from 'run-sequence';
|
||||||
|
|
||||||
const plugins = loadPlugins(),
|
const plugins = loadPlugins(),
|
||||||
|
|
||||||
@@ -156,19 +157,23 @@ gulp.task('lint',
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Default: compile everything
|
// Default: compile everything
|
||||||
gulp.task('default',
|
gulp.task('default', function() {
|
||||||
[
|
runSequence(
|
||||||
'copy:govuk_template:template',
|
[
|
||||||
'copy:govuk_template:images',
|
'copy:govuk_template:template',
|
||||||
'copy:govuk_template:fonts',
|
'copy:govuk_template:images',
|
||||||
'copy:govuk_template:css',
|
'copy:govuk_template:fonts',
|
||||||
'copy:govuk_template:js',
|
'copy:govuk_template:css',
|
||||||
'copy:govuk_template:error_page',
|
'copy:govuk_template:js',
|
||||||
'images',
|
'images',
|
||||||
'javascripts',
|
],
|
||||||
'sass'
|
[
|
||||||
]
|
'copy:govuk_template:error_page',
|
||||||
);
|
'javascripts',
|
||||||
|
'sass'
|
||||||
|
]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
// Optional: recompile on changes
|
// Optional: recompile on changes
|
||||||
gulp.task('watch',
|
gulp.task('watch',
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
"gulp-prettyerror": "1.2.1",
|
"gulp-prettyerror": "1.2.1",
|
||||||
"gulp-sass-lint": "1.2.0",
|
"gulp-sass-lint": "1.2.0",
|
||||||
"jshint": "2.9.5",
|
"jshint": "2.9.5",
|
||||||
"jshint-stylish": "2.2.1"
|
"jshint-stylish": "2.2.1",
|
||||||
|
"run-sequence": "^2.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user