git clone https://github.com/cloudlayerio/cloudlayerio-js.git
cd cloudlayerio-js
npm install| Command | Description |
|---|---|
npm run build |
Build ESM + CJS + types |
npm run dev |
Build in watch mode |
npm test |
Run tests |
npm run test:watch |
Run tests in watch mode |
npm run test:coverage |
Run tests with coverage |
npm run lint |
Lint with Biome |
npm run lint:fix |
Auto-fix lint issues |
npm run format |
Format with Biome |
npm run format:check |
Check formatting |
npm run typecheck |
TypeScript type checking |
This project uses Biome for linting and formatting. Configuration is in biome.json.
Tests use Vitest with mocked fetch. Test files live in tests/ mirroring the src/ structure.
npm test # Run all tests
npm run test:coverage # Run with coverage report- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes
- Run all quality checks:
npm run typecheck && npm test && npm run lint && npm run format:check - Commit and push
- Open a pull request
- Update version in
package.json - Update
CHANGELOG.md - Commit:
chore: release vX.Y.Z - Create a GitHub Release with tag
vX.Y.Z - CI automatically publishes to npm