mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #307 from MikeWallaceDev/fix_makefile_for_commitlint
fix: makefile for commitlint
This commit is contained in:
commit
c5aefeb45e
@ -1,9 +1,4 @@
|
|||||||
[tasks.install-commitlint]
|
[tasks.install-commitlint.mac]
|
||||||
mac_alias = "install-commitlint-macos"
|
|
||||||
windows_alias = "install-commitlint-windows"
|
|
||||||
linux_alias = "install-commitlint-linux"
|
|
||||||
|
|
||||||
[tasks.install-commitlint-macos]
|
|
||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
brew install npm
|
brew install npm
|
||||||
@ -13,7 +8,7 @@ script = [
|
|||||||
]
|
]
|
||||||
script_runner = "@shell"
|
script_runner = "@shell"
|
||||||
|
|
||||||
[tasks.install-commitlint-windows]
|
[tasks.install-commitlint.windows]
|
||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
echo "WIP"
|
echo "WIP"
|
||||||
@ -21,12 +16,20 @@ script = [
|
|||||||
]
|
]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@duckscript"
|
||||||
|
|
||||||
[tasks.install-commitlint-linux]
|
[tasks.install-commitlint.linux]
|
||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
sudo apt install nodejs
|
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 install
|
||||||
yarn husky install
|
yarn husky install
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@shell"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user