Thanks for contributing to native.js.
- Install dependencies with
yarn install - Build the repo with
yarn prepare - Run checks with
yarn lintandyarn test
packages/nativejs-compiler- compiler core, type inference, code generationpackages/nativejs-preset-standard- base runtime helpers and standard pluginspackages/nativejs-preset-arduino- Arduino target supportpackages/nativejs-preset-rp2040- RP2040 target support and Pico SDK integration
- new language feature support in the compiler
- bug fixes in emitted C or type inference
- new target presets or peripheral plugins
- improved examples and target documentation
- test coverage for compiler and preset behavior
- Make focused changes
- Run
yarn prepare - Run
yarn lint - Run
yarn test - If you touch RP2040 support, also run the preset-specific build or smoke flow when possible
Useful commands:
yarn --cwd packages/nativejs-preset-rp2040 generate -- examples/src/blink.ts
yarn --cwd packages/nativejs-preset-rp2040 validate -- examples/src/blink.ts
yarn --cwd packages/nativejs-preset-rp2040 smokevalidate and smoke require a local Pico SDK setup through PICO_SDK_PATH.
Keep pull requests narrow in scope when possible. If a change affects code generation, include at least one test or example that demonstrates the intended output.