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

bakari-builder

v0.1.3

Published

bakari builder

Downloads

3

Readme

bakari-builder

##Install

通过npm安装bakari-builder。

npm install -g bakari-builder

##Usage

执行命令,初始化一个项目:

# 初始化一个项目
$ bakari init

# 为项目添加一个库
$ bakari addlib jquery

# 添加一个指定版本的库
$ bakari addlib jquery -v 1.10.0

# 查看当前项目中包含的库
$ bakari liblist

# 添加一个业务
$ bakari addbiz commit/add

Flags

  • -h or -help 查看帮助
  • -V or --version 查看bakari-builder版本
  • -v or --use-version 为当前命令指定一个版本

##Project Commands

init : 初始化一个项目。

clean : 清理一个项目,这个指令会根据项目配置文件,清除多余的代码,同时补全缺失的代码。

##Lib Commands

addlib <lib> : 添加一个库到项目中。

rmlib <lib> : 从项目中移除一个库。

liblist : 查看项目中包含的库。

cleanlib : 清理项目中的库,根据项目配置文件,清除多余的库,同时补全缺失的库。

##Biz Commands

addbiz <path> : 添加一个业务到项目中,通过业务的路径bakari将自动生成pageId及继承关系。

rmbiz <pageid> : 根据page id移除一个业务,移除前需要先移除所有子业务。

bizlist : 查看所有的业务。

seebiz <pageid> : 查看某个业务详情。

cleanbiz : 清理项目中的业务,根据项目业务配置,清除多余的业务js文件,同时补全缺失的js文件。

setbiz <pageid> : 设置一个业务配置,修改业务的page idextend page id,builder将自动修改文件名及文件中的继承关系。

##Code Build

under development