@nice-move/cli

0.11.11 • 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

/@nice-move/cli/

    Package Sidebar

    Install

    npm i @nice-move/cli

    Weekly Downloads

    181

    Version

    0.11.11

    License

    MIT

    Unpacked Size

    405 kB

    Total Files

    10

    Last publish

    Collaborators

    • airkro