-
Notifications
You must be signed in to change notification settings - Fork 48
Remove dependencies for downloading / unzipping #148
Conversation
How would that work for extensions? Today we have the following command configuration in "scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
} How would the |
@octref btw I am not 100% sure removing the |
Something like this: https://github.com/octref/vscode-test-ext/blob/master/package.json#L27 Also would make #111 and #124 possible, you can just install dependencies for fixture projects or 3rd party extensions yourself before running the tests. Instead of implicit flags on CLI, we can now properly document and IntelliSense the options. |
I'll bring it back with https://github.com/TooTallNate/node-https-proxy-agent. |
@octref we cannot really remove that test script though right? Because by now every extension has it in its |
@bpasero We could include the test script and still export the If we do have #147 then we can start deprecating |
@octref I think we can keep the test script in Basically, Or was your idea to keep the two modules separate? |
Sounds great. I can do that. |
I think this is ready to review. I published https://github.com/microsoft/vscode-test and https://www.npmjs.com/package/vscode-test. You can see https://github.com/octref/vscode-test-sample for sample usage. Things I added:
I didn't move the test runner yet. I can do that after this gets merged. |
@octref great work, this makes the module much smaller. A few comments:
PS: should we switch to be using |
I can do that through another PR, but I thought we are moving away from postinstall scripts to directing people to install through
Agreed. Removed it and is using https://update.code.visualstudio.com/api/releases/stable for validating version. microsoft/vscode-test@646c005
Fixed.
I think so. Me and Martin switched all satellite repos to using yarn. |
Right. The challenge I see here is that we will always need a way to point to the latest
Maybe that can be done as a separate PR. Feel free to merge and publish under a new version 👍 |
I'll setup an Azure function that publishes our master/proposed API under NPM tag Thanks for reviewing! |
WIP. I plan to allow
downloadAndUnzipVSCode
to take a version too.The script would download them to:
@bpasero I'm wondering if we can also change the way we run test. Instead of saying users should run
node ./node_modules/bin/test
, maybe export arunTest
function so it's easier to configure?User's code could look like this: