How to add wp assets in to pipeline (wp-emoji.js, wp-embed.js, twemoji.js, jquery.js, jquery-migrate.js)

how do we add wp assets in to pipeline. wordpress loads these assets on the front end (when logged out) :

wp-emoji.js
wp-embed.js
twemoji.js
jquery.js
jquery-migrate.js

if I want to just have a single js fil, main.js

can all if these be compiled and concatenated using gulp?

thanks

Yes, they can be. There’s documentation on how to do this in several places. What have you tried so far?