feat: Update Nodemailer transport to support optional host and apiKey parameters, enhance error handling, and improve example usage
This commit is contained in:
parent
26d11289ea
commit
79b8013b5e
4 changed files with 395 additions and 344 deletions
35
CLAUDE.md
35
CLAUDE.md
|
@ -8,27 +8,34 @@ This is **@siwatsystem/mxrelay-consumer**, a TypeScript client library for SMTP
|
|||
|
||||
## Development Commands
|
||||
|
||||
**This project uses Bun as the primary runtime and package manager. TypeScript files can be run directly without building.**
|
||||
|
||||
### Build Commands
|
||||
- `npm run build` - Build all formats (CommonJS, ESM, and type declarations)
|
||||
- `npm run build:cjs` - Build CommonJS format only
|
||||
- `npm run build:esm` - Build ES modules format only
|
||||
- `npm run build:types` - Build TypeScript declarations only
|
||||
- `npm run dev` - Watch mode for development
|
||||
- `npm run clean` - Remove build artifacts
|
||||
- `bun run build` - Build all formats (CommonJS, ESM, and type declarations)
|
||||
- `bun run build:cjs` - Build CommonJS format only
|
||||
- `bun run build:esm` - Build ES modules format only
|
||||
- `bun run build:types` - Build TypeScript declarations only
|
||||
- `bun run dev` - Watch mode for development
|
||||
- `bun run clean` - Remove build artifacts
|
||||
|
||||
### Testing Commands
|
||||
- `npm test` - Run all tests
|
||||
- `npm run test:watch` - Run tests in watch mode
|
||||
- `npm run test:coverage` - Run tests with coverage report
|
||||
- `bun test` - Run all tests
|
||||
- `bun run test:watch` - Run tests in watch mode
|
||||
- `bun run test:coverage` - Run tests with coverage report
|
||||
|
||||
### Code Quality Commands
|
||||
- `npm run lint` - Lint TypeScript files
|
||||
- `npm run lint:fix` - Lint and auto-fix issues
|
||||
- `npm run format` - Format code with Prettier
|
||||
- `bun run lint` - Lint TypeScript files
|
||||
- `bun run lint:fix` - Lint and auto-fix issues
|
||||
- `bun run format` - Format code with Prettier
|
||||
|
||||
### Example Commands
|
||||
- `npm run example:basic` - Run basic usage example
|
||||
- `npm run example:queue` - Run queue management example
|
||||
- `bun run examples/nodemailer-transport.ts` - Run Nodemailer transport example directly
|
||||
- `bun run example:basic` - Run basic usage example
|
||||
- `bun run example:queue` - Run queue management example
|
||||
|
||||
### Running TypeScript Directly
|
||||
- `bun run src/index.ts` - Run source files directly without building
|
||||
- `bun run examples/any-example.ts` - Run any example file directly
|
||||
|
||||
## Architecture
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue