@nice-move/cli

0.11.5 • Public • Published

@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

Package Sidebar

Install

npm i @nice-move/cli

Weekly Downloads

198

Version

0.11.5

License

MIT

Unpacked Size

1.54 MB

Total Files

15

Last publish

Collaborators

  • airkro