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

@ektlang/common-ui

v0.19.0

Published

A Component Library for Vue.js

Downloads

90

Readme

ekt 通用组件库

按需引入

import { Button } from '@ektlang/common-ui'

Vue.use(Button)

运行


npm run dev         // 本地运行,用于在本地测试组件. 地址:http://本地ip:7006

npm run dist        // 打包组件并发布,发布成功后更新项目中该库的版本号

建议

在 packages 新建组件并完成开发后,建议在 examples/play 创建对应的测试组件,进行本地调试。(涉及 element-ui 组件的组件除外)

如何加入组件

1.创建组件目录,在 src 中加组件,注意每个组件要带 name

2.创建组件的 index.js

3.components.json 配置

4.src/index.js 引入

如何在本地调试组件

以往每次开发通用组件时,都需要通过发布版本进行测试,导致有大量调试版本。

现在解决方法是,进行本地调试组件。

第一步,在组件库目录下执行 npm link,生成本地组件库链接。

第二步,在需要引入此库的项目的目录下,执行 npm link @ektlang/common-ui 即可。

第三步,每次组件调试后,执行 npm run build,项目中所引入的组件会做实时更新。

关于 EktAlert 组件的使用

这是对 vue-sweetalert2 插件常用的方法进行二次封装,减少业务中冗余的代码。 后续如需要调用其它 API,再进行扩充。

e.g. this.$ektAlert.success('创建成功!')
e.g. this.$ektAlert.warning('警告!')

也支持自定义,如:

import EktAlert from 'path'
通过Vue.prototype.$alert = EktAlert;
e.g. this.$alert.success('创建成功!')

关于 node-sass 和 node 版本对应问题

| NodeJS | Supported node-sass version | Node Module | | ------- | --------------------------- | ----------- | | Node 16 | 6.0+ | 93 | | Node 15 | 5.0+ | 88 | | Node 14 | 4.14+ | 83 | | Node 13 | 4.13+, <5.0 | 79 | | Node 12 | 4.12+ | 72 | | Node 11 | 4.10+, <5.0 | 67 | | Node 10 | 4.9+, <6.0 | 64 | | Node 8 | 4.5.3+, <5.0 | 57 | | Node <8 | <5.0 | <57 |

from:https://github.com/sass/node-sass#node-version-support-policy