Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a task for creating date labels #320

Merged
merged 4 commits into from
Jan 4, 2021
Merged

Add a task for creating date labels #320

merged 4 commits into from
Jan 4, 2021

Conversation

ashley-hebler
Copy link
Member

What's this PR do?

Adds an npm run dates task, which uses node-canvas to dynamically create branded, published x year images.

Assets added
  • images/ - This is a new directory that will be shared along with other npm assets like scss and svg files. In the future, we could also store logo assets here.

Why are we doing this? How does it help us?

Ultimately, the goal is similar to what the Guardian wrote about here.

We'll house these images in this repo to keep them out of the way in our main repo. Having them also helps them stay versioned along with other design system-related changes. A design change to the labels would merit a new npm release.

How should this be manually tested?

npm install
npm run dates

This should print ✔ Generating date labels in the terminal and build 1999 - 2021 date labels.

Does this introduce a breaking change where queso-ui is used in the wild? If so, is there a relevant branch/PR to accompany this release?

After I pre-release this, I'll add a simple script in our main repo to copy these images into our static_root folder. We'll then use thumbor to reference them as overlays.

@ashley-hebler ashley-hebler merged commit 1b91fef into main Jan 4, 2021
@ashley-hebler ashley-hebler deleted the watermark branch March 11, 2021 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant