shrun:在隔离的容器中测试CLI命令

时间:2021-05-02 13:29:24
【文件属性】:
文件名称:shrun:在隔离的容器中测试CLI命令
文件大小:1.01MB
文件格式:ZIP
更新时间:2021-05-02 13:29:24
TypeScript 缩小(测试版) 在隔离的docker容器中测试NodeJS CLI命令。 依存关系 需要Docker运行shrun 快速开始 将shrun添加到您的项目 npm install --save-dev shrun # or for yarn yarn add --dev shrun 构建默认的收缩图像 npx shrun build 根据Docker的安装方式,可能需要sudo sudo -E npx shrun build 注意:build还带有一个可选的--image标志,该标志接受“ alpine”或“ ubuntu”(默认值:ubuntu) 创建一个简单的规格 默认情况下, shrun在/specs目录中查找“ specs”(CLI测试)。 这是一个示例示例,用于测试bash中的echo命令: specs/demo.yml --- - te
【文件预览】:
shrun-master
----package.json(2KB)
----.eslintrc.json(564B)
----.prettierrc(226B)
----LICENSE(1KB)
----src()
--------container.ts(7KB)
--------cliInterface.ts(4KB)
--------specInterface.ts(831B)
--------main.ts(4KB)
--------index.d.ts(397B)
--------logger.ts(865B)
--------getConfig.ts(994B)
--------msleep.ts(164B)
--------jestTestDriver.ts(6KB)
----docker_files()
--------ubuntu.Dockerfile(1KB)
--------alpine.Dockerfile(1KB)
----tsconfig.json(612B)
----tsconfig.release.json(185B)
----shrun.gif(952KB)
----.all-contributorsrc(1KB)
----.gitignore(2KB)
----README.md(19KB)
----yarn.lock(176KB)
----.eslintignore(9B)

网友评论