farrow-js / farrow

A Type-Friendly Web Framework for Node.js
https://www.farrowjs.com
MIT License
769 stars 37 forks source link

Question: farrow-pipeline & Building system #116

Closed tqma113 closed 2 years ago

tqma113 commented 3 years ago

Is it possible to implement a building system tool library based on farrow-pipeline?

https://mp.weixin.qq.com/s/Zg-snOR7BG6l6DojqzO3Yg

Lucifier129 commented 2 years ago

I think the answer will be No!

Since the internal structure behind farrow-pipeline is a list of middlewares, but the structure behind a build-system should be a graph or tree to manage the dependences graph/tree, the graph for circular references, the tree for non-circular references.

But farrow-pipeline may still be useful for Task. Any plain function equipped farrow-pipeline can be divided into the combination of some smaller peaces of middlewares, such like the resolver function in GraphQL.