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

shining3d-components

v1.0.0

Published

1. 单元测试(unit), 框架选择Karma (Q2) 2. 跨平台测试(sauce), 框架选择Karma + sauce labs (Q4) 3. 端到端测试(e2e), 框架选择NightWatch (Q4) 4. 运行时性能 (benchmark) (Q3) 5. 测试报告生成 (Q4)

Downloads

1

Readme

阶段要求:联调初步完成后要求完成以下测试

  1. 单元测试(unit), 框架选择Karma (Q2)
  2. 跨平台测试(sauce), 框架选择Karma + sauce labs (Q4)
  3. 端到端测试(e2e), 框架选择NightWatch (Q4)
  4. 运行时性能 (benchmark) (Q3)
  5. 测试报告生成 (Q4)

Q3阶段要求逐步支持Typescript

package.json需要包含以下命令

yarn test:unit yarn test:cover yarn test:e2e yarn test:sauce yarn test yarn build yarn dev yarn lint

组件目录

.eslintrc .eslintignore yarn.lock README.md .gitignore .prettierrc .babelrc .npmrc - @shining3d:registry=http://npm.shining3d.com/ package.json src test benchmarks dist locales

包发布流程

  1. 初始版本1.0.0

  2. 代码从master merge到自己的分支

  3. 自测阶段使用npm link, 不要发布版本

  4. 联调阶段发布版本 [email protected]~alpha.0

  5. 发布命令: npx lerna publish, 更多命令 - https://github.com/lerna/lerna

  6. 查看是否发布成功,地址:https://npm.shining3d.com

本地调试考虑vue serve命令 @todo 使用Vite + Rollup

项目中如何使用@shining3d的私有包

  1. npm login, access账号:用户名:admin 密码:admin2021!@# 邮箱:<your_name>@shining3d.com
  2. 项目中配置 .npmrc - @shining3d:registry=http://npm.shining3d.com/
  3. 正常安装即可, 如yarn add @shining3d/screenshot

发布流程

  1. 开发新组件必须是在新分支, 更新迭代也在此分支, 比如@shing3d/screenshot
  2. 联调时merge到dev, 在此分支上只能发布alpha版本, [email protected]~alpha.1
  3. 组件开发完毕, 需要发布release版本, 必须切换到test分支, 版本号是@shinging3d/screenshot~release.1
  4. 正式版本必须merge到master, 版本是1.0.1
  5. 版本发布结合CI,npm publish

commit内容规范

'feat', // 新功能 'update', // 修改 'del', // 删除 'fix', // bug修复 'test', // 单元测试 'perf', // 性能优化 'docs', // 文档更新 'style', // 样式变动 'refactor', // 功能重构 'revert', // 回滚某个更早之前的提交 'package', // 创建包

不符合规范的提示git commit -m 'test’ 规范的提示git commit -m "fix: 修改test.js”