hot-reload-config.graphql 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. """
  2. The model of the config file that can optionally be added in the unity project directory.
  3. The name of the file shall be 'hot-reload-config.json'
  4. Example json contents:
  5. {
  6. "externalSolutions": [
  7. "../src/Serialization/Serialization.sln",
  8. "../src/WebSocket/WebSocket.sln"
  9. ],
  10. "additionalSourceDirectories": [
  11. "../src/SharedUtility",
  12. "../src/UnitTestBoilerplate"
  13. ],
  14. "projectBlacklist": [
  15. "../src/UnitTests/UnitTests.csproj"
  16. ],
  17. "polyfillSourceFiles": [
  18. "Polyfills/CompilerSupport.cs",
  19. "Polyfills/IndexRange.cs"
  20. ]
  21. }
  22. """
  23. input HotReloadConfig {
  24. """
  25. The file paths to external solutions.
  26. Paths shall be specified relative to the unity project path.
  27. Consider the following example:
  28. UnityProject
  29. |_ UnityProject.sln
  30. src
  31. |_ ExternalSlnDir
  32. |_ External.sln
  33. here the path would be '../src/ExternalSlnDir/External.sln'
  34. """
  35. externalSolutions: [String!]
  36. """
  37. The file paths to additional source directories that are not already part of a solution folder or its sub folders.
  38. Paths shall be specified relative to the unity project path.
  39. Consider this example:
  40. UnityProject
  41. |_ UnityProject.sln
  42. src
  43. |_ ExternalSlnDir
  44. |_ External.sln
  45. |_ External.csproj <- uses Foo.cs
  46. |_ SharedUtility
  47. |_ Foo.cs
  48. In such a case the path '../src/SharedUtility' needs to be specified as an additional source directory.
  49. This is mainly to ensure that the file watcher listens to all c# files that are related to the unity project.
  50. The Assets/ and Packages/ folders and all paths to local packages specified in the Packages/manifest.json are already covered.
  51. """
  52. additionalSourceDirectories: [String!]
  53. """
  54. The file paths to project files that Hot Reload should ignore.
  55. This is only needed when you add additional project files to the unity project solution.
  56. Paths shall be specified relative to the unity project path.
  57. Consider this example:
  58. UnityProject
  59. |_ UnityProject.sln
  60. src
  61. |_ ExternalSlnDir
  62. |_ External.sln
  63. |_ UnitTests
  64. |_ UnitTests.csproj
  65. here the path would be '../src/ExternalSlnDir/UnitTests/UnitTests.csproj'
  66. """
  67. projectBlacklist: [String!]
  68. """
  69. The file paths to source files that should get added to all unity .csproj files.
  70. Use this is you e.g. use a csc.rsp to include polyfill csharp files when compiling the script assemblies
  71. Paths shall be specified relative to the unity project path.
  72. Consider this example:
  73. UnityProject
  74. |_ UnityProject.sln
  75. PolyFills
  76. |_ IndexRange.cs
  77. here the path would be 'PolyFills/IndexRange.cs'
  78. """
  79. polyfillSourceFiles: [String!]
  80. }
  81. scalar String