0.11.1 • Published 2 years ago
@bingtsingw/mrm-preset v0.11.1

@bingtsingw/mrm-preset
mrm preset to keep configuration files in-sync and consistent across various projects. Highly inspired by mrm-preset-default and @adonisjs/mrm-preset.
:white_check_mark: This project is configured by itself.
:warning: This documentation uses @antfu/ni for npm operations.
Usage
$ ni mrm @bingtsingw/mrm-preset -DAdd script to package.json file
{
"scripts": {
"mrm": "mrm --preset=@bingtsingw/mrm-preset"
}
}Or use only one command
$ ni mrm @bingtsingw/mrm-preset -D && jq '.scripts += { mrm: "mrm --preset=@bingtsingw/mrm-preset" }' package.json > package.tmp && mv package.tmp package.jsonTasks
MIT License
Re-Create LICENSE file inside the project root.
$ nr mrm mitEditorconfig
Remove and Re-Create a .editorconfig file inside the project root.
$ nr mrm editorconfigGit Ignore
Re-Create .gitignore file inside the project root.
$ nr mrm gitignoreTypescript
- Create
tsconfig.json(DO NOT add any configuration) - Update
.vscode/settings.jsonto support typescript - install
typescript,@types/node
$ nr mrm typescriptRelease-it
- Add
.release-it.json - Add
releasenpm scripts - Add
release-itand@release-it/conventional-changelog
$ nr mrm release-itVSCode
Create a .vscode/settings.json file to set basic editor settings.
$ nr mrm vscodeHusky
- Remove current
.huskyfolder - Add
huskypackage and runnpx husky install
$ nr mrm huskyLint-Staged
- Remove all
.lintstagedconfigs - Add
lint-stagedpackage and add huskypre-commithook
$ nr mrm lint-stagedCommitizen
- Remove all
commitizenconfigs - Add
commitizenpackages and configs - Install husky hook if exists
$ nr mrm commitizenPrettier
- Remove all prettier config files
- Add
.prettierrc.jsonand.prettierignorefile - Update
.vscode/settings.jsonsettings - Add
package.jsonscripts - install
prettier- install
prettier-plugin-organize-importsif in a typescript project
- install
$ nr mrm prettierPrisma
- Add
prismapackage and script - Init
prismaand adddiff.sh
$ nr mrm prisma