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

lighting-plugin-hola

v0.1.18

Published

Hola 跨端工程插件,专为 Light 跨端架构体系服务

Downloads

22

Readme

lighting-plugin-hola

Hola 跨端工程插件,专为 Light 跨端架构体系服务

介绍

现如今市面上端的形态多种多样,Web、快应用、微信小程序等各种端大行其道。当业务要求同时在不同的端都要求有所表现的时候,针对不同的端去编写多套代码的成本显然非常高,这时候只编写一套代码就能够适配到多端的能力就显得极为需要。

那么在开发 Light 跨端项目时,你只需要安装 Hola 插件,就能用一套代码轻松实现多端同构能力。

安装

Hola 项目基于 node,请确保已具备较新的 node 环境(>=14.16.1),推荐使用 node 版本管理工具 nvm 来管理 node,这样不仅可以很方便地切换 node 版本,而且全局安装时候也不用加 sudo 了。

首先,你需要使用 npm 或者 yarn 全局安装 lighting cli 管理工具。

# 使用 npm 安装 CLI
$ npm install -g lighting
​
# OR 使用 yarn 安装 CLI
$ yarn global add lighting
​
# OR 安装了 cnpm,使用 cnpm 安装 CLI
$ cnpm install -g lighting

然后,你需要使用 light 命令安装 hola 插件。

# 安装 hola 插件
$ light plugin -a hola

更多

查看更多的 Light 开发指南, 请点击这里