guardian / frontend

The Guardian DotCom.
https://theguardian.com
Other
5.84k stars 555 forks source link

Move the task runner to ESM #27247

Closed mxdvl closed 3 months ago

mxdvl commented 3 months ago

What is the value of this and can you measure success?

Enable bumping ESM-only dependencies of the task runner, such as cpy

What does this change?

Refactor all the CommonJS of the task runner to use ESM instead.

[!NOTE] This does not yet use ESM for the tasks themselves

Screenshots

image

Checklist

mxdvl commented 3 months ago

We could improve the typing of tasks with something like:

/** @type {import('../../task-runner/task.mjs').Task} */
/** @typedef {{
    description: string;
    task: Array<() => Promise<void> | Task>;
    concurrent?: boolean;
}} Task */
github-actions[bot] commented 3 months ago

Deploy build 2249 of dotcom:frontend-all to CODE

All deployment options - [Deploy build 2249 of `dotcom:frontend-all` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=dotcom%3Afrontend-all&build=2249&stage=CODE&updateStrategy=MostlyHarmless&action=deploy) - [Deploy parts of build 2249 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=dotcom%3Afrontend-all&build=2249&stage=CODE&updateStrategy=MostlyHarmless) - [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=dotcom%3Afrontend-all&stage=CODE)

From guardian/actions-riff-raff.

prout-bot commented 3 months ago

Seen on FRONTS-PROD (merged by @mxdvl 12 minutes and 2 seconds ago)

prout-bot commented 3 months ago

Seen on ADMIN-PROD (merged by @mxdvl 12 minutes and 8 seconds ago)