Re:Show HN: A Markdown based alternative to package.json scr...
by mkesper on Wednesday October 16, 2024 @09:20AM
(#41858751)
Great point. My take is that most inexperienced people know make only as a bundle of shell scripts with semi-nice unification (not really nice because you just don't have an easy way to pass arguments to your scripts and no automatic help etc.).
[ Parent
| on HN ]
Re:Show HN: A Markdown based alternative to package.json scr...
by timz on Thursday October 17, 2024 @11:40AM
(#41870699)
Added support for dependency between commands.
So one can now write:
# [clean]() Clean build directory
```bash
rm -rf ./build
```
# [format]() Format the source code
```bash
npx prettier --write .
```
# [build](clean format) Build the project
```bash
npm run build
```
# [deploy](build) Deploy to surge.sh
```bash
surge ./build my-project.surge.sh
```
This doesn't include file time modification between files as in Makefile.Thank you for feature suggestion.