npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

legoflow-cli

v2.7.5

Published

legoflow cli

Readme

最近更新

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 / [email protected] / ... 则无法被迁移

具体功能对比参考 这里

关闭指定端口线程

lf kill:port 6701

调用内置 ESLint 模块

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

lf:eslint

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

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

许可

MIT