Reference
Contributing
Help improve Universal Data Layer
Setup
Clone the repository and install dependencies:
Terminal
git clone https://github.com/dawidurbanski/universal-data-layer.git
cd universal-data-layer
npm install
Project Structure
universal-data-layer/
├── packages/
│ ├── core/ # Core UDL functionality
│ ├── plugin-source-contentful/ # Contentful plugin
│ └── codegen-typed-queries/ # TypedDocumentNode generation
├── examples/
│ └── nextjs/ # Next.js example app
└── docs/ # Documentation site (Nuxt/Docus)
Development
Building Packages
Terminal
npm run build
Running Tests
Terminal
npm test
Running the Example
Terminal
# Start UDL server with mock data
cd examples/nextjs
npm run udl:dev
# In another terminal, start Next.js
npm run dev
Contributing Guidelines
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make your changes
- Add tests for new functionality
- Run tests:
npm test - Commit with a descriptive message
- Submit a pull request
Code Style
- TypeScript for all new code
- ESLint and Prettier for formatting
- Comprehensive JSDoc comments
Run linting:
Terminal
npm run lint
Reporting Issues
Found a bug or have a feature request? Open an issue on GitHub.
Next Steps
- Creating Plugins - Build your own plugin
- Configuration Reference - Full config options