microsoft / microsoft/just

.before() and .after() don't work for tasks in series/parallel

Open
#208 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Suppose I want to use the webapp preset and add something before (or after) the ts task:

const { taskPresets, chain } = require('just-scripts');
taskPresets.webapp();
chain('some-task').before('ts');

If I run just-scripts ts, my additional task will run. But if I do just-scripts build (which contains ts), it won't run my additional task.

So...extensible task configs? :D

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the taskPresets.webapp() and chain() entry points, then reproduce the difference between running just-scripts ts and just-scripts build. Trace how before() and after() hooks are applied to tasks inside series or parallel execution; done means the additional task runs consistently in both direct and composed invocations.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.