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

fede

v0.1.0

Published

node 版本要求7.6以上如果版本过低可升级[Nodejs下载地址](https://nodejs.org/en/download/)

Downloads

5

Readme

fede

node 版本要求7.6以上如果版本过低可升级Nodejs下载地址

# 安装三选一

# 国内cnpm镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org

# npm安装
npm i -g fede

#cnpm安装
cnpm i -g fede

# npm link 安装
https://github.com/iuunhao/fede ~/Desktop
cd fede
npm link

postcss编译内部使用gulp

# 初始化
fede init [name]

# 开发编译
fede dev

# 打包编译
fede build
    1. postcss目录层级类如: postcss/product/product_list.css images/product/bg.png images/product/icon-btns/btn1.png
    1. 图片目录层级需与postcss层级保持一致 postcss/product/* images/product/*
    1. 合成图需要放在以icon-开头的文件夹内
    1. 合成图不需要写背景定位,但需写宽高
    1. 禁止手动修改css目录下文件
    1. html|css以下划线(_)开头文件不会被单独输出,但可引用(html除外)
    1. 页面内应用的css及生产环境的css以css目录为主,postcss只是源文件

为了不在不在项目内放置node_modules文件,将gulp配置文件放置在别的位置,通过使用--gulpfile及其--cwd指定配置位置及工作目录位置,使用npm插件的原因是因为单独指向--gulpfile及其--cwd命令太长不便于输入,mac可以指定alias但win不可以,折中选择了npm。

帮助fede -h