Git Product home page Git Product logo

redo-monorepo-example's Introduction

redo-monorepo-example

This is a playground to use redo as a build tool for managing a monorepo.

Currently it is a small example with simple C executables and shared libraries.

Getting started

Install and use redo to build all targets. Use it from the out directory.

cd out
redo -j8

Run all of the resulting executables.

cd out
find . -executable -type f -! -name '*.*' -print -exec '{}' ';'

How does it work?

The out directory

There is a out/default.do which catches redo commands, delegates them to the do/delegate.od script. The $3 output parameter points into the out directory. delegate.od is looking for the right .do file based on $1 $2 in the repo from the directory root and calls it. The parameters $1 $2 are kept relative to the .do file. $3 points still to the out/... file.

As a downside the .do files in the source directories need to refer to generated dependencies by prefixing their path with $OUT. Now you need to treat source files and generated files differently.

The original implementation is taken from apenwarr/wvstreams.

The putting .do files into do directories

The do/delegate.od script generates a list of search paths based on $1. It differs from redo-whichdo in the way that it also looks into subdirectories named do. The .do files in the subdirectory have lower priority than .do files in the current directory.

Note that the implementation currently relies on bashisms.

redo-monorepo-example's People

Contributors

payload avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.