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 🙏

© 2026 – Pkg Stats / Ryan Hefner

fedis

v1.3.11

Published

fedis - Front-End development integration solution

Readme

Fedis

Front-End development integration solution 前端开发集成解决方案

概述

fedis 是一个基于 gulp/gulp-plugins 的前端开发集成解决方案。 让你从繁杂无聊的复制、粘贴、压缩、重命名等事务中解脱出来,从而更专注于具体业务的开发实现。

特性

集成了常用任务,后期会增加更多功能:

| 功能 | 描述 | | ---- | ---- | | tmaker | 模板中间语言解释引擎 | | doc | 文档生成 | | switch | 项目管理 | | publish | 发布项目 | | test | 测试 | | SSI | Server Side Include | | proxy | 支持proxy代理,用以实现 ajax 的跨域请求 |

安装 fedis

方式一:

$ git clone https://github.com/gauliang/fedis.git
$ cd fedis
$ npm install
$ gulp

方式二:

npm install fedis

如何使用

  • 进入 fedis/ 目录
  • 新建项目 gulp --switch project-name
  • 执行 gulp 命令启动 fedis
  • 进入 fedis/app/ 开始工作

配置

Fedis 根目录中有一个名为 projectInfo 的文件,该文件存储了fedis的配置信息,说明如下:

| 配置项 | 取值 | 说明 | | --- | --- | --- | | language | cnen | Tmaker 预览时使用何种语言, cn 为中文, en 为英文 | | minifyCss | 布尔值 | 是否对输出的 CSS 进行压缩 | | minifyJs | 布尔值 | 是否对输出的 JS 进行压缩 | | hashVersion | 布尔值 | 是否在输出的附件引用末端添加 hash | | proxyTarget.api | url | 要代理的目标路径 | | proxyTarget.enp | url | 要代理的目标路径 |

提醒

  • 模板文件 (html) 中引用的预览附件请存放在 ./app/data/
  • CSS 中引用的附件请存放在 ./app/scss/ 目录下即可

显示/存档/新建/切换 项目

  • $gulp --show 显示全部已存档和当前工作项目。
  • $gulp --archive 存档当前工作项目。
  • $gulp --switch project-name 切换至 project-name 项目,如果 project-name 项目不存在则会新建。

修改默认项目模板

每次切换到一个新的不存在的项目时都会创建一个新的项目,新项目内容在 archive/_init 目录中,修改这些文件即可

发布项目

publish 任务用以发布当前工作项目到 release 目录。该过程会把项目转换为线上状态。 还可以通过 --param 来更新版本号,语义请参考 semver

$gulp publish --<major|minor|patch>

常见问题

由于网络原因安装过程中极有可能出现下列问题,在后面给出了解决方案。可以使用 cnpm 命令进行安装。

LICENSE

The MIT License (MIT)