As a developer you operate on many repositories. To keep all of the repositories up-to-date there are as many strategies as there are developers. Personally I have gone from doing it manually, to writing scripts (e.g. 1, 2), trying different tools (e.g. 1), and the latter is what this post is about.
Introducing d2, the DHIS2 CLI
Today we are excited to announce the stable v1.0 release of d2
, the DHIS2 CLI!
d2
is a modular, standardized, and consolidated tool to make developing in the DHIS2 ecosystem as painless as possible.
Build acrobatics
Ready for some practical tricks on how to use the build system? Create custom builds, deterministic builds, reproduce specific builds, and more!
The Build System
The last year has seen some significant changes to how the build system operates and this post will walk through the technical aspects of the system. The release and development processes which drive the build system is out of scope for this post and subsequently left out.
There are a few moving pieces, so let's get started!
Packages and style conventions
Style conventions are always a topic for debate. Everyone agrees that conventions are good, and simultaneously prefers their own conventions. Tools like Prettier were built in that particular kind of bikeshed. In that spirit, allow me to introduce two tools that consolidate our JavaScript conventions.