mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-09 14:45:00 -05:00
Remove GOVUK Template files
Includes Sass that targeted GOV.UK Template HTML and also moves some link styles to `globals.scss`. Also removes bits of frontend build that copied over GOVUK Template files.
This commit is contained in:
44
gulpfile.js
44
gulpfile.js
@@ -27,7 +27,6 @@ const paths = {
|
||||
dist: 'app/static/',
|
||||
templates: 'app/templates/',
|
||||
npm: 'node_modules/',
|
||||
template: 'node_modules/govuk_template_jinja/',
|
||||
toolkit: 'node_modules/govuk_frontend_toolkit/',
|
||||
govuk_frontend: 'node_modules/govuk-frontend/'
|
||||
};
|
||||
@@ -38,39 +37,9 @@ const paths = {
|
||||
// Move GOV.UK template resources
|
||||
|
||||
const copy = {
|
||||
govuk_template: {
|
||||
template: () => {
|
||||
return src(paths.template + 'views/layouts/govuk_template.html')
|
||||
.pipe(dest(paths.templates));
|
||||
},
|
||||
css: () => {
|
||||
return src(paths.template + 'assets/stylesheets/**/*.css')
|
||||
.pipe(plugins.sass({
|
||||
outputStyle: 'compressed'
|
||||
}))
|
||||
.on('error', plugins.sass.logError)
|
||||
.pipe(plugins.cssUrlAdjuster({
|
||||
prependRelative: process.env.NOTIFY_ENVIRONMENT == 'development' ? '/static/' : '/',
|
||||
}))
|
||||
.pipe(dest(paths.dist + 'stylesheets/'));
|
||||
},
|
||||
js: () => {
|
||||
return src(paths.template + 'assets/javascripts/**/*.js')
|
||||
.pipe(plugins.uglify())
|
||||
.pipe(dest(paths.dist + 'javascripts/'));
|
||||
},
|
||||
images: () => {
|
||||
return src(paths.template + 'assets/stylesheets/images/**/*')
|
||||
.pipe(dest(paths.dist + 'images/'));
|
||||
},
|
||||
fonts: () => {
|
||||
return src(paths.template + 'assets/stylesheets/fonts/**/*')
|
||||
.pipe(dest(paths.dist + 'fonts/'));
|
||||
},
|
||||
error_page: () => {
|
||||
return src(paths.src + 'error_pages/**/*')
|
||||
.pipe(dest(paths.dist + 'error_pages/'))
|
||||
}
|
||||
error_pages: () => {
|
||||
return src(paths.src + 'error_pages/**/*')
|
||||
.pipe(dest(paths.dist + 'error_pages/'))
|
||||
},
|
||||
govuk_frontend: {
|
||||
fonts: () => {
|
||||
@@ -199,16 +168,11 @@ const lint = {
|
||||
// Default: compile everything
|
||||
const defaultTask = parallel(
|
||||
series(
|
||||
copy.govuk_template.template,
|
||||
copy.govuk_template.images,
|
||||
copy.govuk_template.fonts,
|
||||
copy.govuk_template.css,
|
||||
copy.govuk_template.js,
|
||||
copy.govuk_frontend.fonts,
|
||||
images
|
||||
),
|
||||
series(
|
||||
copy.govuk_template.error_page,
|
||||
copy.error_pages,
|
||||
javascripts,
|
||||
sass
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user