mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: remove commitlint and node.js dependency
This commit is contained in:
@ -1,39 +0,0 @@
|
||||
[tasks.install-commitlint.mac]
|
||||
script = [
|
||||
"""
|
||||
brew install npm
|
||||
npm install @commitlint/cli @commitlint/config-conventional --save-dev
|
||||
|
||||
git config core.hooksPath .githooks
|
||||
""",
|
||||
]
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.install-commitlint.windows]
|
||||
script = [
|
||||
"""
|
||||
echo "WIP"
|
||||
|
||||
git config core.hooksPath .githooks
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
||||
[tasks.install-commitlint.linux]
|
||||
script = [
|
||||
"""
|
||||
if command -v apt &> /dev/null
|
||||
then
|
||||
echo "Installing node.js (sudo apt install nodejs)"
|
||||
sudo apt install nodejs
|
||||
else
|
||||
echo "Installing node.js (sudo pacman -S nodejs)"
|
||||
sudo pacman -S nodejs
|
||||
fi
|
||||
|
||||
npm install @commitlint/cli @commitlint/config-conventional --save-dev
|
||||
|
||||
git config core.hooksPath .githooks
|
||||
""",
|
||||
]
|
||||
script_runner = "@shell"
|
Reference in New Issue
Block a user