🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lighting-plugin-hola

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighting-plugin-hola

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

latest
npmnpm
Version
0.1.20
Version published
Weekly downloads
87
1142.86%
Maintainers
1
Weekly downloads
 
Created
Source

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 开发指南, 请点击这里

Keywords

light

FAQs

Package last updated on 27 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts