tasks.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. // See https://go.microsoft.com/fwlink/?LinkId=733558
  3. // for the documentation about the tasks.json format
  4. "version": "2.0.0",
  5. "tasks": [
  6. {
  7. "label": "MakeHTML",
  8. "type": "shell",
  9. "command": "./sugarcube_compile.bat",
  10. "presentation": {
  11. "echo": true,
  12. "reveal": "always",
  13. "focus": false,
  14. "panel": "dedicated",
  15. "showReuseMessage": false,
  16. "clear": true
  17. },
  18. "group": {
  19. "kind": "build",
  20. "isDefault": true
  21. },
  22. "problemMatcher": [],
  23. "dependsOn": [
  24. "esbuild",
  25. "cleanCSS"
  26. ]
  27. },
  28. {
  29. "label": "MakeReadme",
  30. "type": "shell",
  31. "command": "./readme/readme_compile.bat",
  32. "presentation": {
  33. "echo": true,
  34. "reveal": "always",
  35. "focus": false,
  36. "panel": "shared",
  37. "showReuseMessage": false,
  38. "clear": true
  39. },
  40. "group": {
  41. "kind": "build"
  42. },
  43. "problemMatcher": []
  44. },
  45. {
  46. "label": "BuildModFiles",
  47. "type": "shell",
  48. "command": "./mods/util/BuildModFiles.bat",
  49. "presentation": {
  50. "echo": true,
  51. "reveal": "always",
  52. "focus": false,
  53. "panel": "shared",
  54. "showReuseMessage": false,
  55. "clear": true
  56. },
  57. "group": {
  58. "kind": "build"
  59. },
  60. "problemMatcher": [],
  61. "dependsOn": [
  62. "MakeHTML"
  63. ]
  64. },
  65. {
  66. "type": "typescript",
  67. "tsconfig": "./sugarcube/tsconfig.json",
  68. "problemMatcher": [
  69. "$tsc"
  70. ],
  71. "presentation": {
  72. "panel": "dedicated",
  73. },
  74. "group": {
  75. "kind": "build"
  76. },
  77. "label": "TSC"
  78. },
  79. {
  80. "label": "esbuild",
  81. "type": "shell",
  82. "command": "esbuild sugarcube/temp/typescript.js --minify --outfile=sugarcube/src/typescript-min.js",
  83. "presentation": {
  84. "echo": true,
  85. "reveal": "always",
  86. "focus": false,
  87. "panel": "dedicated",
  88. "showReuseMessage": false,
  89. "clear": true
  90. },
  91. "group": {
  92. "kind": "build"
  93. },
  94. "problemMatcher": [],
  95. "dependsOn": [
  96. "TSC"
  97. ]
  98. },
  99. {
  100. "label": "lessPrecompile",
  101. "type": "shell",
  102. "command": "python sugarcube/devTools/lessPreCompile/lessPreCompile.py",
  103. "presentation": {
  104. "echo": true,
  105. "reveal": "always",
  106. "focus": false,
  107. "panel": "dedicated",
  108. "showReuseMessage": false,
  109. "clear": true
  110. },
  111. "group": {
  112. "kind": "build"
  113. },
  114. "problemMatcher": [],
  115. "dependsOn": [
  116. ]
  117. },
  118. {
  119. "label": "less",
  120. "type": "shell",
  121. "command": "lessc sugarcube/src/main.less sugarcube/temp/less_preCleaned.css",
  122. "presentation": {
  123. "echo": true,
  124. "reveal": "always",
  125. "focus": false,
  126. "panel": "dedicated",
  127. "showReuseMessage": false,
  128. "clear": true
  129. },
  130. "group": {
  131. "kind": "build"
  132. },
  133. "problemMatcher": [],
  134. "dependsOn": ["lessPrecompile"]
  135. },
  136. {
  137. "label": "cleanCSS",
  138. "type": "shell",
  139. "command": "./node_modules/.bin/cleancss -o sugarcube/src/less.min.css sugarcube/temp/less_preCleaned.css -O 2",
  140. "presentation": {
  141. "echo": true,
  142. "reveal": "always",
  143. "focus": false,
  144. "panel": "dedicated",
  145. "showReuseMessage": false,
  146. "clear": true
  147. },
  148. "group": {
  149. "kind": "build"
  150. },
  151. "problemMatcher": [],
  152. "dependsOn": [
  153. "less"
  154. ]
  155. },
  156. ]
  157. }