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

@some21/element-ui-plus

v0.0.18

Published

Element UI 的扩展UI

Downloads

7

Readme

目前处于测试阶段

打包 UMD 时候的情况记录

进行 UMD 打包时 package.json 文件中的 dependencies 会打包到 UMD 模块输出路径中,但会排除 dependencies 中存在,同时 peerDependencies devDependencies 也存在的相关模块,最终打包的结果为 dependenciespeerDependencies devDependencies 的差集

Babel 的一些特殊插件


["@babel/plugin-transform-runtime", { corejs: false /*解决 helper 函数重复引入*/ }
"@babel/plugin-proposal-object-rest-spread", //扩展运算符 ...
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": false, "legacy": true }], //启用装饰器的识别
"@babel/plugin-syntax-dynamic-import", //顶层 import
"@babel/plugin-proposal-optional-chaining" //可选链 ?.
["@babel/plugin-proposal-pipeline-operator", { "proposal": "smart" }] //空值合并运算符 ??

解除包的发布

npm unpublish 包版本 --registry=https://registry.npmjs.org/
    "@some21/element-ui-plus": "file:./",

// 转换输出 .d.ts 文件中的路径

{ "transform": "typescript-transform-paths", "afterDeclarations": true }

rollup.config.ts 作为 配置文件直接执行指令时的注意事项

  • 安装插件 rollup-plugin-typescript2 (注意:@rollup/plugin-typescript 可能会有 BUG)
  • tsconfig.json 中的 includes 中加入 rollup.config.ts,加入文件以后需要注意 rootDir 必须为 rollup.config.ts 文件所在目录,否则可能出现问题
  • 执行指令时,把指令放到package.jsonscripts 当中后使用 npm run XXX 运行;除非全局安装了rollup 及 插件 rollup-plugin-typescript2
    • 允许给 XXX 指定参数 写法为npm run XXX={...}