§ Quick Take

It's an opinionated npm libraries maintenance CLI app.

lect generates many files for each monorepo package:

  • README.md
  • rollup.config.json
  • .prettierignore
  • .npmignore
  • tsconfig.json
  • .npmrc
  • LICENCE
  • compiles the examples API, /packages/*/examples/api.json
  • Semaphore CI opens in a new tab build script

§ Changelog

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

§ Contributing

To report bugs or request features or assistance, raise an issue on GitHub opens in a new tab.

Any code contributions welcome! All Pull Requests will be dealt promptly.

§ Licence

MIT opens in a new tab

Copyright © 2010–2021 Roy Revelt and other contributors

Related articles:

ARTICLE  
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 4.0.16
Groups array of strings by omitting number characters
📦 array-pull-all-with-glob 5.0.16
Like _.pullAll but with globs (wildcards)
📦 arrayiffy-if-string 3.13.16
Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else
📦 array-of-arrays-sort-by-col 3.0.16
Sort array of arrays by column, rippling the sorting outwards from that column
📦 all-named-html-entities 1.5.16
List of all named HTML entities
📦 array-of-arrays-into-ast 2.0.16
Turns an array of arrays of data into a nested tree of plain objects
📦 array-includes-with-glob 3.0.16
Like _.includes but with wildcards