DEV Community

Cover image for ๐ŸŽฎ Runnable READMEs w/ xc
adriens
adriens

Posted on • Edited on

๐ŸŽฎ Runnable READMEs w/ xc

โ” About

Sometimes, to describe what your project can do ( how to build/use it) you put script in your README... then the end user (including you) has to deal with a set of commands, put them in the right order,etc...

The aim of this post is to show how to ease all this stuff, right into the README, with xc:

GitHub logo joerdav / xc

Markdown defined task runner.

xc - Simple, Convenient, Markdown-based task runner.

xc is a task runner similar to Make or npm run, that aims to be more discoverable and approachable.

The problem xc is intended to solve is scripts maintained separately from their documentation Often a Makefile or a package.json will contain some useful scripts for developing on a project then the README.md will surface and describe these scripts In such a case, since the documentation is separate, it may not be updated when scripts are changed or added. xc aims to solve this by defining the scripts inline with the documentation.

xc is designed to maximise convenience, and minimise complexity Each xc task is defined in simple, human-readable Markdown. This means that even people without the xc tool installed can use the README.md (or whatever Markdown file contains the tasks) as a source of usefulโ€ฆ

๐Ÿช Teaser

In the demo, you'll se how easy it is to implement and use tasks during a live coding session.

๐ŸŽฏ Goal

The goal can be summarized as a single issue:

๐Ÿงฐ Stack

  • xc : to package README as runnable tasks
  • tea.xyz : to easily install duckdb package
  • GH Codespaces : so we can code the feature right into the cloud in our browser... for the cloud
  • duckdb : serverless & lighwight database

๐Ÿฟ Demo

Enough talk, let's dive into the demo:

Top comments (5)

Collapse
 
adriens profile image
adriens

๐Ÿ“› Please provide a ready-to-use badge ๐Ÿ“ #96

โ” About

We tend to use xc on vairous projects and I would like peple to be aware that the reposiotry uses xc to describe various available tasks.

๐Ÿ‘‰ Providing a badge would help a lot ๐Ÿฆฅ

๐ŸŽฏ Feature request

  • [ ] Provide a ready to use markdown badge we could copy/paste on top of our README.md
  • [ ] Make it clickable so it makes people land to xcfile.dev/
Collapse
 
adriens profile image
adriens
Collapse
 
adriens profile image
adriens
Collapse
 
adriens profile image
adriens
Collapse
 
adriens profile image
adriens