BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
314 stars 39 forks source link

Steps for building the vsix file? #49

Closed nyteshade closed 3 years ago

nyteshade commented 3 years ago

In order to contribute to the project, it would be nice to know how to set up a dev environment so we can best provide you with PRs that you'll likely approve and merge.

I presume it starts with

  1. Make sure you have Ubuntu WSL installed
  2. Install NVM and latest NodeJS version (14?)
  3. Clone the repo and cd into it
  4. npm install
  5. ??

I saw some steps on requirements on the README.md for porting, but this is different. What do we have to have present in order to contribute. Help me and I'll add a wiki page to the repo for others to follow.

The supplied scripts in the package.json file are as follows:

{
    "scripts": {
        "vscode:prepublish": "concurrently -r \"npm:compile:ext\" \"webpack --mode=production\"",
        "compile": "concurrently -r \"npm:compile:*\"",
        "compile:ext": "tsc -p ./",
        "compile:client": "webpack --mode=development",
        "watch": "concurrently -r \"npm:watch:*\"",
        "watch:ext": "tsc -watch -p ./",
        "watch:client": "webpack --watch --mode=development --info-verbosity verbose",
        "serve": "webpack-dev-server --mode=development",
        "pretest": "npm run compile:ext",
        "test": "node ./out/test/runTest.js"
    }
}

None of these create a vsix file for testing.

BartmanAbyss commented 3 years ago

Hi, you don't need to use WSL if you just want to compile the extension. Just install the latest node.js, clone the repo and npm install. Then open the directory in VS Code and hit F5. You can then test the extension without building a .vsix. To build a .vsix, npm install -g vsce (once), vsce package.

BartmanAbyss commented 3 years ago

I'll put it into the README.

BartmanAbyss commented 3 years ago

fixed in https://github.com/BartmanAbyss/vscode-amiga-debug/commit/f490e6928d9f8d0fdc82a141ac10f830ed5b0138