Рет қаралды 5,073
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
---------------------------------------------------
► github.com/nic...
► gist.github.co... (Makefile)
► github.com/adr...
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► nickjanetakis....
THE TOOLS I USE / GEAR
---------------------------------------------------
► nickjanetakis....
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: 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