§ Quick Take

It's an opinionated npm libraries maintenance CLI app.

Before we migrated README's to codsen.com, it used to replace README's chapters, suitable for automation: installation instructions, badges and so on.

Since the migration, Nunjucks on Eleventy does the job, lect only generates placeholder README's and all auxiliary files:

  • rollup.config.json
  • .prettierignore
  • .npmignore
  • .npmrc

The babel.config.js sits in a monorepo root so it doesn't need managing — there's only one file anyway. Same with .prettierrc and .gitignore.

§ Changelog

See it in the monorepo opens in a new tab, on Sourcehut.

§ Licence

MIT opens in a new tab

Copyright © 2010–2020 Roy Revelt and other contributors

Related articles:

Our Dark Mode Setup

Our Dark Mode Setup

Conceptually, dark/light mode on a website is driven by the buttons on the UI: whichever mode user picks, a data-theme attribute with that value gets set on <html> tag. We also persist that to browser's local storage.

Automatic mode setting "listens" to system's setting via @media (prefers-color-scheme: dark). Manual dark/light modes' CSS "listens" to <html> tag attribute's value by :root[data-theme='dark'].

That's pretty much it.

Here is the mixin we use.

Read article Our Dark Mode Setup

Related packages:

📦 array-group-str-omit-num-char 3.0.3
Groups array of strings by omitting number characters
📦 array-includes-with-glob 2.13.0
Like _.includes but with wildcards
📦 array-of-arrays-into-ast 1.10.1
Turns an array of arrays of data into a nested tree of plain objects
📦 arrayiffy-if-string 3.12.0
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else
📦 array-pull-all-with-glob 4.13.0
PullAllWithGlob - like _.pullAll but pulling stronger, with globs
📦 array-of-arrays-sort-by-col 2.13.0
Sort array of arrays by column, rippling the sorting outwards from that column
📦 all-named-html-entities 1.4.0
List of all named HTML entities