Replacing make with a Shell Script for Running Your Project's Tasks
I'm enjoying this shell script set up to replace a Makefile that's being used as a glorified aliases file. Hit the subscribe button to receive more videos like this! REFERENCE LINKS --------------------------------------------------- ► https://github.com/nickjj/docker-flask-example ► https://gist.github.com/nickjj/a6e4f33b4588a6e231a8b9374ce6fe58 (Makefile) ► https://github.com/adriancooney/Taskfile COURSES --------------------------------------------------- Courses I've created that focus on web dev and deployment topics. ► https://nickjanetakis.com/courses/ THE TOOLS I USE / GEAR --------------------------------------------------- ► https://nickjanetakis.com/blog/the-tools-i-use FOLLOW ME ELSEWHERE --------------------------------------------------- ► Twitter: https://twitter.com/nickjanetakis ► GitHub: https://github.com/nickjj TIMESTAMPS --------------------------------------------------- 0:00 -- What we're going to cover in this video 0:49 -- A basic Makefile, using .PHONY and controlling output 5:12 -- The main reason why I switched from a Makefile to a shell script 7:35 -- Taking a look at a run script that replaces a Makefile 8:14 -- A quick comparison between a shell function and make task 9:19 -- Using $@ to pass arguments from a command into the script 10:27 -- Creating shell functions without arguments 11:07 -- Namespacing shell functions with a colon to group up commands 11:31 -- Creating private functions to use as helpers in public commands 13:14 -- A couple of useful functions you might want in a web application 14:51 -- Figuring out this shell script pattern from a Taskfile project on GitHub 15:34 -- Creating a run alias so you don't need to type ./ every time 16:24 -- Adding in the idea of having private functions 16:54 -- Auto generating a help menu with printf, compgen, grep and cat 20:34 -- Using time or eval to convert arguments into runnable functions 22:48 -- Any questions? I'm happy to answer them in the comments below
Download
0 formatsNo download links available.