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

minecat

v0.7.8

Published

a monorepo cli tool for Node.js、React

Downloads

24

Readme

minecat

minecat is a monorepo cli tool for Node.js、React

Usage

minecat [命令]

命令:
minecat init init a minecat project with pnpm
minecat add [tpl] [newname] add a module in project
minecat install [package] pnpm add prod dependency to current project
minecat run [script] pnpm run script from current project

选项:
--version 显示版本号 [布尔]
-v, --verbose Run with verbose logging [布尔]
--help 显示帮助信息 [布尔]

1、打印信息和帮助

$ minecat

2、创建项目

$ minecat init

选择 Node.js/React 然后初始化 pnpm project

支持模版

  • Node.js
    • https://github.com/npmstudy/your-node-v20-monoreopo-project
  • React + vite
    • https://github.com/npmstudy/your-vite-react-monoreopo-project

该命令只是首次通过dclone下载仓库到~/.minecat缓存目录下面, 以后再使用的时候,直接从缓存目录进行copy,这样执行效率更高

如果想使用网络下载并更新,minecat init --force即可

3、创建Package

$ minecat add
$ minecat add lib yourdir

选择 Node.js/React 然后读 pnpm workspace 的配置,有 packages 就读,没有提示输入。

步骤

  • 获取当前项目package.json minecat类型:Node.js/
  • ls ~/.minecat/Node.js/
  • mv lib to ./packages/xxx
  • mv ~/.minecat/Node.js/xx ~/packages/xx

4、安装模块

$ minecat install debug ms

步骤(此处采用prompts,类似fig,更简单)

  • 选择当前packages/xxx包
  • 选择是prod还是dev依赖

5、自定义模版

为了方便自定义模版,增加minecat config子命令,用法如下。

$ minecat config --list
{
  'Node.js': 'https://github.com/npmstudy/your-node-v20-monoreopo-project',
  React: 'https://github.com/npmstudy/your-vite-react-monoreopo-project',
}
$ minecat config vue https://github.com/npmstudy/your-node-v20-monoreopo-project
{
  'Node.js': 'https://github.com/npmstudy/your-node-v20-monoreopo-project',
  React: 'https://github.com/npmstudy/your-vite-react-monoreopo-project',
  vue: 'https://github.com/npmstudy/your-node-v20-monoreopo-project',
}

License

MIT @ npmstudy