@qfed/lilith

0.2.1 • Public • Published

Lilith

  • 一个页面模板构建工具,并且模板可以独立运行(类似 umi block);
  • 一个零配置webpack编译工具(类似 create-react-app);
  • 提供 react 和 vue 的两种编译方式,默认为 react 编译模式;

exmaple

  • example/lilith-tempate lilith 模板 demo
  • example/overwrite-webpack-config lilith 重写 webpack demo
  • example/vue lilith vue 编译 demo
  • example/lilith-template-vue lilith 模板 vue demo

命令说明

Usage: lilith [options] [command]

Options:
  -v, --version                   version
  --root <string>                 模板所在根目录,相对目录,基于context来获取root的绝对路径,默认值"_template" (default: "_template")
  --context <string>              lilith.config.js文件所在目录 > 优先级package.json所在目录 > process.cwd() (default: process.cwd())
  --target <string>               新生成模块的输出路径,相对process.cwd(),默认"." (default: ".")
  --template <string>             当前使用的模板,模板可选范围即root下面指定的模板,支持简写即当前有模板page那么p,pa,pag等效
  --name <string>                 新生成模块的名称
  --mode <string>                 编译模式 template dev build (default: "dev")
  --source <string>               编译源默认值 @qfed/lilith-compiler (default: "@qfed/lilith-compiler")
  --type <string>                 创建的模版类型
  -h, --help                      output usage information

Commands:
  new <template> <name> [target]  Lilith 模板创建命令
  run <mode> [source]             lilith 编译命令
  create [<templateName>]

Examples:
  $ lilith run dev
  $ lilith run dev
  $ lilith new template someTemplate

Package Sidebar

Install

npm i @qfed/lilith

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

368 kB

Total Files

22

Last publish

Collaborators

  • advence-liz
  • hezai
  • js-newbee
  • mythosxin
  • zcf1996312