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

fis-zoo

v2.4.2

Published

A front-end module solution with modjs based on fis

Downloads

27

Readme

#fis-zoo 基于FIS的前端模块化解决方案,根据自己团队的需求,优化改造了一些功能。

version

####使用方法: 安装:npm install fis-zoo -g
使用:fis-zoo releasezoo release 参数同FIS

####优化改造列表:

  1. 支持release到相对目录,需要如下配置:
    fis.config.set('roadmap.relative', true);

  2. 默认引入了一些常用的依赖和模块配置
    引入的依赖和模块配置可在入口文件index.js中看到

  3. 之前老版本的fis没有对模块中的css做特殊的处理,采用的方案是如果这个模块被引用了,那么会给所有的页面默认注入这个模块的css文件(如果有的话)。
    我们将之优化为只有引入这个模块的页面才注入该模块的css文件。(依然没有兼容异步模式,只要引入,不管同步异步,都会提前注入这个模块的css文件)

  4. 做了node4.0版本的兼容

  5. 修复了动态模块编译时候的warn
    如:[NOTIC] can't find async resource ['ace/mode/'+opt.language]

  6. 做了适合自己团队使用的zoo-install
    在项目根目录创建zoo.json,执行zoo install,即可生成基础的fis-conf.js并安装zoo.json中声明依赖的模块 如:

	//zoo.json,具体使用时请去掉注释,否则会json解析报错
	{
		"name": "example",//项目名称
		"downloadDirName": "modules",//模块安装目录
		"components": ["Zepto", "mo", "mod", "preload", "scrollPageCube"]//项目依赖的模块
	}
  1. v2.3.0新增了css的autoprefixer
  2. v2.4.1新增了babel,默认支持es2015的编译,需要做如下配置:
    roadmap: {
        path: [
            {
                reg: /^\/modules\/([^\/]+)\/(?:[^\/]+)\.js$/i,
                isMod: true,
                id: '$1',
                //开启下面这条配置
                isES6: true
            }
        ]
    }

####文档说明

  • 支持其他拓展名的模板直接渲染,如 .phtml
    首先执行zoo server start
    然后执行zoo server open
    打开目录后,找到www/node_modules/express/node_modules/send/node_modules/mime/types/mime.types文件
    搜索text/html,找到text/html html htmhtm之后添加phtml
    然后执行zoo server stop && zoo server start即可(后期会融合到zoo install中)

####todo

  1. __inline引入html模板的时候,不支持传入自定义数据。