GithubHelp home page GithubHelp logo

hub-yang / todo-scripts Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 270 KB

一些帮助简化前端配置工程的通用脚本

Home Page: https://github.com/Hub-yang/todo-scripts

License: MIT License

JavaScript 32.85% TypeScript 66.52% Shell 0.64%
bash node sh

todo-scripts's Introduction

@huberyyang/todo-scripts

🔥一些帮助简化前端配置工程的通用脚本

Important

⚠️ 目前模块内使用pnpm,后期新增自动判断

没有pnpm?,执行

npm install pnpm -g

开始

安装

npm install --save-dev @huberyyang/todo-scripts
pnpm add --save-dev @huberyyang/todo-scripts
yarn add --dev @huberyyang/todo-scripts
bun add --dev @huberyyang/todo-scripts
🔵 Commitlint config

🚀自动执行 commitlint + husky + lint-staged安装与配置

执行

npx hubery commitlint-init
pnpm exec hubery commitlint-init
bunx hubery commitlint-init

配置项

--clear 🧹清洁执行 - 执行完脚本后卸载模块

npx hubery commitlint-init --clear

--czgit 📦配置cz-git支持

npx hubery commitlint-init --czgit

测试一下🎉

[!NOTE] eslint 会在每次执行commit前自动执行,如需更改commit钩子执行前的命令,可自行修改package.jsonlint-staged配置

git add .
git commit -m "test commitlint"

License

MIT License © 2024 Hubery Yang

todo-scripts's People

Contributors

hub-yang avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.