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

@boyan-chengdu/root

v0.0.6

Published

项目工程架构通用部分:package.json,webpack配置,lerna配置

Downloads

12

Readme

成都市道路交通信号控制系统管理平台

环境需求

nodejs 15.14.0 npm 7.7.6 yarn 1.22.19 lerna 4.0.0 verdaccio v5.30.3

workspace + lerna + 本地npm环境verdaccio

// 配置基础运行环境
npm install -g [email protected] --force
npm i -g verdaccio
npm i -g [email protected]
lerna bootstrap 或 npm install 安装项目依赖

// 运行verdaccio,包服务器的相关配置
verdaccio
npm set registry http://localhost:4873/
npm adduser --registry http://localhost:4873/
npm profile set password --registry http://localhost:4873/ // 修改密码
npm publish --registry http://localhost:4873/
// 修改verdaccio包的体积的限制
nvm which 15.14.0
运行verdaccio的时候,可以看到console中的目录:C:\Users\by\.config\verdaccio\config.yaml,修改max_body_size: 1000mb



// 把某个组件发包的过程
在组件目录下新建package.json文件
在外层package.json目录下配置对应的wqirkspace
git提交修改后的代码
lerna publish 发布包,lerna自动管理包的版本和依赖关系,自动打tag
// lerna常用指令汇总
lerna init # 初始化
lerna create @templatejs/parser # 创建一个package
lerna add @types/node --scope=@templatejs/node # 给package安装依赖
lerna list # 列出所有的包
lerna bootstrap # 安装全部依赖
lerna link # 建立全部软连接
lerna changed # 列出下次发版lerna publish 要更新的包
lerna publish # 会打tag,上传git,上传npm

install

npm install | yarn

dev

npm start | yarn

build

mpm run build

globalStore.js

全局状态
参考 ##https://github.com/pmndrs/zustand

light | dark -theme

全局样式变量,默认引入light

公司npm源地址

username: beyondnpm password: beyondnpm http://192.168.0.199:8081/nexus/repository/npm-group/ http://192.168.0.199:8081/nexus/repository/npm-hosted/ http://192.168.0.199:8081/nexus/repository/npm-proxy/

同时lerna发包时需要设置相关的npm源以及提前登录

  npm login --registry=http://192.168.0.199:8081/nexus/repository/npm-hosted/
  lerna publish --registry=http://192.168.0.199:8081/nexus/repository/npm-hosted/