2.4.1 • Published 6 years ago
mrm-preset-rmr v2.4.1
RMR auto config
Readme
Create and update config files in any project.
Installation
npm install -g mrm mrm-preset-rmr
# or
yarn global add mrm mrm-preset-rmrUsage
- Commit all changes
- Show all available tasks —
mrm --preset rmr - Run all RMR tasks — run
mrm --preset rmr allinside project directory - Run specific task —
mrm --preset rmr rmr-commits - Review changed files and fix if has inconsistency or wrong order
Configuration
- Create
<PROJECT_DIR>/config.json. - Or pass param to CLI. ex.
mrm rmr --config:readmeFile=readme-file.md - mrm config resolution rules
{
"readmeFile": "README.md"
}Available tasks
- rmr-commits - add
commitscript, install commitlint, commitizen, husky, with conventional-commit, create.commitlintrc.json,.huskyrc, add badges toREADME.md. UsesreadmeFilefrom options. - rmr-editorconfig - add
.editorconfigwith rules for*and*.md - rmr-gitignore - add
.gitignorefrom template fornode,linux,macos,windows,visualstudiocode - rmr-linting - install eslint with @atomix/eslint-config, add
lintnpm-script.- If react is found, install configs for react.
- If typescript is found, install @typescript-eslint
- Modifies
.eslintrc.json. Modifies.lintstagedrc.
- rmr-prettier - add
formatscript, install prettier, lint-staged, husky, create.prettierrc,.huskyrc,.lintstagedrc, add badge to README.md. UsesreadmeFilefrom options.
How to create your own package
Guide: https://github.com/sapegin/mrm-core, https://github.com/sapegin/mrm#custom-presets