-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Miscellaneous improvements for gulpfile.js
(issue 10362)
#13490
Conversation
…sue 10362) This replaces all of the `Starting '<anonymous>'...` lines in the output, when running various `gulp` tasks, with more meaningful function names.
Most of the `gulp` tasks with a "-pre" suffix, especially those related to the main build-targets, are no longer needed and can simply be inlined in their corresponding tasks. This is likely a left-over from older Gulp-versions, but currently it only adds unnecessary indirection. Furthermore, a number of the `gulp` tasks which are only used *internally* are converted to standard functions instead. This prevents them from being exposed "globally" and e.g. listed by `gulp default`.
63ec4b9
to
bdf29ec
Compare
With this PR,
|
Looking at the history of the code, this `gulp` task was *accidentally* broken in the Gulp 4 upgrade in PR 10266 (all the way back in 2018). Given that no one has either noticed and/or complained about this since, it's safe to assume that it's completely unused, hence why I suggest that we just remove this `gulp` task (rather than fixing it).
bdf29ec
to
66a5671
Compare
/botio lint |
From: Bot.io (Linux m4)ReceivedCommand cmd_lint from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/5c43b6a2cffcb80/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_lint from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/0acd2b1520e2086/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/5c43b6a2cffcb80/output.txt Total script time: 2.48 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/0acd2b1520e2086/output.txt Total script time: 5.19 mins
|
Looks much better; thank you for fixing this! |
Replace anonymous functions in
gulpfile.js
with named functions (issue 10362)This replaces all of the
Starting '<anonymous>'...
lines in the output, when running variousgulp
tasks, with more meaningful function names.Clean-up
gulpfile.js
by removing most "-pre" tasks (issue 10362)Most of the
gulp
tasks with a "-pre" suffix, especially those related to the main build-targets, are no longer needed and can simply be inlined in their corresponding tasks. This is likely a left-over from older Gulp-versions, but currently it only adds unnecessary indirection.Furthermore, a number of the
gulp
tasks which are only used internally are converted to standard functions instead. This prevents them from being exposed "globally" and e.g. listed bygulp default
.Remove
gulp makefile
, since it's broken and unusedLooking at the history of the code, this
gulp
task was accidentally broken in the Gulp 4 upgrade in PR Upgrade to Gulp 4 #10266 (all the way back in 2018).Given that no one has either noticed and/or complained about this since, it's safe to assume that it's completely unused, hence why I suggest that we just remove this
gulp
task (rather than fixing it).Fixes #10362