Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: makefile for commitlint

MikeWallaceDev28e3cb35b8d2
diff --git a/Makefile.toml b/Makefile.toml
index 72e65cad91..868694219a 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -1,19 +1,19 @@
-[tasks.install-commitlint]
-mac_alias = "install-commitlint-macos"
-windows_alias = "install-commitlint-windows"
-linux_alias = "install-commitlint-linux"
+# [tasks.install-commitlint]
+# mac_alias = "install-commitlint-macos"
+# windows_alias = "install-commitlint-windows"
+# linux_alias = "install-commitlint-linux"
-[tasks.install-commitlint-macos]
+[tasks.install-commitlint.mac]
script = [
"""
brew install npm
- yarn install
- yarn husky install
+ yarn install
+ yarn husky install
""",
]
script_runner = "@shell"
-[tasks.install-commitlint-windows]
+[tasks.install-commitlint.windows]
script = [
"""
echo "WIP"
@@ -21,12 +21,20 @@ script = [
]
script_runner = "@duckscript"
-[tasks.install-commitlint-linux]
+[tasks.install-commitlint.linux]
script = [
"""
- sudo apt install nodejs
- yarn install
- yarn husky install
+ 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
""",
]
-script_runner = "@duckscript"
\ No newline at end of file
+script_runner = "@shell"