Giter Club home page Giter Club logo

bmpackr's Introduction

静态资源打包工具(bmpackr)使用说明

综述

bmpackr 是专为移动 app 混合开发设计的 web 静态资源打包工具。

bmpackr 通过比较两个 git 版本的区别,将静态资源项目打包为全量更新包、增量更新包,以及线上资源目录,同时生成版本信息 update.json。

安装

npm install -g bmpackr

命令参数

bmpackr 命令格式如下:

bmpackr -p=${prefix} -c=${currentVersion} -l=${lastVersion} -r=${repositoryURL}

其中:

  • prefix 为输出目录,如果不设置,则输出于当前目录。
  • currentVersion 为当前发布版本的 svn 版本号。
  • lastVersion 为上一个版本的 svn 版本号。
  • repositoryURL 为 svn 版本库地址。

输出

bmpackr 输出为一个 zip 压缩包,其中有如下文件或目录:

  • bundle.zip 新发布版本的全量更新包。
  • patch.zip 增量更新包,其中有新增和改动过的文件。
  • web 线上资源目录,供客户端或浏览器在不使用缓存时直接访问。
  • update.json 版本信息文件,其中以 json 格式记录了新版本和上一个版本的版本号。

感谢

该工程基于ypackr修改,github地址:https://github.com/yusangeng/ypackr

bmpackr's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.