0.4.3 • Published 10 months ago

aircode-mock-runtime v0.4.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

AirCode Mock Runtime

实验:在本地模拟 AirCode 的 User Runtime。

Usage

  1. Install
npm install aircode-mock-runtime
  1. Config package.json
{
  ...
  "scripts": {
    "dev": "run-aircode --init",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  ...
}

--init 参数在项目下如果没有src目录,会自动创建src/hello.js云函数。

如果hello.js存在,运行命令的时候,浏览器自动启动并访问hello云函数。

高级用法

修改云函数根目录和服务端口

你可以通过cross-env配置AC_FAAS_ROOTAC_PORT

cross-env AC_FAAS_ROOT=test AC_PORT=3000 run-aircode --init
0.4.3

10 months ago

0.4.2

10 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago