mrm-preset-rmr
v2.4.1
Published
RMR preset for mrm
Downloads
4
Readme
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-rmr
Usage
- Commit all changes
- Show all available tasks —
mrm --preset rmr
- Run all RMR tasks — run
mrm --preset rmr all
inside 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
commit
script, install commitlint, commitizen, husky, with conventional-commit, create.commitlintrc.json
,.huskyrc
, add badges toREADME.md
. UsesreadmeFile
from options. - rmr-editorconfig - add
.editorconfig
with rules for*
and*.md
- rmr-gitignore - add
.gitignore
from template fornode,linux,macos,windows,visualstudiocode
- rmr-linting - install eslint with [@atomix/eslint-config], add
lint
npm-script.- If react is found, install configs for react.
- If typescript is found, install @typescript-eslint
- Modifies
.eslintrc.json
. Modifies.lintstagedrc
.
- rmr-prettier - add
format
script, install prettier, lint-staged, husky, create.prettierrc
,.huskyrc
,.lintstagedrc
, add badge to README.md. UsesreadmeFile
from options.
How to create your own package
Guide: https://github.com/sapegin/mrm-core, https://github.com/sapegin/mrm#custom-presets