Skip to content
Draft
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
Binary file added .evidence/after.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 added .evidence/before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ npm run dev

## Notes

- [App.svelte](https://github.com/fastrepl/contextlengthof/blob/main/src/App.svelte) is all you need to edit.
- Start with [App.svelte](https://github.com/fastrepl/contextlengthof/blob/main/src/App.svelte) for most UI changes.
- [PicoCSS](https://picocss.com/) is used for styling.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:readme": "node scripts/check-readme-phrasing.mjs",
"format": "prettier --write ."
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions scripts/check-readme-phrasing.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { readFileSync } from 'node:fs';

const readme = readFileSync(new URL('../README.md', import.meta.url), 'utf8');
const unclearPhrase = 'is all you need to edit';

if (readme.includes(unclearPhrase)) {
console.error(`README uses overly broad guidance: "${unclearPhrase}"`);
process.exit(1);
}

console.log('README phrasing check passed.');
Loading