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

aha-micro-cli

v1.13.0

Published

aha微前端运行脚手架

Downloads

32

Readme

aha微前端运行脚手架

该项目已在npm发布,用于配合aha微前端模板运行,方便多入口的运行和打包,已经入口代码的封装。脚手架会自动读取entry目录下的所有子项目,并用多列表形式选择运行,将入口注入项目的环境变量中,再从项目运行入口中获取这些运行变量执行不同的编译。

指令集

  • -v --version 版本信息
  • -h --help 帮助信息
  • create 创建一个初始项目
  • dev 运行开发环境
  • build 打包项目
    • build --env val1 --entry 可以实现单个项目直接打包

必要的配置

保证入口路径

子项目路径为src/entry/*
*会被作为脚手架的唯一标识

micro-config.js

位于根目录下,主要给脚手架读取使用,参考备注,不能删除。
包含有通用cdn,打包环境,部署信息等。

子项目config.json

文件应位于src/entry//config.json路径
编译时会选取
作为子项目的key值,config.json文件中的cdn在运行时会和通用的cdn进行合并。

{
	"title": "Aha口袋管理系统", // 浏览器title
	"name": "基座", // 选择运行时会提示的名字
	"port": 4000, // 本地开发端口号
	"checked": true, // 运行时是否被默认选中
	"deferJs": [], // 延迟执行的js
	"js": [], // 同步执行js
	"css": [] // 子项目css
}

运行示例

aha-micro-cli create 创建一个初始化项目

npm run dev

在这里插入图片描述 在这里插入图片描述

npm run build

在这里插入图片描述 在这里插入图片描述

npm run deploy

会提示部署环境及输入服务器账号和密码,ssh操作阶段有一定概率会失败。 在这里插入图片描述 在这里插入图片描述