Code Monkey home page Code Monkey logo

astroboy-cli's Introduction

astroboy-cli

一、安装

npm install -g astroboy-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:

    $ ast dev
    $ ast dev --debug
    $ ast dev --debug koa:application
    $ ast dev --debug --mock
    $ ast dev --mock http://127.0.0.1:8001
    $ ast dev --mock
    $ ast dev --env pre
    $ ast dev --port 8201
    $ ast dev --env qa --port 8201
    $ ast dev --ts
    $ ast dev --ts --tsconfig app/tsconfig.json
    $ ast dev --ts --inspect
    $ ast dev --watch definitions
    $ ast 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

astroboy-cli's People

Contributors

dependabot[bot] avatar kk0829 avatar miao17game avatar xinconan avatar zzzs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.