serverless-typescript:使用Typescript的无服务器框架

时间:2021-03-28 00:33:20
【文件属性】:
文件名称:serverless-typescript:使用Typescript的无服务器框架
文件大小:165KB
文件格式:ZIP
更新时间:2021-03-28 00:33:20
TypeScript 初始化打字稿 使用Typescript的无服务器微服务。 工具 打字稿 通过使用模板aws-nodejs-typescript,我们从一开始就拥有typescript和webpack。 Typescript配置位于tsconfig.json。从头开始项目的完整命令是 $ serverless create --template aws-nodejs-typescript --path service-folder --name serviceName 笑话 我们使用笑话作为我们的测试框架。 测试位于/ test目录中。要运行所有测试并查看测试覆盖率,请执行以下操作: $ npm run test 林特 我们将ESLint与TypeScript插件配置文件一起使用:.eslintrc.js要查看linter错误,请运行 $ npm run lint 离线开发 使用LocalStack模拟A
【文件预览】:
serverless-typescript-master
----.pretierrc.js(124B)
----package.json(2KB)
----test()
--------mocks()
--------unit()
--------utils()
----local.sh(340B)
----jest.config.js(344B)
----localstack-compose.yml(610B)
----src()
--------api()
--------utils()
----.eslintrc.js(327B)
----tsconfig.json(552B)
----config-prod.yml(29B)
----serverless.yml(1KB)
----.gitignore(365B)
----webpack.config.js(1KB)
----README.md(2KB)
----yarn.lock(385KB)
----.eslintignore(226B)
----config-dev.yml(29B)

网友评论