swc-project / swc-project/pkgs
Add more CLI option shortcuts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 86
- Forks
- 44
- Avg merge
- 3d 49m
- Merged PRs (30d)
- 1
Description
I'm finding SWC CLI commands can get very long, which is awkward when they're defined in a package.json script such as:
"scripts": {
"swc": "swc src -d dist --strip-leading-paths --delete-dir-on-start",
}
It would be great to have shortcuts for at least the 2 longer flags above. Could be an acronym to avoid using up options that might be useful elsewhere. e.g.
swc src -d dist -slp -ddon
I'm happy to put in a PR for this but wanted to check opinions first.
Contributor guide
No contributing guide indexed for this repository
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 package.json script shown in the issue and locate the SWC CLI handling for --strip-leading-paths and --delete-dir-on-start. Check how existing option shortcuts are represented and tested; done means both flags accept agreed short aliases while retaining their current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100