The dashboard requires `assets/` (favicon.svg, logo.svg) to be present.
Previously, `package.json`'s `files` array excluded `assets/`, causing missing images in the installed package.
This commit adds `assets/` to the whitelist.
Tested by packing and installing in a clean environment.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Rename `src/nostr-lock.mjs` to `src/lib.mjs` and export core functions.
- Create `bin/torch-lock.mjs` as the CLI entry point.
- Implement `dashboard` command in `src/lib.mjs` to serve the dashboard using Node.js.
- Update `package.json` to configure `bin`, `main`, and `files` for NPM packaging.
- Create `torch-config.example.json` as a template for consumers.
- Update tests and README.md to reflect the new structure.
- Exclude task-specific artifacts (logs, context) from the package while retaining prompts and docs.
Co-authored-by: PR0M3TH3AN <[email protected]>
Implemented the missing scripts required by the audit-agent:
- `scripts/check-file-size.mjs`: Checks for files exceeding 300 lines.
- `scripts/check-innerhtml.mjs`: Checks for `innerHTML` usage.
- Added `npm run lint` script using ESLint with a basic configuration.
- Added `eslint` and related dependencies.
This unblocks the audit-agent daily schedule.
Co-authored-by: PR0M3TH3AN <[email protected]>
- Added `build.mjs` to bundle `landing`, `dashboard`, and `docs` into a `dist/` directory.
- Updated `package.json` with a `build` script (`node build.mjs`).
- Updated `.gitignore` to ignore the `dist/` directory.
- Patched `landing/index.html` paths in the build output to correctly reference resources when deployed from `dist/` root.
Co-authored-by: PR0M3TH3AN <[email protected]>