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

apicloud-wifi-helper

v0.1.5

Published

wifi sync helper for apicloud loader

Downloads

25

Readme

本工具是用于 APiCloud 项目的 WiFi 同步工具

简介

本工具用于 APICloud 自定义 loader 的 WiFi 同步. 具有自动同步, 增量同步, 可搭配各种构建工具使用.

  • 自动同步: 同步服务器开启之后, 客户端连连接之后会基于客户端 ip 检测同步记录, 如需同步则自动进行同步.
  • 增量同步: 每次同步通过计算文件 hash 决定哪些文件需要同步, 实现同步内容最小化.
  • 搭配构建工具: 可监听构建工具输出目录, 构建完成后自动将打包好的文件复制到指定目录中, 实现了全流程的自动化.

使用方法

  1. 在设备上安装 APiCloud 提供的 APP Loader.

  2. 安装 apicloud-wifi-helper:
    yarn add apicloud-wifi-helper --dev
    or
    npm install apicloud-wifi-helper --dev

  3. 写入 npm scripts

// package.json
{
  "scripts": {
    "apicloud": "apicloud-wifi-helper start"
  }
}
  1. 配置文件
    在项目根目录下新建 wifisync.json 文件, 包含以下配置项:
  • widgetPath(default: ./widget/)(必填): APiCloud widget 包的相对于项目根目录的相对路径.
  • port(default: 10915): 端口设置.
  • distSourcePath(default: ./dist): 构建工具的输出路径.
  • distTargetPath(default: ./widget/dist): 构建好的代码再 widget 中的位置.
  • syncIgnore(default: []) 同步时忽略的文件, 使用 glob 匹配.

Note: 如果 distSourcePathdistTargetPath 未填写的话, 将监听 widget 目录, 在文件发生变化后触发同步, 否则会监听 distSourcePath 目录, 在文件发生变化后复制到 distSourcePath 后触发同步.

如果不需要自动复制功能的话请在 wifisync.json 文件设置:

// wifisync.json
{
  "distSourcePath": "",
  "distTargetPath": ""
}
  1. 启动服务
    确保装有 APP Loader 的移动设备和开发机在同一 WIFi 中, 运行 yarn run apicloud 或者 npm run apicloud, 在手机上按照控制台显示的 IP 地址和端口连接即可.