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

@midea-infra/cli

v0.0.28

Published

A CLI for scaffolding midea-infra projects.

Downloads

1

Readme

CLI 服务

CLI (@midea-infra/cli) 是一个全局安装的 npm 包,构建于 webpack 和 webpack-dev-server 之上的。它包含了:

  • 一个针对绝大部分应用优化过的内部的 webpack 配置;
  • 项目内部的命令,提供 dev、build 和 deploy 命令。

全局安装

npm install -g @midea-infra/cli
# OR
yarn global add @midea-infra/cli

查看可用模版

midea-infra list

Available official templates:

  • ★ react - Set up a react modern web app by running one command.
  • ★ vue-2.x - Set up a vue 2.x modern web app by running one command.
  • ★ vue-3.x - Set up a vue 3.x modern web app by running one command.

初始化项目

使用官方模版

midea-infra init <template-name> [project-name]

在生成项目时,您会被要求输入项目的基本信息,不同项目模板需要配置的信息不同。 当项目创建完成后,我们会根据您的选项自动帮您完成 包依赖安装,当然您也可以尝试手动安装。

从 Github 下载模板

github 上的用户自定义模板仓库为例,你可以使用如下命令下载:

midea-infra init <owner/repo> [project-name]

依赖 Secure Shell 机制,如果此仓库受网络环境访问限制(例如公司内网版 github),你必须保证本地 git 有权限访问此仓库,关于此问题您可以参阅 Connecting to GitHub with SSH

如果您的仓库不允许 HTTP 下载模式,你可以运行以下命令使用 clone 模式进行模板下载。

midea-infra init <owner/repo> [project-name] --clone

注:当使用 @midea-infra/cli 时,你可能使用自定义的私人模板创建工程,并且此工程保存在受网络访问限制的代码托管平台中,您需要确保本地 git 有权限访问您输入的模板仓库。

使用本地模板

@midea-infra/cli 支持使用本地的模板创建工程,您可以通过以下命令使用本地模板。

midea-infra init </User/home/xxx/templateName> [project-name]
# OR
midea-infra init <./xxx/templateName> [project-name]