.before() and .after() don't work for tasks in series/parallel
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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