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

next-updater-cli

v0.1.7

Published

Next Updater command line tools

Downloads

3

Readme

Get Start

@(Next Updater)[React Native, Next Updater, 热更新]

[TOC]

简介

Next Updater是一个可扩展的资源热更新平台,可针对JS和资源文件(图片、字体等)进行灵活的增量更新,并有完整的版本控制和灰度机制。

目前Next Updater只针对React Native热更新进行支持,后期会添加对其他框架,如:Weex、Native Script、Hybrid等的支持。

安装

Next Updater Cli

Next Updater Cli是提供给开发人员使用的项目打包用的命令行工具。

$ npm i next-updater-cli -g

iOS SDK

可以通过cocoapods、rnpm和手动引入静态文件这三种方式引入iOS sdk。

Android SDK

近期支持

开始接入

申请权限

目前平台还仅供百度内部使用,如需接入请在百度hi上联系管理员huangqi03申请权限,权限申请完毕后您可获得如下信息:

  • app_id
  • bundle_id
  • 应用管理账号
  • bundle备份仓库

其中bundle备份仓库是在Gitlab中next-updater组下面的一个仓库

后台配置

首先,访问管理后台,通过上一步获取的账号和密码登陆。

http://updater.next.baidu.com/

然后选中app -> 选中bundle -> 包设置,在仓库中输入上面bundle备份仓库的ssh地址,并提交更改。

提交bundle的第一个版本

命令行进入到React Native工程目录。

$ cd /path/to/rn/project

第一步生成打包配置文件

$ next-updater init

按照提示依次输入app_idbundle_id和支持平台(iOS/Android/Windows)。

然后,第二步,开始执行打包。

$ next-updater build

等待打包完毕。就可以到管理后台的bundle的版本管理中,待发布列表,看到这次打包了。

第三步,确保已经设置好仓库的情况下,

对比

| 特性 | Next Updater | Code Push | | -- | -- | -- | | 版本管理 | √ | √ | | 数据报表 | √ | √ | | 回滚机制 | √ | √ | | 增量更新 | √ | × | | 国内服务 | √ | × | | 资源更新 | √ | × |

意见和建议

如果您发现平台中有任何的bug,不足之处,或者认为其他平台有更人性化的功能而我们没有提供的,欢迎通过以下方式提供给我们,不胜感激: