Skip to content

fix: print only one message when running empty tasks#474

Open
nam-hle wants to merge 2 commits intomainfrom
feature/247-empty-task-single-message
Open

fix: print only one message when running empty tasks#474
nam-hle wants to merge 2 commits intomainfrom
feature/247-empty-task-single-message

Conversation

@nam-hle
Copy link
Copy Markdown
Member

@nam-hle nam-hle commented Feb 16, 2026

Summary

Closes #247

  • Add empty flag to RegisteredTask to identify lifecycle-only tasks (registered with no function body)
  • Suppress the STARTED message in the reporter for empty tasks, printing only the DONE line — matching the single-message pattern used by UP-TO-DATE and FROM-CACHE tasks
  • Update test matchers (toRun, toRunInOrder) to handle the absence of STARTED for empty tasks

Test plan

  • New empty-task.test.ts verifies: empty tasks suppress STARTED, non-empty tasks still show STARTED, dependency ordering works with empty tasks
  • All existing tests pass (snapshots updated)
  • Type-check passes

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 16, 2026

Deploy Preview for nadle ready!

Name Link
🔨 Latest commit 1ba11bc
🔍 Latest deploy log https://app.netlify.com/projects/nadle/deploys/699f1e9bc3ee3c00081035cd
😎 Deploy Preview https://deploy-preview-474--nadle.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 83
Accessibility: 98
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@nam-hle nam-hle enabled auto-merge (squash) February 16, 2026 14:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 16, 2026

size-limit report 📦

Path Size
bundled 129.05 KB (+0.1% 🔺)

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 16, 2026

Open in StackBlitz

create-nadle

npx https://pkg.pr.new/nadlejs/nadle/create-nadle@474

eslint-plugin-nadle

npx https://pkg.pr.new/nadlejs/nadle/eslint-plugin-nadle@474

@nadle/kernel

npx https://pkg.pr.new/nadlejs/nadle/@nadle/kernel@474

@nadle/language-server

npx https://pkg.pr.new/nadlejs/nadle/@nadle/language-server@474

nadle

npx https://pkg.pr.new/nadlejs/nadle@474

@nadle/project-resolver

npx https://pkg.pr.new/nadlejs/nadle/@nadle/project-resolver@474

nadle-vscode-extension

npx https://pkg.pr.new/nadlejs/nadle/nadle-vscode-extension@474

commit: 1ba11bc

@nam-hle nam-hle force-pushed the feature/247-empty-task-single-message branch 2 times, most recently from 1f15ec5 to 840ecbb Compare February 19, 2026 02:16
nam-hle and others added 2 commits February 25, 2026 22:39
Suppress the STARTED message for lifecycle-only (empty) tasks so only
DONE is printed, matching the single-message pattern used by UP-TO-DATE
and FROM-CACHE tasks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nam-hle nam-hle force-pushed the feature/247-empty-task-single-message branch from 840ecbb to 1ba11bc Compare February 25, 2026 16: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.

Print only one message when running empty tasks

1 participant