Skip to content

Gulp to nx: Migrate transpile watch and transpile tests. add new watch helper#34339

Merged
ajivanyandev merged 12 commits into
DevExpress:feature/gulp-to-nx-migrationfrom
ajivanyandev:gulp/transpile-watch
Jul 17, 2026
Merged

Gulp to nx: Migrate transpile watch and transpile tests. add new watch helper#34339
ajivanyandev merged 12 commits into
DevExpress:feature/gulp-to-nx-migrationfrom
ajivanyandev:gulp/transpile-watch

Conversation

@ajivanyandev

Copy link
Copy Markdown
Contributor

No description provided.

@ajivanyandev ajivanyandev self-assigned this Jul 16, 2026
@ajivanyandev
ajivanyandev requested a review from a team as a code owner July 16, 2026 11:41
@ajivanyandev
ajivanyandev requested a review from a team July 16, 2026 11:41
Comment thread packages/devextreme/build/gulp/transpile-config.js
Comment thread packages/devextreme/project.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR continues the “Gulp → Nx” migration by moving transpile watch and transpile test transpilation behavior into Nx targets/executors, while adding a shared watch helper to centralize chokidar-based watch behavior across executors.

Changes:

  • Added a shared watchWithChokidar helper and refactored concatenate-files watch mode to reuse it.
  • Added watch mode support to build-typescript (TypeScript watch program) and babel-transform (file-level incremental chokidar watch), including new e2e coverage.
  • Updated DevExtreme project targets and legacy gulp tasks to delegate to the new Nx targets; adjusted Babel config/dependencies for transpile-tests.

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
pnpm-lock.yaml Lockfile updates for newly added/updated Babel plugin deps.
packages/nx-infra-plugin/src/utils/watch.ts New shared chokidar loader + debounced watch loop helper for executors.
packages/nx-infra-plugin/src/utils/index.ts Re-exported new watch utilities.
packages/nx-infra-plugin/src/executors/concatenate-files/concatenate-files.impl.ts Removed local chokidar/watch loop; now uses shared watch helper.
packages/nx-infra-plugin/src/executors/build-typescript/schema.ts Added watch?: boolean option to executor schema typing.
packages/nx-infra-plugin/src/executors/build-typescript/schema.json Added watch option to executor JSON schema.
packages/nx-infra-plugin/src/executors/build-typescript/executor.e2e.spec.ts Added e2e coverage for build-typescript watch mode + SIGINT shutdown.
packages/nx-infra-plugin/src/executors/build-typescript/build-typescript.impl.ts Implemented TypeScript watch mode with per-emit alias resolution.
packages/nx-infra-plugin/src/executors/babel-transform/schema.ts Made configKey optional; added watch?: boolean.
packages/nx-infra-plugin/src/executors/babel-transform/schema.json Made configKey optional in JSON schema; added watch option.
packages/nx-infra-plugin/src/executors/babel-transform/executor.e2e.spec.ts Added e2e coverage for flat config and watch mode with a chokidar mock.
packages/nx-infra-plugin/src/executors/babel-transform/babel-transform.impl.ts Added watch mode (chokidar + incremental per-file rebuild) and flat-config support.
packages/nx-infra-plugin/AGENTS.md Documented the new shared watch helper as the standard approach for watch executors.
packages/devextreme/testing/tests.babelrc.json Updated module transform plugin reference to the modern package name.
packages/devextreme/project.json Added new Nx targets for watch transpilation and transpile-tests, plus orchestration target.
packages/devextreme/package.json Added Babel plugins needed by updated tests transpilation config.
packages/devextreme/build/gulp/transpile.js Replaced gulp implementation with thin Nx-delegating tasks (transitional).
packages/devextreme/build/gulp/transpile-config.js Adjusted transpile Babel config plugins.
.github/copilot-instructions.md Documented the new Nx commands for watch transpile and transpile-tests.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread packages/nx-infra-plugin/src/utils/watch.ts Outdated
Comment thread packages/nx-infra-plugin/src/utils/watch.ts
Comment thread packages/nx-infra-plugin/src/utils/watch.ts Outdated
Comment thread packages/nx-infra-plugin/src/executors/build-typescript/build-typescript.impl.ts Outdated
@vorobey
vorobey self-requested a review July 17, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

@vorobey
vorobey force-pushed the feature/gulp-to-nx-migration branch from 63450e8 to 283094c Compare July 17, 2026 09:44
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Arman Jivanyan <arman.jivanyan@devexpress.com>
@ajivanyandev
ajivanyandev requested review from a team as code owners July 17, 2026 11:06
@github-actions github-actions Bot added the .d.ts label Jul 17, 2026
@ajivanyandev
ajivanyandev force-pushed the gulp/transpile-watch branch from 0fdcf6f to 08bf589 Compare July 17, 2026 11:10
@github-actions github-actions Bot removed the .d.ts label Jul 17, 2026
@ajivanyandev
ajivanyandev removed request for a team July 17, 2026 11:11
…into gulp/transpile-watch

# Conflicts:
#	packages/devextreme/build/gulp/bundler-config.js
#	packages/devextreme/gulpfile.js
#	packages/devextreme/package.json
#	packages/nx-infra-plugin/AGENTS.md
#	packages/nx-infra-plugin/src/executors/concatenate-files/concatenate-files.impl.ts
@ajivanyandev
ajivanyandev merged commit d582475 into DevExpress:feature/gulp-to-nx-migration Jul 17, 2026
97 of 100 checks passed
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.

4 participants