1 Star 12 Fork 2

LCUI 开发 / 命令行开发工具

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

lcui-cli

GitHub Actions codecov

简介

(English/中文)

LCUI CLI 是一个能帮助你快速开发 LCUI 应用程序的工具,提供:

  • 项目脚手架。
  • 类似于 Webpack 的编译器,能靠加载器加载特定类型的文件并将其编译为 C 代码。现有以下加载器:
    • ts-loader:加载 JavaScript、TypeScript 文件,支持 JSX 语法。你可以像编写 React 组件一样编写 LCUI 部件。
    • css-loader:加载 CSS 文件,支持 CSS Modules 写法。
    • sass-loader: 加载 Sass/SCSS 文件并将其编译为 CSS。
    • json-loader:加载 JSON 文件,允许你以 JSON 格式描述界面。
    • xml-loader:加载 XML 文件,允许你以 XML 格式描述界面。
    • yaml-loader:加载 YAML 文件,允许你以 YAML 格式描述界面。

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

安装

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

之后,运行:

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

使用

创建一个 LCUI 应用程序项目:

lcui create my-project

编译 src 目录内的所有文件:

lcui compile src

编译单个文件:

lcui compile src/pages/home/index.tsx

许可

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 应用程序的命令行工具 展开 收起
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/lcui-dev/lcui-cli.git
git@gitee.com:lcui-dev/lcui-cli.git
lcui-dev
lcui-cli
命令行开发工具
develop

搜索帮助

14c37bed 8189591 565d56ea 8189591