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

mika-cli-webpack

v1.0.5

Published

react cli based webpack5

Downloads

116

Readme

Mika FE Frameworks CLI

一个简单易用的前端项目脚手架工具,支持快速创建 React、Vue、Next.js、Nuxt、Nest 等多种项目模板。

特性

  • 支持多种主流框架模板
  • 快速初始化项目
  • 友好的命令行交互界面
  • 模板搜索功能
  • 自动配置 package.json
  • 基于最新的构建工具

安装

全局安装(推荐)

npm install -g mika-cli

本地使用

npx mika-cli init <template> <project-name>

支持的模板

| 模板名称 | 说明 | 适用场景 | |---------|------|---------| | mika-webpack | React + Webpack | React 项目开发 | | mika-rspack | React + Rspack | 高性能 React 项目 | | mika-ssr | Vue3 SSR | Vue 服务端渲染 | | vue | Vue3 官方脚手架 | Vue3 项目开发 | | nuxt | Nuxt3 全栈框架 | Vue 全栈应用 | | next | Next.js React 框架 | React 全栈应用 | | nest | NestJS 后端框架 | Node.js 后端服务 | | rsbuild | Rsbuild 构建工具 | 现代化构建方案 | | esbuild | ESBuild 快速构建 | 极速构建方案 |

快速开始

1. 查看所有可用模板

mika list

输出示例:

可用模板列表:

1. mika            │ React + Webpack 模板
2. mika-rspack     │ React + Rspack 模板
3. vue             │ Vue3 官方脚手架模板
4. next            │ Next.js React 全栈框架模板
...

2. 创建新项目

mika init <template> <project-name>

示例:

# 创建 Vue 项目
mika init vue my-vue-app

# 创建 Next.js 项目
mika init next my-next-app

# 创建 Nest.js 后端项目
mika init nest my-api-server

3. 搜索模板

mika search <keyword>

示例:

# 搜索包含 "react" 的模板
mika search react

# 搜索包含 "vue" 的模板
mika search vue

使用流程

  1. 选择模板并创建项目

    mika init vue my-project
  2. 按提示输入项目信息

    • 项目名称(默认为你输入的项目名)
    • 项目描述
    • 作者名称
    • 版本号
  3. 等待下载完成

  4. 进入项目并安装依赖

    cd my-project
    npm install
    npm run dev

命令说明

mika init <template> <project-name>

初始化一个新项目

  • <template>: 模板名称(必填)
  • <project-name>: 项目名称(必填)

示例:

mika init vue my-vue-project

mika list

查看所有可用的项目模板

示例:

mika list

mika search <keyword>

搜索包含关键词的模板

示例:

mika search react
mika search ssr

mika --versionmika -v

查看当前 CLI 版本

mika --helpmika -h

查看帮助信息

配置说明

项目下载后,CLI 会自动根据你的输入配置 package.json 文件:

{
  "name": "your-project-name",
  "version": "1.0.0",
  "description": "your project description",
  "author": "your name"
}

使用示例

创建 React 项目

mika init mika my-react-app
cd my-react-app
npm install
npm run dev

创建 Vue3 项目

mika init vue my-vue-app
cd my-vue-app
npm install
npm run dev

创建 Next.js 全栈应用

mika init next my-next-app
cd my-next-app
npm install
npm run dev

创建 Nest.js 后端服务

mika init nest my-api
cd my-api
npm install
npm run start:dev

👨‍💻 作者

DarylLi

🙏 致谢

感谢所有为这个项目做出贡献的开发者!


如果这个项目对你有帮助,请给一个 ⭐️ Star 支持一下!