小编Mat*_*újo的帖子

我如何为 typeorm CLI 指定迁移目录

新的 typeorm 发布后,迁移时会遇到一些麻烦。

前段时间我正在使用该代码并且它有效

entities: ['./src/modules/**/infra/typeorm/entities/*.ts'],
migrations: ['./src/shared/infra/typeorm/migrations/*.ts'],
cli: {
  migrationsDir: './src/shared/infra/typeorm/migrations'
}
Run Code Online (Sandbox Code Playgroud)

但现在我无法指定 cli 属性。要创建新的迁移,我必须指定整个迁移路径

npm run typeorm migration:create ./src/database/migrations -n SomeTest
Run Code Online (Sandbox Code Playgroud)

有没有另一种方法可以在不指定整个路径的情况下做到这一点?

postgresql node.js typeorm

10
推荐指数
3
解决办法
2万
查看次数

如何使用 Storybook 和 github 操作在 ci 管道上设置运行测试

我一直在学习使用交互插件在 Storykook 中进行测试。但我不知道如何在主分支推送之前运行测试(进行部署),我发现的一种方法是使用 git hook(pre-puch)运行所有测试,但是我的应用程序长大了,我想使用管道 ci/cd 而不是 git hooks

感谢您的阅读!

你可以在这里找到该应用程序

testing continuous-integration reactjs storybook

1
推荐指数
1
解决办法
1968
查看次数