Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including atop-cli with all npm packages installed. Try it out:

atop-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("atop-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

atop-cli v1.7.0


Atop 是一个使用 TypeScript 开发小程序的前端框架。框架使用webpack进行项目的编译, 这样也就支持了npm package 和 postcss等前端必备工具库. 为小程序带来了更加接近前端web的开发体验.

Atop-cli 是为 Atop 框架提供的 cli 工具, 提供了创建项目, 创建界面等功能.


create [options] <app-name>  create a new miniApp project
init [options]               create a new miniApp in currnet dir


atop create demo




  • 初始化工程
    • -t typescript false
    • -n 始化git true
    • -d 输出文件夹名字 dist
    • -a appid
    • -s sentry
    • -l tea log
    • -i lint
  • 创建界面 add page 需要判断项目是否使用了ts
    • 是否使用awex false
    • 是否创建css true
  • 创建组件 add component
  • 创建模板 add tempalte
  • 创建状态管理 add awex
    • -p 添加到界面
    • -m 添加model
    • -t 使用ts
  • 增加错误日志收集组件 add sentry 日志收集上报sdk sentry
  • 增加代码检查 add lint
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free