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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lugia/lugia-complie

v1.0.6

Published

lugia-compile 命令工具

Readme

lugia-compile 命令工具

usage

静态检查 lint

lugia-compile lint

使用正则

"lugia-compile lint src/lib/*.js src/test/*.js

使用环境变量

process.env.LINS = ['src/lib/*.js', 'src/test/*.js'];

package.json

lugia-compile lint

单元测试 test

** lugia-compile test [test_file]

lugia-compile test

使用正则

运行test目录下以.test.js命名结尾的用例
lugia-compile test test/**/*.test.js"
}
"scripts": {
    "test": "lugia-compile test test/**/b.js test/**/a.js"
}

使用环境变量

process.env.TESTS = ['test/*.js', 'test/**/*.test.js'];

代码覆盖率 cov

package.json

"scripts": {
    "lint": "lugia-compile cov"
}

清理 clean

** clean 清理构建目标目录

package.json

"scripts": {
    "clean": "lugia-compile clean",
    ...
}

构建 build

** build 编译,将源码代码编译到目标目录

package.json

"scripts": {
    "build": "lugia-compile build",
    ...
}

开发套餐 dev

** dev 监听源码变更自动编译

package.json

"scripts": {
    "dev": "lugia-compile dev"
    ...
}

发布 publish

以初始版本号为1.1.1为例 ** publish --patch 发布补丁版本,版本号升级为1.1.2

lugia-compile publish --patch
or
lugia-compile publish

** publish 发布minor版本,版本号升级为1.2.0

lugia-compile publish --minor

** publish 发布major版本,版本号升级为2.0.0

lugia-compile publish --major

删除发布 unpublish

** unpublish module[@version] npm仓库删除发布

删除全部版本
lugia-compile unpublish test
删除指定版本
lugia-compile unpublish [email protected]