CLI AS
命令行别名工具
配置信息存储在config.json
中:
{
"init": "git init & git branch -M main & git config user.name \"mewcoder\" & git config user.email \"1010953107.com\"",
"npmrc": "echo registry=https://registry.npmmirror.com > .npmrc",
"clean": "rimraf",
"kill": "kill-port",
"commit:reset": "git checkout --orphan aaa & git add . & git commit -m \"chore: init\" & git branch -D main & git branch -m main & git push -u origin main -f",
"git:remote": "git remote rm origin & git remote add origin https://github.com/mewcoder/$1.git",
"push": "git branch -M main & git push -u origin main",
"update": "git add . & git commit -m \"feat: update\" & git push origin",
"hello": "echo \"hello clias!\""
}
执行as npmrc
即可执行对应命令