launch.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "type": "pwa-node",
  6. "request": "attach",
  7. "name": "Debug: Attach Debugger to Server",
  8. "port": 9229,
  9. "cwd": "${workspaceFolder}/packages/app",
  10. "sourceMapPathOverrides": {
  11. "webpack://@growi/app/*": "${workspaceFolder}/packages/app/*"
  12. }
  13. },
  14. {
  15. "type": "pwa-node",
  16. "request": "launch",
  17. "name": "Debug: Current File",
  18. "skipFiles": [
  19. "<node_internals>/**"
  20. ],
  21. "console": "integratedTerminal",
  22. "cwd": "${fileDirname}",
  23. "runtimeExecutable": "yarn",
  24. "runtimeArgs": [
  25. "ts-node",
  26. "${file}"
  27. ]
  28. },
  29. {
  30. "type": "pwa-node",
  31. "request": "launch",
  32. "name": "Debug: Server",
  33. "cwd": "${workspaceFolder}/packages/app",
  34. "runtimeExecutable": "yarn",
  35. "runtimeArgs": [
  36. "dev"
  37. ],
  38. "skipFiles": [
  39. "<node_internals>/**"
  40. ],
  41. "restart": true,
  42. "console": "integratedTerminal",
  43. "internalConsoleOptions": "neverOpen",
  44. "sourceMapPathOverrides": {
  45. "webpack://@growi/app/*": "${workspaceFolder}/packages/app/*"
  46. }
  47. },
  48. {
  49. "type": "pwa-chrome",
  50. "request": "launch",
  51. "name": "Debug: Chrome",
  52. "sourceMaps": true,
  53. "sourceMapPathOverrides": {
  54. "webpack://_N_E/*": "${workspaceFolder}/packages/app/*"
  55. },
  56. "webRoot": "${workspaceFolder}/packages/app/public",
  57. "url": "http://localhost:3000"
  58. },
  59. {
  60. "type": "firefox",
  61. "request": "launch",
  62. "name": "Debug: Firefox",
  63. "reAttach": true,
  64. "webRoot": "${workspaceFolder}/packages/app/public",
  65. "url": "http://localhost:3000",
  66. "pathMappings": [
  67. {
  68. "url": "webpack://_n_e/src",
  69. "path": "${workspaceFolder}/packages/app/src"
  70. },
  71. {
  72. "url": "webpack://_n_e/core",
  73. "path": "${workspaceFolder}/packages/core"
  74. },
  75. {
  76. "url": "webpack://_n_e/plugin-attachment-refs",
  77. "path": "${workspaceFolder}/packages/plugin-attachment-refs"
  78. },
  79. {
  80. "url": "webpack://_n_e/plugin-pukiwiki-like-linker",
  81. "path": "${workspaceFolder}/packages/plugin-pukiwiki-like-linker"
  82. },
  83. {
  84. "url": "webpack://_n_e/plugin-lsx",
  85. "path": "${workspaceFolder}/packages/plugin-lsx"
  86. },
  87. {
  88. "url": "webpack://_n_e/slack",
  89. "path": "${workspaceFolder}/packages/app/slack"
  90. },
  91. {
  92. "url": "webpack://_n_e/ui",
  93. "path": "${workspaceFolder}/packages/ui"
  94. },
  95. {
  96. "url": "http://localhost:3000",
  97. "path": "${workspaceFolder}/packages/app/public"
  98. }
  99. ]
  100. }
  101. ]
  102. }