build-cache.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * This configuration file manages Rush's build cache feature.
  3. * More documentation is available on the Rush website: https://rushjs.io
  4. */
  5. {
  6. "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/build-cache.schema.json",
  7. /**
  8. * (Required) EXPERIMENTAL - Set this to true to enable the build cache feature.
  9. *
  10. * See https://rushjs.io/pages/maintainer/build_cache/ for details about this experimental feature.
  11. */
  12. "buildCacheEnabled": false,
  13. /**
  14. * (Required) Choose where project build outputs will be cached.
  15. *
  16. * Possible values: "local-only", "azure-blob-storage", "amazon-s3"
  17. */
  18. "cacheProvider": "local-only",
  19. /**
  20. * Setting this property overrides the cache entry ID. If this property is set, it must contain
  21. * a [hash] token. It may also contain a [projectName] or a [projectName:normalized] token.
  22. */
  23. // "cacheEntryNamePattern": "[projectName:normalized]-[hash]"
  24. /**
  25. * Use this configuration with "cacheProvider"="azure-blob-storage"
  26. */
  27. "azureBlobStorageConfiguration": {
  28. /**
  29. * (Required) The name of the the Azure storage account to use for build cache.
  30. */
  31. // "storageAccountName": "example",
  32. /**
  33. * (Required) The name of the container in the Azure storage account to use for build cache.
  34. */
  35. // "storageContainerName": "my-container",
  36. /**
  37. * The Azure environment the storage account exists in. Defaults to AzurePublicCloud.
  38. *
  39. * Possible values: "AzurePublicCloud", "AzureChina", "AzureGermany", "AzureGovernment"
  40. */
  41. // "azureEnvironment": "AzurePublicCloud",
  42. /**
  43. * An optional prefix for cache item blob names.
  44. */
  45. // "blobPrefix": "my-prefix",
  46. /**
  47. * If set to true, allow writing to the cache. Defaults to false.
  48. */
  49. // "isCacheWriteAllowed": true
  50. },
  51. /**
  52. * Use this configuration with "cacheProvider"="amazon-s3"
  53. */
  54. "amazonS3Configuration": {
  55. /**
  56. * (Required) The Amazon S3 region of the bucket to use for build cache (e.g. "us-east-1").
  57. */
  58. // "s3Region": "us-east-1",
  59. /**
  60. * The name of the bucket in Amazon S3 to use for build cache.
  61. */
  62. // (Required) "s3Bucket": "my-bucket",
  63. /**
  64. * An optional prefix ("folder") for cache items.
  65. */
  66. // "s3Prefix": "my-prefix",
  67. /**
  68. * If set to true, allow writing to the cache. Defaults to false.
  69. */
  70. // "isCacheWriteAllowed": true
  71. }
  72. }