aurelia / new

The Aurelia 2 scaffolding repo used by our tools to setup new projects.
MIT License
35 stars 18 forks source link

IDE support: vscode #23

Open xenoterracide opened 4 years ago

xenoterracide commented 4 years ago

so the Au CLI, would ask you about IDE support. Would be cool if this were added back and added recommended extensions (e.g.), the ignore #22 and more importantly a launch.json, I still have not gotten debugging working with the webpack/typescript setup.

P.S. any chance you know why/can help with that?

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "attach",
      "name": "Attach to Chrome",
      "port": 9222,
      "webRoot": "${workspaceFolder}/src"
    },
    {
      "name": "Chrome Debugger",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:9000",
      "webRoot": "${workspaceRoot}/src",
      "userDataDir": "${workspaceRoot}/.chrome",
      "sourceMapPathOverrides": {
        "../src/*": "${webRoot}/*"
      }
    }
  ]
}
3cp commented 4 years ago

Not right now, we want to keep this repo as small as possible before Aurelia 2 Beta (no timeline). Because of possible breaking change, we don't want to bring so many features in before Aurelia 2 settles.

Same goes to #22.

xenoterracide commented 4 years ago

any chance you can help with that launch.json anyways? :P it's currently my bane... :'(

3cp commented 4 years ago

Sent a PR in.

If the chrome debugger only works with webpack, make it conditional.

.vscode/launch.json__if_webpack
3cp commented 4 years ago

Remember you have to maintain it :-)

xenoterracide commented 4 years ago

I doubt it only works with webpack... I'd have to try it though to see if it's different with gulp, however... I just finally got it working! VICTORY!

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Chrome Debugger",
      "type": "chrome",
      "request": "launch",
      "url": "http://localhost:9000",
      "webRoot": "${workspaceRoot}",
      "userDataDir": "${workspaceRoot}/.chrome"
    }
  ]
}

as far as a PR on this, I'll think about it, I think I need to use vscode for like, another couple of months before I commit, I've primarily been an intellij user for the last few years, and not doing frontend dev at all.

3cp commented 4 years ago

No worry, not urgent. aurelia-cli got launch.json for both setup. I just need time to adjust that to work with dumber bundler gulp setup. Maybe we will add that before you do, as few other au2 core members use vscode too.