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

lighting

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighting

恒生移动web应用平台(Light)快速开发集成工具箱

latest
npmnpm
Version
1.36.15
Version published
Weekly downloads
223
725.93%
Maintainers
2
Weekly downloads
 
Created
Source

lighting 是基于 nodejs 构建的一个命令行工具,使用 lighting 可以快速搭建 H5、APP、RestAPI 的开发工程环境(结合 VSCode 最佳)、本地开发调试、设备联机调试、集成优化出包,以及面向云平台的快速发布。

安装

npm install -gd lighting
# OR
npm install -gd lighting --registry=https://registry.npmmirror.com

lighting 安装完成后在命令行窗口内键入 light -h 可以查看当前工具的版本号以及指令列表,这样 light 的开发环境就搭建好了。


$ light -h


     _  _         _      _    _
    | |(_)       | |    | |  (_)
    | | _   __ _ | |__  | |_  _  _ __    __ _
    | || | / _` || '_ \ | __|| || '_ \  / _` |
    | || || (_| || | | || |_ | || | | || (_| |
    |_||_| \__, ||_| |_| \__||_||_| |_| \__, |
            __/ |                        __/ |
           |___/                        |___/      CLI 1.15.4



    Usage:

    $ light <command> [options]  [-h]

        create...........................生成工程的基本目录结构和模板文件
        gen..............................代码生成
        install..........................安装项目依赖和插件
        release..........................代码的集成打包
        server...........................内置HTTP服务器
        plugin...........................插件的安装卸载更新
        login............................登录账户链接light平台的账户系统以进行应用管理

    Project Commands:

        You are not in a project directory

使用

一些常用的命令:

light release -wb //编译并开启浏览器预览,监听变化

light release -ucsp //打包,压缩混淆代码,添加反缓存后缀,合并请求

light server --debug //开启调试模式

Keywords

mobile

FAQs

Package last updated on 26 Mar 2026

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