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

@haloe-design/bview

v3.1.3-alpha.5

Published

A UI lib

Downloads

1

Readme

bview

UI组件库,VUE版

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

# run dep  
npm run dep

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Build only bview

修改webpack打包配置,单独引入vue和bview

// webpack.config.js
 externals: {
      vue: 'Vue',
      ['bView']: 'bview',
  },

在index.html中显示引入bview

<script src="/static/vendor/dist/vue.min.js"></script>
<script src="/static/vendor/dist/iview.min.js"></script>
<script src="/static/vendor/dist/bview.min.dep.js"></script>
<link rel="stylesheet" href="/static/vendor/dist/style/bview.css" >

显示引入bview

// 引入bviw
import bView from 'bView'

Develop Guide.

代码结构

├── build                           #编译文件
    
├── config                          #编译的配置
      
├── dist                            #编译后文件
    
├── examples                        #组件开发示例工程
    
    ├── assets                      #静态资源
            
    ├── components                  #通用组件
                   
    ├── router                      #路由文件
                           
    ├── styles                      #样式文件
                    
    ├── views                       #组件示例页面
        
├── node_modules                    #依赖包文件夹
   
├──src                              #组件源代码
   
        ├── components              #组件目录
   
        ├── directives              #公用指令
               
        |—— locale                  #国际化语言
   
        ├── mixins                  #基本组件
               
        ├── styles                  #样式文件
        
            ├──common               #图标和字体
   
            ├── components          #自定义的组件样式
   
            |—— dark                #深色主题样式
   
            ├──iview-components     #原iview组件库样式(覆盖iview组件样式时需要)
   
            |—— mixins              #基础公共样式
            
            |—— colors.less         #颜色变量
            
            └── total.less          #样式入口文件
   
        |——utils                    #工具箱
   
        └── index.js                #入口文件
  
├── static                          #静态资源
  
├── types                           #组件API声明文件
  
├── .babelrc                        #babel配置文件
  
├── .editorconfig                   #编辑器配置文件    
  
└── ...                             #其他配置文件