Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions brand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ add the beam, a screen, or effects to the mark.
The mark is part of this repository and is licensed with it (MIT), and so is its
glyph in the VS Code icon font (below).

## Social preview

`social-preview.png` (dark) and `social-preview-light.png` are drawn by
`tools/scripts/social-preview.mjs` (`npm run social-preview`;
`npm run check:social-preview` fails when either is out of date). The script
holds the slogan, the colours and the scene: the mark at 10× with its glass
glowing, a beam through dust, and the wordmark and slogan in Projector Sans, the
renderer SDK's vendored font. It needs no browser, and it writes the same bytes
on every machine. Don't edit the images by hand: change the script and run it.

GitHub doesn't read the image from the repository. After a change, upload the
dark one in the repository's Settings → Social preview.

## Part icons

`parts/` holds the icons of a projection's three parts, drawn from one geometry
Expand Down
Binary file modified brand/social-preview-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified brand/social-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"typecheck": "node tools/scripts/workspaces.mjs typecheck",
"lint": "node tools/scripts/lint.mjs --quiet",
"icons": "node tools/scripts/product-icons.mjs",
"social-preview": "node tools/scripts/social-preview.mjs",
"format": "oxfmt",
"format:check": "oxfmt --check",
"check:boundaries": "node --test tools/scripts/engine-contracts.test.mjs && node tools/scripts/check-boundaries.mjs",
Expand All @@ -57,6 +58,7 @@
"check:readmes": "node tools/cli/src/bin.ts check --only readmes",
"check:links": "node tools/cli/src/bin.ts check --only links",
"check:icons": "node tools/scripts/product-icons.mjs --check",
"check:social-preview": "node tools/scripts/social-preview.mjs --check",
"check:considered": "node --test tools/scripts/considered-variances.test.mjs && node tools/scripts/considered.mjs check",
"check:machines": "node --test tools/scripts/check-machines.test.mjs && node tools/scripts/check-machines.mjs",
"check:tsdoc": "node tools/scripts/reference-docs.mjs --check --only tsdoc",
Expand All @@ -65,7 +67,7 @@
"check:changelog": "node tools/cli/src/bin.ts check --only changelog",
"considered": "node tools/scripts/considered.mjs",
"check": "npm run check:no-test && npm test",
"check:no-test": "npm run check:boundaries && npm run check:casing && npm run check:portability && npm run check:silent-failures && npm run check:styles && npm run check:change-hues && npm run check:readmes && npm run check:links && npm run check:icons && npm run check:considered && npm run check:machines && npm run check:tsdoc && npm run check:versions && npm run check:changelog && npm run check:lockfile && npm run format:check && npm run build && npm run check:notices && npm run check:comparators && npm run typecheck && npm run lint",
"check:no-test": "npm run check:boundaries && npm run check:casing && npm run check:portability && npm run check:silent-failures && npm run check:styles && npm run check:change-hues && npm run check:readmes && npm run check:links && npm run check:icons && npm run check:social-preview && npm run check:considered && npm run check:machines && npm run check:tsdoc && npm run check:versions && npm run check:changelog && npm run check:lockfile && npm run format:check && npm run build && npm run check:notices && npm run check:comparators && npm run typecheck && npm run lint",
"storybook": "npm run storybook --workspace @githubnext/projections-storybook",
"docs:generate": "node tools/scripts/reference-docs.mjs",
"docs:check": "node --test tools/scripts/reference-docs/agents.test.mjs && node tools/scripts/reference-docs.mjs --check",
Expand All @@ -75,6 +77,7 @@
"devDependencies": {
"@eslint-react/eslint-plugin": "^5.30.1",
"@eslint/js": "^10.0.1",
"@resvg/resvg-wasm": "^2.6.2",
"@types/node": "^22.18.0",
"ajv": "^8.17.1",
"eslint": "^10.13.0",
Expand All @@ -84,6 +87,7 @@
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-regexp": "^3.3.3",
"eslint-plugin-unicorn": "^79.0.0",
"fontkit": "^3.0.0",
"globals": "^17.12.0",
"oxfmt": "^0.75.0",
"stylelint": "^18.1.0",
Expand Down
7 changes: 7 additions & 0 deletions tools/cli/src/lib/gates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ export const gates: Gate[] = [
plan: () => ({commands: [npm('run', '--silent', 'check:icons')]}),
fix: 'npm run icons',
},
{
name: 'social-preview',
fast: true,
description: 'The repository social preview images are current (npm run check:social-preview)',
plan: () => ({commands: [npm('run', '--silent', 'check:social-preview')]}),
fix: 'npm run social-preview',
},
{
name: 'considered',
fast: true,
Expand Down
10 changes: 10 additions & 0 deletions tools/cli/src/lib/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ export const generators: Generator[] = [
needs: [],
fix: true,
},
{
name: 'social-preview',
description: 'The repository social preview, brand/social-preview.png (dark) and brand/social-preview-light.png',
outputs: ['brand/social-preview.png', 'brand/social-preview-light.png'],
inputs: ['tools/scripts/social-preview.mjs', 'packages/renderers/sdk/vendor/fonts/projector-sans.woff2'],
generate: [npm('run', 'social-preview')],
check: {mode: 'script', commands: [npm('run', 'check:social-preview')]},
needs: [],
fix: true,
},
{
name: 'codicon-tokens',
description: 'packages/host/vscode-ui/src/icons.generated.ts: the renderer icon tokens as codicons',
Expand Down
Loading