https://github.com/zardoy/mrm-preset
https://github.com/zardoy/mrm-preset
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zardoy/mrm-preset
- Owner: zardoy
- License: mit
- Created: 2021-11-19T02:25:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T08:24:23.000Z (almost 2 years ago)
- Last Synced: 2025-10-06T12:57:29.862Z (9 months ago)
- Language: TypeScript
- Homepage: https://npmjs.com/mrm-preset-zardoy
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE.MD
Awesome Lists containing this project
README
# MRM Preset
My personal mrm preset. Installing globally. Exposes `mrm` cli.
## Ideal World
> Describing conception
This is one the best template scaffolding solution, I've seen so far. I tried yeoman (which is ~~modern~~ super legacy) and its alternative with some short name. Though mrm is not ideal, so there is `bin.js`, which is patched entrypoint of it to workaround slowdown bug (and enable cli auto-update!).
It is meant to be used in *existing folder*, this way you can use each task either it in *just created folder* or in some old repo!
Also, it can be weird, but everything is synchronous here.
### Task Conception
Each task can be used via **API** or cli like `mrm ts`
Each task should have these exports/options:
- wether task is applicable in cwd (mostly by detecting some files)
I have here ensureTask function for some tasks for easy of creating complex tasks
- task parameters (choices)
- main function with params as input (maybe even more params for api)
Other key features:
- [x] easy full files copy (with folders structure)
- [x] writing to output with green / yellow changed files!
- [ ] using existing package manager and pnpm by default