Thank you for contributing! 🎉
# Clone
git clone https://github.com/Automations-Project/n8n-nodes-cloudflare.git
cd n8n-nodes-cloudflare
# Install
npm install
# Build
npm run buildWe use Jest for testing.
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report| Directory | Purpose |
|---|---|
nodes/shared/*.test.ts |
Shared utility tests |
credentials/*.test.ts |
Credential validation |
nodes/[NodeName]/*.test.ts |
Node-specific tests |
- Create
[NodeName].test.tsalongside the node file - Follow the pattern in
CloudflareDns.test.ts - Cover: metadata, configuration, resources, methods
npm run lint # Check linting
npm run lintfix # Auto-fix issues
npm run format # Format with Prettier- Create folder:
nodes/CloudflareServiceName/ - Add files:
CloudflareServiceName.node.ts- Main nodeServiceNameDescription.ts- Field definitionsServiceNameExecute.ts- Execution logicCloudflareServiceName.node.json- Codex metadataCloudflareServiceName.test.ts- Tests
- Register in
package.jsonundern8n.nodes
- Fork and create feature branch
- Make changes
- Run tests:
npm test - Run lint:
npm run lint - Update documentation if needed
- Submit PR with clear description
Open an issue.