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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ysftool

v0.1.4

Published

七鱼前端基础平台打包工具

Readme

ysftool@七鱼打包工具

   1.npm install ysftool -g

   2.Terminal:ysftool
  1. 构建失败需要运行 ysftool -c 清理缓存文件

  2. config配置参照config.js


使用说明

ysftool,七鱼前端基础平台打包工具。是用于 Vue Module/ Js 的打包工具。

具体命令

    option('-c, --clean', chalk.red('清理缓存文件'))
    option('-i, --install ', 'install node packages')
    option('-d, --dist',  chalk.cyan('定制打包 ysftool -d [filename|filepath]'))
  1. ysftool -c 清除缓存,或构建失败留下的文件
  2. ysftool -d 默认打包,使用在ysftool NPM包中的默认config.js文件
  3. ysftool -d [filepath] 定制打包,使用指定路径的config.js文件

关于config.js

  • 共有两个配置项: listconfig
关于list --依赖配置项
  • gitSource:依赖所处git仓库地址(https)
  • name:依赖打包的作用域名
  • filename:在gitSource中的*.vue入口文件名(当前文件夹)
  • 具体示例:

var list = [
    {
        "gitSource": "https://g.hz.netease.com/NSFI/sf-tooltip.git",
        "name": "tooltip",
        "filename": "Tooltip.vue"
    },
    {
        "gitSource": "https://g.hz.netease.com/NSFI/sf-popover.git",
        "name": "popover",
        "filename": "Popover.vue"
    }
];
关于config --打包配置项
  • filename:打包文件名
  • library:作用域名
  • uglify:是否压缩
  • sourceMap:是否使用sourceMap
  • 具体示例:
var config = {
    filename: 'sailfish',
    library: 'NSFI',
    uglify: false,
    sourceMap: false
};
导出
module.exports = {
    list: list,
    config: config
};