Hacker News new | ask | show | jobs
by isthisreality 1837 days ago
Looks nice. As someone unfamiliar with Make, can someone explain why YAML is a bad idea for something like this?

My favorite part (unironically) is how this is written in TypeScript. Easier for me to contribute features and fixes.

2 comments

Btw, you should add a JSON schema for the build.yaml data, so VSCode can provide auto completion.

https://brunopaz.dev/blog/how-to-create-your-own-auto-comple...

Awesome, will do! Did use JSON schema before, but didn't know it can be used for yaml as well.
You can create a DAG in yaml it's just that 99% of projects ignore creating a graph and just treat 'build rules' as an imperative script. The other problem with YAML-as-a-lang is eventually you need to express something that isn't just static key vals (see ansible) and turns into a quite a mess.