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

gaio-cli

v1.1.0

Published

## 一、安装

Downloads

73

Readme

gaio-cli

一、安装

npm install -g gaio-cli

二、命令介绍

1、ast dev 本地开发调试命令

  Usage: dev [options]

  本地开发,开启后端服务

  Options:

    --debug [debugName]    开启 debug 模式
    --env [NODE_ENV]       设置 NODE_ENV 环境变量,默认 development
    --port [NODE_PORT]     设置 NODE_PORT 环境变量,默认 8201
    --mock [proxyUrl]      开启 mock 模式,默认 proxy 地址为 http://127.0.0.1:8001
    --ts [open]            开启 ts-node 模式
    --tsconfig [config]    使用自定义的ts编译配置文件
    --inspect [inspect]    启用inspector,开启编辑器断点调试
    --watch [watchDirs]    指定额外的监听目录
    --ignore [ignoreDirs]  指定忽略监听的目录
    -h, --help             output usage information

  Examples:

    $ gaio dev
    $ gaio dev --debug
    $ gaio dev --debug koa:application
    $ gaio dev --debug --mock
    $ gaio dev --mock http://127.0.0.1:8001
    $ gaio dev --mock
    $ gaio dev --env pre
    $ gaio dev --port 8201
    $ gaio dev --env qa --port 8201
    $ gaio dev --ts
    $ gaio dev --ts --tsconfig app/tsconfig.json
    $ gaio dev --ts --inspect
    $ gaio dev --watch definitions
    $ gaio dev --ignore definitions

2、ast build TS 编译命令

  Usage: build [options]

  编译 Typescript 文件

  Options:

    -h, --help  output usage information

  Examples:

    $ ast build

3、ast convertRouter 升级路由配置到 V2 版本

  Usage: convertRouter [options]

  升级路由配置到 V2 版本

  Options:

    --dir [dir]  指定路由文件目录,默认 app/routers
    -h, --help   output usage information

  Examples:

    $ ast convertRouter
    $ ast convertRouter --dir ./app/routers