fix: improved development environment installation

moved and renamed /Makefile.toml to githooks.toml
added install script for Linux
This commit is contained in:
MikeWallaceDev
2022-07-18 14:31:13 -04:00
parent 5035075e14
commit 39900022db
4 changed files with 90 additions and 35 deletions

View File

@ -0,0 +1,39 @@
[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"