CI #6 - Add a build task for bundling and more
Swashbuckling with Code Swashbuckling with Code
8.78K subscribers
994 views
0

 Published On Jun 17, 2021

Adding a build step to your Continuous Integration workflow can save you a lot of time and headaches when something slips past your tests and causes your production build to fail.

Because Webpack is one of the more common bundlers these days, we are going to do a lean Webpack and Babel setup for our previous project, and add a build step in our Github Actions to show what that typically looks like. This will give us a set of the most commonly used CI tasks, in my experience, and setting us up for some more interesting CI tasks in the next videos.

~~~~~~

RESOURCES:

Playlist:
   • Continuous Integration (CI/CD)  

Repository:
https://github.com/Jimmydalecleveland...

~~~~~~

00:00 - What we'll cover
00:48 - Adding required packages
01:39 - Adding config files and setup
04:16 - Testing the build script
05:00 - Switching from CJS to ESM
06:32 - Adding CI task
07:32 - if-present flag explanation
08:59 - Successful CI run
09:19 - Fail testing the task
11:25 - Why do we want a build step?
12:35 - Final commit and wrap-up

~~~~~~

Follow Jimmy Cleveland's doings:
twitter:   / jimmydcleveland  
blog: https://blog.jimmydc.com/

#ci #javascript

show more

Share/Embed