Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
astroboy-cli
Advanced tools
npm install -g astroboy-cli
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
Usage: build [options]
编译 Typescript 文件
Options:
-h, --help output usage information
Examples:
$ ast build
Usage: convertRouter [options]
升级路由配置到 V2 版本
Options:
--dir [dir] 指定路由文件目录,默认 app/routers
-h, --help output usage information
Examples:
$ ast convertRouter
$ ast convertRouter --dir ./app/routers
FAQs
## 一、安装
The npm package astroboy-cli receives a total of 38 weekly downloads. As such, astroboy-cli popularity was classified as not popular.
We found that astroboy-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.