[clang-tools-extra] r372980 - [clangd][vscode] Add npm helper commands to package/release the extension.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 07:04:52 PDT 2019


Author: hokein
Date: Thu Sep 26 07:04:52 2019
New Revision: 372980

URL: http://llvm.org/viewvc/llvm-project?rev=372980&view=rev
Log:
[clangd][vscode] Add npm helper commands to package/release the extension.

Summary: Help to fix https://github.com/clangd/clangd/issues/159.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68080

Modified:
    clang-tools-extra/trunk/clangd/clients/clangd-vscode/DEVELOPING.md
    clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json

Modified: clang-tools-extra/trunk/clangd/clients/clangd-vscode/DEVELOPING.md
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/DEVELOPING.md?rev=372980&r1=372979&r2=372980&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/clients/clangd-vscode/DEVELOPING.md (original)
+++ clang-tools-extra/trunk/clangd/clients/clangd-vscode/DEVELOPING.md Thu Sep 26 07:04:52 2019
@@ -48,6 +48,6 @@ please contact clangd-dev at lists.llvm.org
   # For the first time, you need to login in the account. vsce will ask you for
     the Personal Access Token, and remember it for future commands.
   $ vsce login llvm-vs-code-extensions
-  # Make sure the screenshots in the readme are rendered in VSCode marketplace.
-  $ vsce publish --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/
+  # Publish the extension to the VSCode marketplace.
+  $ npm run publish
 ```

Modified: clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json?rev=372980&r1=372979&r2=372980&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json (original)
+++ clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json Thu Sep 26 07:04:52 2019
@@ -33,7 +33,9 @@
         "compile": "tsc -watch -p ./",
         "postinstall": "node ./node_modules/vscode/bin/install",
         "format": "clang-format --style=LLVM -i --glob=\"{src,test}/*.ts\"",
-        "test": "node ./node_modules/vscode/bin/test"
+        "test": "node ./node_modules/vscode/bin/test",
+        "package": "vsce package --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/",
+        "publish": "vsce publish --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/"
     },
     "dependencies": {
         "jsonc-parser": "^2.1.0",




More information about the cfe-commits mailing list