mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-17 18:44:11 -05:00
Timeout popup disappeared (#2992)
This commit is contained in:
19
gulpfile.js
19
gulpfile.js
@@ -18,7 +18,7 @@ const paths = {
|
|||||||
|
|
||||||
const javascripts = () => {
|
const javascripts = () => {
|
||||||
// Files that don't use NotifyModules and can be uglified
|
// Files that don't use NotifyModules and can be uglified
|
||||||
const local = src([
|
const localUglified = src([
|
||||||
paths.src + 'javascripts/modules/init.js',
|
paths.src + 'javascripts/modules/init.js',
|
||||||
paths.src + 'javascripts/modules/uswds-modules.js',
|
paths.src + 'javascripts/modules/uswds-modules.js',
|
||||||
paths.src + 'javascripts/modules/show-hide-content.js',
|
paths.src + 'javascripts/modules/show-hide-content.js',
|
||||||
@@ -33,6 +33,13 @@ const javascripts = () => {
|
|||||||
paths.src + 'javascripts/validation.js',
|
paths.src + 'javascripts/validation.js',
|
||||||
paths.src + 'javascripts/scrollPosition.js',
|
paths.src + 'javascripts/scrollPosition.js',
|
||||||
])
|
])
|
||||||
|
.pipe(plugins.prettyerror())
|
||||||
|
.pipe(
|
||||||
|
plugins.babel({
|
||||||
|
presets: ['@babel/preset-env'],
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.pipe(plugins.uglify());
|
||||||
|
|
||||||
// Files that use NotifyModules - split into two groups to avoid stream issues
|
// Files that use NotifyModules - split into two groups to avoid stream issues
|
||||||
const notifyModules1 = src([
|
const notifyModules1 = src([
|
||||||
@@ -54,6 +61,7 @@ const javascripts = () => {
|
|||||||
paths.src + 'javascripts/collapsibleCheckboxes.js',
|
paths.src + 'javascripts/collapsibleCheckboxes.js',
|
||||||
paths.src + 'javascripts/radioSlider.js',
|
paths.src + 'javascripts/radioSlider.js',
|
||||||
paths.src + 'javascripts/updateStatus.js',
|
paths.src + 'javascripts/updateStatus.js',
|
||||||
|
paths.src + 'javascripts/timeoutPopup.js',
|
||||||
paths.src + 'javascripts/main.js',
|
paths.src + 'javascripts/main.js',
|
||||||
])
|
])
|
||||||
.pipe(plugins.prettyerror())
|
.pipe(plugins.prettyerror())
|
||||||
@@ -63,15 +71,6 @@ const javascripts = () => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Apply uglify only to local files
|
|
||||||
const localUglified = local
|
|
||||||
.pipe(
|
|
||||||
plugins.babel({
|
|
||||||
presets: ['@babel/preset-env'],
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.pipe(plugins.uglify());
|
|
||||||
|
|
||||||
// First create vendored with jquery-expose immediately after jQuery
|
// First create vendored with jquery-expose immediately after jQuery
|
||||||
const vendoredWithExpose = src([
|
const vendoredWithExpose = src([
|
||||||
paths.npm + 'jquery/dist/jquery.min.js',
|
paths.npm + 'jquery/dist/jquery.min.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user