@nice-move/cli
v0.11.16
Published
Frontend develop helper for frontend development
Downloads
532
Maintainers
Readme
@nice-move/cli
Frontend develop helper for frontend development.
Installation
npm install @nice-move/cli --save-dev
Usage
npm exec nice-move <command>
Commands
lint commit
Lint git commit message.
Use commitlint to enforcing conventional commits.
#!/bin/sh
# file: .git/hooks/commit-msg
npm exec nice-move lint commit
lint staged
Lint and format git staged files.
Install eslint
/ stylelint
/ prettier
/ garou
when needed:
npm install eslint stylelint prettier garou --save-dev
Add configurations:
// file: package.json
{
"eslintConfig": {},
"prettier": {},
"stylelint": {},
"garou": {}
}
#!/bin/sh
# file: .git/hooks/pre-commit
npm exec nice-move lint staged
Change a few files, then run:
git add .
npm exec nice-move lint staged