chore: bootstrap Claude setup
Add root CLAUDE.md, docs/architecture.md, LESSONS.md, .env.example, VERSION, .claude/settings.json hooks (syntax/JSON checks since no linter/tests exist yet), and CI/version-bump GitHub workflows. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa24c77bc8
commit
980f9ffe17
11 files changed
+255
No files matched your search
@@ -0,0 +1,42 @@
|
||||
# CLAUDE.md
|
||||
|
||||
## Overview
|
||||
Firefox WebExtension (Manifest V2) that bypasses paywalls on news sites. This repo is
|
||||
a fork of the public `bypass-paywalls-firefox-clean` project (magnolia1234); upstream
|
||||
updates are pulled in wholesale as single commits (see `changelog.txt`), so avoid
|
||||
unrelated restructuring that would make future merges harder.
|
||||
|
||||
## Commands
|
||||
Plain WebExtension, no build step and no package manager (no `package.json`).
|
||||
- Syntax-check a JS file: `node --check <file>`
|
||||
- Validate a JSON file: `node -e "JSON.parse(require('fs').readFileSync(process.argv[1]))" <file>`
|
||||
- Load unpacked in Firefox: `about:debugging#/runtime/this-firefox` → "Load Temporary
|
||||
Add-on" → select `manifest.json`.
|
||||
- No test suite and no linter/formatter are configured.
|
||||
|
||||
## Architecture
|
||||
See `docs/architecture.md` for the file layout (background script, content scripts,
|
||||
options UI, site-rule data files).
|
||||
|
||||
## Conventions
|
||||
- Site bypass rules live in `sites.js` (upstream) and `custom/sites_custom.json`
|
||||
(local overrides, merged at runtime). Prefer adding overrides in the `custom/`
|
||||
files rather than editing the upstream `sites.js` directly.
|
||||
- `manifest.json` version (`4.2.8.2` style, 4 components) is upstream's own
|
||||
versioning and is bumped by upstream syncs, not by this repo's release workflow.
|
||||
This repo's own release version lives in the root `VERSION` file instead.
|
||||
|
||||
## Workflow quirks
|
||||
- Upstream syncs replace large generated files (`sites.js`, `background.js`,
|
||||
`contentScript*.js`, `README.md`/`README.html`, `changelog.txt`) wholesale —
|
||||
keep local changes isolated to `custom/` where possible.
|
||||
|
||||
## Deployment
|
||||
Not applicable — this is a browser extension loaded locally or published to the
|
||||
Firefox Add-ons store manually; there is no server deployment.
|
||||
|
||||
## Gotchas
|
||||
- There is no `development` branch yet; PRs target it once it exists, per the
|
||||
global git workflow.
|
||||
- No linter/test tooling exists in this repo; CI and hooks only run syntax/JSON
|
||||
validation until real tooling is added.
|
||||
Reference in new issue
Block a user