mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-22 22:16:18 +08:00
chore: update deps
This commit is contained in:
28
scripts/update-dependencies
Executable file
28
scripts/update-dependencies
Executable file
@@ -0,0 +1,28 @@
|
||||
// #!/bin/bash
|
||||
|
||||
// #/ Usage: script/update-dependencies
|
||||
// #/ Create a branch to update a dependency.
|
||||
|
||||
// # Delete update-dependencies branch if it exists
|
||||
// if git branch | grep -q "update-dependencies"; then
|
||||
// echo "Deleting update-dependencies branch 🗑"
|
||||
// git branch -D update-dependencies
|
||||
// echo "Branch deleted 🎉"
|
||||
// fi
|
||||
|
||||
// # Create update-dependencies branch
|
||||
// echo "Creating update-dependencies branch 🌱"
|
||||
// git checkout -b update-dependencies
|
||||
// echo "Branch created 🎉"
|
||||
|
||||
// # Update dependencies in package.json
|
||||
// echo "Updating dependencies in package.json 📦"
|
||||
// pnpm update --interactive --recursive --latest
|
||||
// # Clean up pnpm-lock.yaml file and install dependencies
|
||||
// script/clean && pnpm install
|
||||
// # Git operations
|
||||
// git add -A
|
||||
// git commit -am "chore: update dependencies 📦"
|
||||
// git push origin update-dependencies
|
||||
// gh pr create --fill
|
||||
// echo "Dependencies updated 🎉"
|
@@ -15,7 +15,6 @@ async function runLint({ format }: LintCommandOptions) {
|
||||
await $`stylelint "**/*.{vue,css,less.scss}" --cache --fix`;
|
||||
await $`eslint . --cache --fix`;
|
||||
await $`prettier . --write --cache`;
|
||||
// await $`vsh publint --check`;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -24,7 +23,6 @@ async function runLint({ format }: LintCommandOptions) {
|
||||
// $`ls-lint`,
|
||||
$`prettier . --ignore-unknown --check --cache`,
|
||||
$`stylelint "**/*.{vue,css,less.scss}" --cache`,
|
||||
// $`vsh publint --check`,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user