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

grunt-cacheinfo

v0.4.12

Published

cacheinfo.

Downloads

15

Readme

grunt-cacheinfo

针对项目生成cache_info.json文件

配置方法

cacheinfo: {
	options: {
		abc: "abc.json",// 设置当前项目的abc.json地址
		src: "build_offline",// 目标目录
		dest: "build_offline/cache_info.json",//生成的cache_info.json
	    genABCJSON: 'build_offline/abc.json',
	    extMeta: {  // 其他需要放到 abc.json 中的扩展字段
	        ...
	    }
	}
},

注意:abc.json 必须是标准格式

Release History

  • 0.4.9
    • 支持 flugy 项目
  • 0.4.9
    • 支持 awpPathMap 映射
  • 0.4.8
    • 支持 market.m.taobao.com 域名构建
  • 0.4.5
    • 请求 offline-config/index.json 失败,立刻终止构建
  • 0.4.4
    • offline-config/index.json 升级到 https
  • 0.4.3
    • [+] 增加 offlineSyncHost 配置项可以自行配置离线同步 CDN hostname,方便日常环境测试。
  • 0.4.2
    • getPkgConfig 优先从 abc.json 中拼。
  • 0.4.1
    • bugfix for pathPrefix missing /.
  • 0.4.0
    • 升级 grunt 依赖到 1.x 版本
  • 0.1.16
    • add options.extMeta for external meta object.
  • 0.1.14
    • 支持 rn cache 配置
  • 0.1.13
    • grunt.registerTask => grunt.registerMultiTask
  • 0.1.12
    • 升级 cache_info.json -> abc.json,加入配置项 genABCJSON,当配置上 genABCJSON 时,**不再输出 options.dest **。
  • 0.1.10
    • 优化读取项目配置文件
  • 0.1.6
    • 如果预发config.json没有配置包路径的时候,取当前abc.json里的配置
  • 0.1.4
    • 读取不到包配置时,直接跳过该任务避免报错
  • 0.2.0
    • add weex offline support.
  • 0.2.1
    • filter weex files.
  • 0.2.2
    • using -min.js for weex map.
  • 0.2.3
    • bugfix for weex cache, add options.wxDir to define weex entry page jsbundle dir.
  • 0.3.0
    • 新增 onlinePrefix 指定线上备份路径前缀
  • 0.3.1
    • mv onlinePrefix to cache
  • 0.3.2
    • bugfix for weex cacheinfo.
  • 0.3.4
    • 兼容新的 AWP 发布路径支持