Table des matières

Contributing to µcBlockly

Thank you for considering contributing. This short guide will help you get started.

Before you start

Compatibility: µcBlockly v3 requires Blockly 13 (blockly ^13 and aligned @blockly/* plugins). See the root README and KERNEL.md.

  1. Read the architecture

See ARCHITECTURE.md for:

  1. Set up the project
  1. Quality checks before a PR
  1. Code style

Common tasks

Task Where to look
Add or change a block (UI) src/categories/blockly/ + index.ts
Add or change code generation for a block src/generators/arduino/blocks/ + src/generators/arduino.ts
Add block types / compatibility src/generators/arduino/block_types/, block_types.ts, block_types_registry.ts TYPES_ET_COMPATIBILITES.md
Change toolbox or categories src/toolbox.ts
Add a board or change pins src/boards.ts
Add or edit a language src/languages/ — then npm run check-translations
Convert Blockly@rduino project npm run convert-rduino — see CONVERT_RDUINO.md
Regenerate functions inventory npm run extract-functionsdocs/functions-list.md

Reporting issues and pull requests

Keeping ARCHITECTURE.md and this file up to date when you change the project layout or workflow is appreciated.