Some tools for dev
A git pre-commit hook with nodeJs; More info about git hook, please see this document: Git Hooks
├── pre-commit // git hook script
└── pre-commit-installer.js // the pre-commit hook installer
- Merge conflicts, forbidden commit;
- scss compile error, forbidden commit;
- use elementUi, forbidden commit;
This command depens on nodeJs, check your node environment:
node -v
run this command at the root of project(after git init
)
curl https://raw.githubusercontent.com/Deguang/devTool/master/pre-commit-installer.js | node