Skip to content

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@nice-move/cli

Frontend develop helper for frontend development.

npm github node

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

Related