turbo.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "$schema": "https://turbo.build/schema.json",
  3. "extends": ["//"],
  4. "tasks": {
  5. "build": {
  6. "dependsOn": ["pull:env", "^build"],
  7. "outputs": [".next/**", "!.next/cache/**"],
  8. "env": [
  9. "VERCEL_ENV",
  10. "GOOGLE_ANALYTICS_ID",
  11. "AMPLITUDE_API_KEY",
  12. "CLICKHOUSE_URL",
  13. "CLICKHOUSE_USERNAME",
  14. "CLICKHOUSE_PASSWORD"
  15. ]
  16. },
  17. "fix:lint": {
  18. "dependsOn": ["fix:lint:eslint", "fix:lint:stylelint"],
  19. "cache": false
  20. },
  21. "fix:lint:eslint": {
  22. "dependsOn": ["^build"],
  23. "cache": false
  24. },
  25. "fix:lint:stylelint": {
  26. "cache": false
  27. },
  28. "pull:env": {
  29. "outputs": [".env.local"],
  30. "cache": false
  31. },
  32. "start:dev": {
  33. "dependsOn": ["pull:env"],
  34. "persistent": true,
  35. "cache": false
  36. },
  37. "start:prod": {
  38. "dependsOn": ["build"],
  39. "persistent": true,
  40. "cache": false
  41. },
  42. "test:lint": {
  43. "dependsOn": ["test:lint:eslint", "test:lint:stylelint"]
  44. },
  45. "test:lint:eslint": {
  46. "dependsOn": ["^build"]
  47. },
  48. "test:lint:stylelint": {}
  49. }
  50. }