@ embroider/ try (英语)
一个支持矩阵测试的微小工具.
列表
pnpm -s @embroider/try list
处理您的 .try.mjs gitHub 动作中可用于创建您的文件并释放 JSON strategy.matrix。 。 。 .
应用
pnpm dlx @embroider/try apply $SCENARIO_NAME
通过编辑软件包.json等对您的项目应用一个情景. 在常规之前使用此选项 pnpm install 或者说 npm install 为了测试不同的依赖关系.
配置文件:.try.mjs
export default interface {
scenarios: Scenario[];
}
interface Scenario {
name: string;
// Values that will be merged into package.json:
//
// npm: {
// devDependencies: {
// 'ember-source': '^6.7.8'
// }
// }
npm?: {
devDependencies: Record<string, string>;
dependencies: Record<string, string>;
peerDependencies: Record<string, string>;
overrides: Record<string, string>;
},
// Files that will be (over)written with the given contents
//
// files: {
// 'tsconfig.json': '{ compilerOptions: {} }'
// }
files?: Record<string, string>,
}