chore: bootstrap Claude setup
Add root CLAUDE.md, docs/, LESSONS.md, .env.example, .claude/settings.json hooks (syntax-check on edit and on stop), and CI workflows (lint via node --check, and a VERSION-based semver bump) for this plain-JS, no-build Chrome extension. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
733097a002
commit
7285c82fb7
9 files changed
+199
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Development notes
|
||||
|
||||
This repo tracks the upstream [Bypass Paywalls Clean](https://gitflic.ru/project/magnolia1234/bypass-paywalls-chrome-clean)
|
||||
project. Most changes are periodic syncs of `sites.js`, `background.js`,
|
||||
`contentScript*.js` and `README.md`/`README.html` from upstream releases.
|
||||
|
||||
## Local testing
|
||||
|
||||
1. Open `chrome://extensions` in a Chromium-based browser.
|
||||
2. Enable Developer Mode.
|
||||
3. Click *Load unpacked* and select the repo root (it contains `manifest.json`).
|
||||
4. Reload the extension after any file change.
|
||||
|
||||
## Syntax checking
|
||||
|
||||
There is no bundler or test suite. The quickest available check is a Node.js
|
||||
syntax check on every JS file:
|
||||
|
||||
```sh
|
||||
find . -name "*.js" -not -path "./.git/*" -print0 | xargs -0 -n1 node --check
|
||||
```
|
||||
|
||||
This only catches syntax errors, not logic bugs — there is no real lint or test
|
||||
coverage configured.
|
||||
|
||||
## Versioning
|
||||
|
||||
`manifest.json`'s `version` field mirrors the upstream extension release and is
|
||||
not touched by this repo's own CI. This repo's own release counter lives in the
|
||||
root `VERSION` file, bumped automatically by `.github/workflows/version.yml`.
|
||||
Reference in new issue
Block a user