Makefile.toml 654 B

1234567891011121314151617181920212223242526272829303132333435
  1. [tasks.install-commitlint.mac]
  2. script = [
  3. """
  4. brew install npm
  5. yarn install
  6. yarn husky install
  7. """,
  8. ]
  9. script_runner = "@shell"
  10. [tasks.install-commitlint.windows]
  11. script = [
  12. """
  13. echo "WIP"
  14. """,
  15. ]
  16. script_runner = "@duckscript"
  17. [tasks.install-commitlint.linux]
  18. script = [
  19. """
  20. if command -v apt &> /dev/null
  21. then
  22. echo "Installing node.js and yarn (sudo apt install nodejs yarn)"
  23. sudo apt install nodejs yarn
  24. else
  25. echo "Installing node.js and yarn (sudo pacman -S nodejs yarn)"
  26. sudo pacman -S nodejs yarn
  27. fi
  28. yarn install
  29. yarn husky install
  30. """,
  31. ]
  32. script_runner = "@shell"