legoflow-cli
legoflow cli
Last updated 24 days ago by yyued .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install legoflow-cli 
SYNC missed versions from official npm registry.

legoflow-cli

Licence PRs Welcome

命令行工具

最近更新

CHANGELOG

依赖

  • Node.js >= 8.x

安装

npm i legoflow-cli -g

# or
# 推荐使用 yarn 安装
yarn global add legoflow-cli

使用

查看命令

legoflow -h

# 使用简写
lf -h

新建项目

lf init

开发

# 进入 legoflow 项目
cd test

lf dev

# 可选择环境
lf dev --env

# 可指定环境
lf dev test

构建

# 进入 legoflow 项目
cd test

lf build

# 选择环境
lf build --env

# 可指定环境
lf build preview

CI 构建

# 进入 legoflow 项目
cd test

lf-ci

# 也可构建指定环境 lf-ci [env] 例如:构建测试环境
lf-ci test

构建 dll

lf build:dll

全局设置

# 设置参数
lf set <name> <value>

# 查看参数
lf get <name>

# 还原参数
lf clean

具体参数参考 这里

v1.x 项目迁移到 v2.x

cd test

lf migrate:v2

注意 该功能只能把 v1.x 与 v2.x 都存在的功能进行迁移,若 2.x 摒弃的功能无法被迁移。例如:

  • v1.x 项目配置中的 assets 被迁移为 workflow.build{ 'html.resourcesDomain' }
  • v1.x 项目配置中的 dist / vue@2.1 / ... 则无法被迁移

具体功能对比参考 这里

关闭指定端口线程

lf kill:port 6701

调用内置 ESLint 模块

通过该命令可调用内置的 ESLint 模块

lf:eslint

lf:eslint -v
lf:eslint -h
lf:eslint ...

注意 2.3 版本后该命令更改为 lf-eslint

许可

MIT

Current Tags

  • 2.7.5                                ...           latest (24 days ago)
  • 2.0.0-alpha.32                                ...           next (2 years ago)

70 Versions

  • 2.7.5                                ...           24 days ago
  • 2.7.4                                ...           a month ago
  • 2.7.3                                ...           a month ago
  • 2.7.2                                ...           6 months ago
  • 2.7.1                                ...           6 months ago
  • 2.7.0                                ...           7 months ago
  • 2.7.0-beta.11                                ...           7 months ago
  • 2.7.0-beta.10                                ...           a year ago
  • 2.7.0-beta.9                                ...           a year ago
  • 2.7.0-beta.8                                ...           a year ago
  • 2.7.0-beta.7                                ...           a year ago
  • 2.7.0-beta.6                                ...           a year ago
  • 2.7.0-beta.4                                ...           a year ago
  • 2.7.0-beta.3                                ...           2 years ago
  • 2.7.0-beta.2                                ...           2 years ago
  • 2.7.0-beta.1                                ...           2 years ago
  • 2.6.0                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.3.0-beta.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0-beta.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-beta.31                                ...           2 years ago
  • 2.0.0-beta.30                                ...           2 years ago
  • 2.0.0-beta.29                                ...           2 years ago
  • 2.0.0-alpha.32                                ...           2 years ago
  • 2.0.0-alpha.31                                ...           2 years ago
  • 2.0.0-alpha.30                                ...           2 years ago
  • 2.0.0-alpha.29                                ...           2 years ago
  • 2.0.0-beta.28                                ...           2 years ago
  • 2.0.0-beta.27                                ...           2 years ago
  • 2.0.0-beta.26                                ...           2 years ago
  • 2.0.0-beta.25                                ...           2 years ago
  • 2.0.0-beta.24                                ...           2 years ago
  • 2.0.0-beta.23                                ...           2 years ago
  • 2.0.0-beta.22                                ...           2 years ago
  • 2.0.0-beta.21                                ...           2 years ago
  • 2.0.0-beta.20                                ...           2 years ago
  • 2.0.0-beta.19                                ...           2 years ago
  • 2.0.0-beta.18                                ...           2 years ago
  • 2.0.0-beta.17                                ...           2 years ago
  • 2.0.0-beta.16                                ...           2 years ago
  • 2.0.0-beta.15                                ...           2 years ago
  • 2.0.0-beta.14                                ...           2 years ago
  • 2.0.0-beta.13                                ...           2 years ago
  • 2.0.0-beta.12                                ...           2 years ago
  • 2.0.0-beta.11                                ...           2 years ago
  • 2.0.0-beta.10                                ...           2 years ago
  • 2.0.0-beta.9                                ...           2 years ago
  • 2.0.0-beta.8                                ...           2 years ago
  • 2.0.0-beta.7                                ...           2 years ago
  • 2.0.0-beta.6                                ...           2 years ago
  • 2.0.0-beta.5                                ...           2 years ago
  • 2.0.0-beta.4                                ...           2 years ago
  • 2.0.0-beta.2                                ...           2 years ago
  • 2.0.0-beta.1                                ...           2 years ago
  • 2.0.0-beta.0                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 45
Dependencies (18)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |