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 🙏

© 2024 – Pkg Stats / Ryan Hefner

tq-cli

v1.0.13

Published

A tool

Downloads

5

Readme

tq-cli

核心

简单易用当然是我的目标之一,准确来说,我希望给开发者们提供一个“无压”的开发环境。 每个人的精力都是有限的,因为有限,我们就需要将注意力集中在项目的核心 -- 代码上。但是现实的开发环境并不是如此,我们时常被代码之外的内容夺去注意力,甚至花上更多的精力去处理这些并不能让代码变得更好的东西上。所以我选择将代码之外的这部分内容剥离。

介绍

现在来简单介绍下项目的构成,它主要由这几部分内容构成:

  • 项目搭建
  • 开发环境
  • 项目打包
  • 内容更新
  • 代码校验

分别对应着五个命令:

  • tofu init
  • tofu server
  • tofu build
  • tofu update
  • tofu lint

现在来介绍下这些命令的用法。

用法

init

tofu init

server

tofu server

# 指定端口
tofu server [-p|--port <port>]

build

tofu build

# 不压缩
tofu build [-C|--no-compress]
# 压缩后删除 dist
tofu build [-d|--delete]

update

tofu update

# 更新模板,i-tofu 和 tofu-cli
tofu update [-a|--all]

lint

tofu lint

# 自动修复
tofu lint [-f|--fix]

.tofurc 配置选项说明