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

@jukeplus/shop-shared

v0.0.492

Published

前端共享文件库

Downloads

366

Readme

shop-shared

前端共享文件库

使用

npm i @jukeplus/shop-shared@version -S

部署文档和包

生成文档

文档是给前后端开发看的,生成文档依赖 redoc-cli,首先安装 redoc-cli:

npm i redoc-cli -g

之后生成并且部署文档到 dev 服务器,请先测试 dev 服务器能否正常登陆,如果不行请添加 ssh 公钥或者更改部署地址。

ssh [email protected]

登录成功后运行:

npm run deploy

发布版本

npm 包,是用来生成代码以及 mock 数据的

要发包,请先确保你已经登录 npm,运行

npm login

再确认你有发包的权限,如果没有请让管理员邀请你加入 npm 的@jukeplus 组织

最后运行

npm run pub

编写文档

api-spec是项目的 API Specification,它使用 OpenAPI 来描述一个 api 的 url,请求体,请求头,返回头,返回体等。有了这个描述文件,就可以 mock 数据,生成代码,或者用来做 数据校验,测试等等。

for more detail: https://swagger.io/specification/

文档地址