import-cost icon indicating copy to clipboard operation
import-cost copied to clipboard

[Request] Publish Extension on open-vsx.org

Open oxy opened this issue 4 years ago โ€ข 11 comments

Hi there!

I'm reaching out to you because we currently have your extension manually added to our extension gallery at Coder for code-server, and we're currently working on a migration to open-vsx, which is also used by other community VSCode forks (including, but not limited to Arch Linux's Code-OSS builds and VSCodium).

We (and other open source VSCode forks) cannot use Microsoft's extension gallery, as MS' terms of service allows only the proprietary MS products to interact with the official gallery.

We'd really appreciate it if you can add your extension to open-vsx! A simple guide on publishing extensions to Open-VSX is available here.

oxy avatar Jan 11 '21 18:01 oxy

@yairhaimo could you help here please ๐Ÿ™? The extension is auto-published [1] via a repository called https://github.com/open-vsx/publish-extensions. This would mean before Wix decides to publish the extension there, it could be published by us, but a problem has appeared, which is that the script fails to package up the extension.

Could you please share any docs or the steps for packaging the extension into a .vsix file?

filiptronicek avatar Jun 16 '22 15:06 filiptronicek

@shahata can help with this

yairhaimo avatar Jun 16 '22 15:06 yairhaimo

Friendly ping @shahata :), can provide any details if required and would love to assist with either publishing to Open VSX or setting up some of the releasing workflows with assets.

filiptronicek avatar Sep 17 '22 13:09 filiptronicek

@filiptronicek did you try to package the latest version? any packaging issue should be resolved in v3 and up

shahata avatar Sep 17 '22 15:09 shahata

I tried packaging the latest version (https://github.com/wix/import-cost/tree/master) by installing dependencies (npm i) and then executing vsce package inside of vscode-import-cost but I get an error message that the entrypoint is missing:

gitpod /workspace/import-cost/packages/vscode-import-cost (master) $ vsce package
 ERROR  Extension entrypoint(s) missing. Make sure these files exist and aren't ignored by '.vscodeignore':
  extension/dist/extension.electron.js,
  extension/dist/extension.browser.js

@shahata should I be running the command somewhere else? Or are there any steps I'm missing?

filiptronicek avatar Sep 17 '22 15:09 filiptronicek

You also need to run npm test

shahata avatar Sep 17 '22 16:09 shahata

So these are the commands in order that I executed:

  1. npm i in root
  2. npm run pretest in packages/vscode-import-cost to compile the js
  3. vsce package in packages/vscode-import-cost

Now I'm getting this from vsce ๐Ÿค”:

 ERROR  invalid relative path: extension/../../.eslintignore

filiptronicek avatar Sep 17 '22 17:09 filiptronicek

Try vsce package --no-dependencies

shahata avatar Sep 17 '22 20:09 shahata

I added a build command to make this process easier, all you need to do is clone the repo and then run:

$ npm install
$ npm run build

Then you can just collect the extension from packages/vscode-import-cost/vscode-import-cost-${version}.vsix

shahata avatar Sep 17 '22 20:09 shahata

Thanks a lot for the guidance here ๐Ÿ™, I was able to build a .vsix correctly. Sadly, the auto-publishing CI seems to be a bit stuck and running in an infinite loop, but I think I can make it work and will comment here again once the latest version is published :).

filiptronicek avatar Sep 18 '22 09:09 filiptronicek

v3.3.0 has been published ๐ŸŽ‰! [open-vsx.org]

So glad I can use the extension again, thanks a lot @shahata ๐Ÿงก

image

filiptronicek avatar Sep 18 '22 09:09 filiptronicek