Skip to content

refactor(build): replace eslint/prettier with oxlint/oxfmt, add debug…#160

Merged
zurekz merged 4 commits into
develfrom
build/tooling-and-build-system
Apr 28, 2026
Merged

refactor(build): replace eslint/prettier with oxlint/oxfmt, add debug…#160
zurekz merged 4 commits into
develfrom
build/tooling-and-build-system

Conversation

@imaTik0
Copy link
Copy Markdown
Member

@imaTik0 imaTik0 commented Apr 17, 2026

… build variant, remove checksum cache

Linting/formatting:

  • Replace eslint + prettier with oxlint and oxfmt
  • Add .oxlintrc.json and .oxfmtrc.json config files
  • Remove eslint.config.mjs, prettier.config.js
  • Update package.json: lint/format scripts; remove eslint/prettier devDeps; add oxlint

Debug/release build variants:

  • Add PRIVMX_BUILD_TYPE CMake cache variable to all five C++ components (async-engine, webendpoint-cpp, drv-crypto, drv-ecc, drv-net)
  • Debug: -O0 -g, ASSERTIONS=2, SAFE_HEAP=1, STACK_OVERFLOW_CHECK=2, no LTO
  • Release: unchanged (-O3, LTO, ASSERTIONS=0, SAFE_HEAP=0)
  • Add build:debug and build:wasm:debug npm scripts
  • pipeline.sh reads PRIVMX_BUILD_TYPE from env; passes it to build_api
  • build_api, build_async_engine, build_webdrivers read build type; reconfigure only when CMakeCache.txt is absent or the build type changed
  • Add configure_if_needed helper in build_webdrivers to avoid repetition

Remove custom checksum cache:

  • Delete scripts/check_dir_checksum
  • Remove check_dir_checksum calls, RESULT case/esac blocks, and need_rebuild sentinel logic from build_gmp, build_poco, build_privmx_endpoint, build_pson, build_secp, build_api, build_async_engine, build_webdrivers
  • Replace with: configure step guarded by CMakeCache.txt / Makefile existence; make always runs (Make's own dependency graph skips unchanged units)

Add clean:wasm script:

  • scripts/clean_wasm removes build-emscripten/ from every first-party C++ component and all dependency_sources/ subdirectories
  • Add "clean:wasm" npm script

README:

  • Update build scripts table to include build:debug, build:wasm:debug, clean:wasm
  • Add "Release vs Debug builds" section with flag comparison table

… build variant, remove checksum cache

Linting/formatting:
- Replace eslint + prettier with oxlint and oxfmt
- Add .oxlintrc.json and .oxfmtrc.json config files
- Remove eslint.config.mjs, prettier.config.js
- Update package.json: lint/format scripts; remove eslint/prettier devDeps; add oxlint

Debug/release build variants:
- Add PRIVMX_BUILD_TYPE CMake cache variable to all five C++ components
  (async-engine, webendpoint-cpp, drv-crypto, drv-ecc, drv-net)
- Debug: -O0 -g, ASSERTIONS=2, SAFE_HEAP=1, STACK_OVERFLOW_CHECK=2, no LTO
- Release: unchanged (-O3, LTO, ASSERTIONS=0, SAFE_HEAP=0)
- Add build:debug and build:wasm:debug npm scripts
- pipeline.sh reads PRIVMX_BUILD_TYPE from env; passes it to build_api
- build_api, build_async_engine, build_webdrivers read build type; reconfigure
  only when CMakeCache.txt is absent or the build type changed
- Add configure_if_needed helper in build_webdrivers to avoid repetition

Remove custom checksum cache:
- Delete scripts/check_dir_checksum
- Remove check_dir_checksum calls, RESULT case/esac blocks, and need_rebuild
  sentinel logic from build_gmp, build_poco, build_privmx_endpoint, build_pson,
  build_secp, build_api, build_async_engine, build_webdrivers
- Replace with: configure step guarded by CMakeCache.txt / Makefile existence;
  make always runs (Make's own dependency graph skips unchanged units)

Add clean:wasm script:
- scripts/clean_wasm removes build-emscripten/ from every first-party C++
  component and all dependency_sources/ subdirectories
- Add "clean:wasm" npm script

README:
- Update build scripts table to include build:debug, build:wasm:debug, clean:wasm
- Add "Release vs Debug builds" section with flag comparison table
@imaTik0 imaTik0 changed the base branch from feat/refactor-driver-context to devel April 24, 2026 11:52
@imaTik0 imaTik0 force-pushed the build/tooling-and-build-system branch from 138b137 to d9c29bd Compare April 24, 2026 11:53
@imaTik0 imaTik0 marked this pull request as ready for review April 27, 2026 14:48
@imaTik0 imaTik0 requested a review from zurekz April 27, 2026 14:48
@zurekz zurekz merged commit a954ef5 into devel Apr 28, 2026
1 check passed
@zurekz zurekz deleted the build/tooling-and-build-system branch April 28, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants