-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAA-354: Package frontend assets #113
Conversation
gulpfile.js
Outdated
const gulp = require('gulp') | ||
const concat = require('gulp-concat') | ||
const minify = require('gulp-minify') | ||
const umd = require('gulp-umd') | ||
const merge = require('merge-stream') | ||
const sass = require('gulp-sass')(require('sass')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not strongly opposed to the use of gulp, but in case you weren't aware GDS have decided to move away from gulp for their frontend builds, alphagov/govuk-frontend#2717
Have other options been considered here? Gulp hasn't been updated since 2019 and has fallen out of popularity in recent years.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at using grunt instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with Grunt
gulpfile.js
Outdated
'node_modules/jquery/dist/jquery.js', | ||
'node_modules/jquery-ui-dist/jquery-ui.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like everywhere JQuery is used it can be replaced with vanilla JS?
The only exception seems to be the datepicker, however that's to be removed and seems to have accessible issues? I believe the datepicker is also the only place JQuery UI is being used?
Is JQuery / JQuery UI needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea also thinking to remove it
gulpfile.js
Outdated
exports: function () { | ||
return 'ActivitiesFrontend' | ||
}, | ||
namespace: function () { | ||
return 'ActivitiesFrontend' | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exports: function () { | |
return 'ActivitiesFrontend' | |
}, | |
namespace: function () { | |
return 'ActivitiesFrontend' | |
}, | |
exports: () => 'ActivitiesFrontend', | |
namespace: () => 'ActivitiesFrontend', |
beb8830
to
12e79d3
Compare
@@ -0,0 +1,22 @@ | |||
//TODO: These should be removed eventually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we keeping these if they are all commented out anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are part of the spike so will be removed, but also did not want to spend time fixing up the JS to be compatible with this new format so just commented out ... (I am unsure if we need to keep it right now for reference, but pretty sure we wont be doing Jquery driven pages)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.