npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uvec

v1.0.7

Published

update-vscode-extension-cli

Downloads

6

Readme

update-vscode-extension-cli

update-vscode-extension-cli 简称 uvec

uvec package

Usage

Usage:
  $ uvec package [cwd]

Options:
  --pkg-name      要发布的npm包的package.json中的name, 默认为vscode插件的package.json的name 
  --pkg-version   默认为package.json中的version, 可用值: [new-version] | major | minor | patch | premajor | preminor | prepatch | prerelease 
  --only-build     (default: false)
  --registry-url   (default: https://registry.npmjs.org/)
  --cache-dir     构建npm包的暂存区 (default: ~/.uvec)
  --vsce          vsce package的参数 
  --publish       npm publish/yarn publish的参数 
  -h, --help      Display this message 

Examples:
  onlyBuild模式(只构建npm包, 剩余部分自己实现): uvec package . --only-build --pkg-name='@hupu/vscode-extension' -vsce.out='hupu.vsix' --vsce.no-yarn --vsce.allow-star-activation
  default模式(打包并发布npm包): uvec package . --registry-url='http://hnpm.hupu.io/' --pkg-name='@hupu/vscode-extension' -vsce.out='hupu.vsix' --vsce.no-yarn --vsce.allow-star-activation


更多详情请看:
  https://juejin.cn/post/7141662937420136479/

--vsce 参数

vsce不是本包的强制依赖, 本包已经将vsce@2作为peerDependencies

如果最新的vsce有什么问题, 可能是兼容没做好, 可以降级到 [email protected]

vsce package 的参数中改造, 可能vsce支持了最新参数, 但是下面

--out <path>                npm包中 (defaults to ./extension.vsix)
--target <target>           Target architecture
--message <commit message>  Commit message used when calling `npm version`.
--no-git-tag-version            Do not create a version commit and tag when calling `npm version`. Valid only when
                                [version] is provided.
--no-update-package-json        Do not update `package.json`. Valid only when [version] is provided.
--githubBranch <branch>         The GitHub branch used to infer relative links in README.md. Can be overriden by
                                --baseContentUrl and --baseImagesUrl.
--gitlabBranch <branch>         The GitLab branch used to infer relative links in README.md. Can be overriden by
                                --baseContentUrl and --baseImagesUrl.
--no-rewrite-relative-links     Skip rewriting relative links.
--baseContentUrl <url>          Prepend all relative links in README.md with this url.
--baseImagesUrl <url>           Prepend all relative image links in README.md with this url.
--yarn                          Use yarn
--no-yarn                       Use npm
--ignoreFile <path>             Indicate alternative .vscodeignore
--no-gitHubIssueLinking         Disable automatic expansion of GitHub-style issue syntax into links
--no-gitLabIssueLinking         Disable automatic expansion of GitLab-style issue syntax into links
--dependencies                  Enable dependency detection via npm or yarn
--no-dependencies               Disable dependency detection via npm or yarn
--pre-release                   Mark this package as a pre-release
--allow-star-activation         Allow using * in activation events
--allow-missing-repository      Allow missing a repository URL in package.json