what I've picked up over the years about the stupid content tracker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": ["patches"], | |
| "properties": { | |
| "patches": { | |
| // PatchSet | |
| // see: https://github.com/itzg/mc-image-helper#patchset | |
| "type": "array", | |
| "additionalItems": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const batchAsync = async function <T>( | |
| iterable: Iterable<T> | AsyncIterable<T>, | |
| callback: (value: T) => Promise<void>, | |
| limit: number, | |
| ) { | |
| const batch = new Set<Promise<void>>(); | |
| for await (const value of iterable) { | |
| const promise = callback(value).finally(() => { | |
| batch.delete(promise); |
A better solution may be deployment via GitHub Actions, but I stumbled upon a working solution someone else may find helpful. It modifies the shell script found in the documentation a bit to use a workspace to support history
- Vite Static Deployment Documentation 📑
- Inspiration 💡
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Produces an array of locale-respective formats | |
| * @template {keyof Intl.DateTimeFormatOptions} K | |
| * @template {(NonNullable<Intl.DateTimeFormatOptions[K]>)[]} [F=["long", "short"]] | |
| * @param {K} key - a valid key on the `Intl.DateTimeFormatOptions` object | |
| * @param {number} quantity - the number of units of the provided option | |
| * @param {(index: number) => Date} callback - used for creating subsequent dates | |
| * @param {F} formats - an optional list of formats to generate and key | |
| * @returns {{ [format in F[number]]: string }[]} | |
| */ |