1 Star 0 Fork 2

pangzhifeng / lcui-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

lcui-cli

GitHub Actions codecov

简介

(English/中文)

LCUI CLI 是一个能让你基于 LCUI 进行快速开发的命令行工具,提供:

  • 最小 LCUI 应用模板
  • 组件和视图生成器
  • 国际化方案

LCUI CLI 致力于将 LCUI 生态中的工具基础标准化。

快速开始

在这个工具之前,你需要在你的计算机上安装这些依赖:

安装:

npm install -g @lcui/cli
# 或者
yarn global add @lcui/cli

然后运行以下命令:

# 创建一个项目
lcui create my-project

# 进入项目目录
cd my-project

# 设置项目的开发环境
lcui setup

# 构建项目
lcui build

# 运行项目
lcui run

如果你已经准备好开发 LCUI 应用程序,可以试试以下命令:

# 创建一个组件
lcui generate widget MyWidget

# 创建一个视图
lcui generate view MyView

# 创建用于国际化的翻译配置文件
lcui generate i18n

# 将翻译文件编译为 C 代码 (默认编译 config/i18n.js 为 src/lib/i18n.c 和 src/lib/i18n.h)
lcui compile i18n

许可

MIT

MIT License Copyright (c) 2019 LC's UI Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

用于开发 LCUI 应用程序的命令行工具 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/hangzhou_zhinuo_co_ltd_pangzhifeng/lcui-cli.git
git@gitee.com:hangzhou_zhinuo_co_ltd_pangzhifeng/lcui-cli.git
hangzhou_zhinuo_co_ltd_pangzhifeng
lcui-cli
lcui-cli
master

搜索帮助