2022-02-05 17:32:12 +00:00
|
|
|
[tasks.install-commitlint.mac]
|
2022-02-05 08:14:15 +00:00
|
|
|
script = [
|
|
|
|
"""
|
|
|
|
brew install npm
|
2022-02-05 17:32:12 +00:00
|
|
|
yarn install
|
|
|
|
yarn husky install
|
2022-02-05 08:14:15 +00:00
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@shell"
|
|
|
|
|
2022-02-05 17:32:12 +00:00
|
|
|
[tasks.install-commitlint.windows]
|
2022-02-05 08:14:15 +00:00
|
|
|
script = [
|
|
|
|
"""
|
|
|
|
echo "WIP"
|
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@duckscript"
|
|
|
|
|
2022-02-05 17:32:12 +00:00
|
|
|
[tasks.install-commitlint.linux]
|
2022-02-05 08:14:15 +00:00
|
|
|
script = [
|
|
|
|
"""
|
2022-02-05 17:32:12 +00:00
|
|
|
if command -v apt &> /dev/null
|
|
|
|
then
|
|
|
|
echo "Installing node.js and yarn (sudo apt install nodejs yarn)"
|
|
|
|
sudo apt install nodejs yarn
|
|
|
|
else
|
|
|
|
echo "Installing node.js and yarn (sudo pacman -S nodejs yarn)"
|
|
|
|
sudo pacman -S nodejs yarn
|
|
|
|
fi
|
|
|
|
|
|
|
|
yarn install
|
|
|
|
yarn husky install
|
2022-02-05 08:14:15 +00:00
|
|
|
""",
|
|
|
|
]
|
2022-02-05 17:32:12 +00:00
|
|
|
script_runner = "@shell"
|