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

@dingos/pwa-kit-cli

v2.5.0

Published

- PWA Kit, A Smart PWA Utilities.

Downloads

45

Readme

PWA Kit CLI

npm NPM npm node-current

概述

PWA Kit CLI 是一组实用工具集合,是 PWA Kit 项目的 CLI 分支。它可以将任意潜在的网站转换为 PWA (Progressive Web Application,渐进式网络应用),也包括了 PWA 所必须的 清单 (manifest)Service Worker 等基本要素。 除此之外,PWA Kit CLI 也提供了 PWA 检测工具,通过标准化的审查评测机制分类评分来提示当前网站转换为 PWA 还缺少什么,以及需要完成的内容。不过我们并不需要为这些缺少的部分而担心,PWA Kit CLI 的使命正是智能化的来完成这些工作。

前置条件

安装 PWA Kit CLI 需要 Node.js 版本高于 14.0.0, NPM 版本高于 6.14.4

安装

可以在命令行中使用 kit 命令来调用 PWA Kit CLI 提供的功能。

全局安装

npm install -g @dingos/pwa-kit-cli

局部安装

npm install @dingos/pwa-kit-cli

如果局部安装了 PWA Kit CLI,想直接使用 kit 命令,需要将安装目录下的 node_modules 中的 .bin 目录添加到环境变量的 path 中,或者,也可以安装 npx,然后在安装 PWA Kit CLI 的目录下运行 npx kit <command> 就可以使用局部安装的 PWA Kit CLI

安装特定版本(例如:1.1.16 版本)

npm install -g @dingos/[email protected]

使用说明

PWA Kit CLI 的命令组成如下所示:

kit <子命令> [ <参数> [可选参数] ]

子命令集合如下所示:

| 子命令 | 描述 | | | --------------------------------------- | | gen | 生成 Service Worker, manifest | | inject | 将 Service Worker, manifest 注入到 HTML | | create | 创建一个基于 Vue 或 React 的 PWA 项目 | | upload | 上传 PWA 到预览环境 | | audit | 检测指定的 PWA |

查看 PWA Kit CLI 使用手册:

kit --help

文档

PWA Kit CLI 详细使用文档:文档链接

许可

BSD-3-Clause

其它

pwa-kit-core
pwa-kit-template