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

v4-components

v0.1.1

Published

``` yarn install ```

Downloads

2

Readme

v3-components

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

day2

  • 简述 designComponent 意义何在;并且自己手写实现 designComponent 源码,理解其中每一个类型的含义(开始入门了解Vue3.0的类型系统);
  • 总结自己在实现designComponent过程中,对于Vue3.0的类型的理解,并且整理出自己在typescript这一块缺少的知识技能,对哪一块内容不够清晰。
  • 使用designComponent函数实现简单的 input、button组件,并通过给出的主题样式文件,实现组件的主题色功能。使用 designComponent 重构 PART01 中的 app-menu, AppNavigator, AppNavigatorPage组件。
  • 打包组件,在纯html文件中引入umd文件能够正常使用暴露的对象。将打包好的umd文件以及组件源码src目录发布到npm,新建一个新的vue-cli工程, 在这个新的工程中安装组库,并且能够正确获取组件的类型。
  • 新工程中能够按需引入组件。
  • 新工程中能够正确配置使用安装的组件库中的主题系统。

安装打包所需要的依赖

npm i autoprefixer@8 babel-loader@8 css-loader@5 mini-css-extract-plugin postcss@8 postcss-loader@4 rollup-plugin-postcss@3 rollup-plugin-terser sass sass-loader@8 ts-loader@8 typescript webpack@4 webpack-cli@4 webpack-merge @rollup/plugin-babel @rollup/plugin-commonjs @rollup/plugin-node-resolve @rollup/plugin-typescript -D