cost 218 ms
Husky 准备脚本失败 firebase function 部署 - Husky prepare script failing firebase function deployment

我在我的 npm 项目中安装了husky作为prepare脚本,如下所示 husky被声明为devDependencies ,因为这个 npm 模块仅在本地开发时才需要,在运行时应用程序中不需要。 因此,当我运行npm run deploy时,出现以下错误 这个错误很明显是没有安装husky 。 ...

无法使用另一个自定义命令在 husky 中运行 commitlint - Can't run commitlint in husky with another custom command

我怎样才能在 husky 中有两个预提交挂钩? 我希望将 commitlint 与我的 package.json 中定义的自定义脚本一起使用。 我已经安装了 husky 并且在 .husky 文件夹中有一个预提交脚本。 这是我试过的: 我试过npx commitlint --edit && ...

如何结合 ggshield 和 Husky 来预提交 git 钩子? - How to combine ggshield and Husky for pre-commit git hook?

我想将 ggshield(由 GitGuardian 提供)和 Husky 组合成一个预提交挂钩,但结果是只有其中一个有效。 我尝试在 repo 中运行pre-commit install ,然后在 repo 中运行husky install 。 在那种情况下,当我尝试提交测试错误时,Husky ...

赫斯基预提交直到提交后才运行 - Husky pre-commit not running until after commit

期望的结果:当我提交时,在提交之前运行npm run build ,这将生成一些新文件。 我希望将这些文件添加到提交中。 当前的 state 事务:当我提交时,它运行npm run build生成文件。 在提交之后,我有一些阶段性的变化。 我正在使用 Solidity(和 Forge)+ npm。如 ...

Husky, GitHub 桌面提交报错: cannot find module yarn.js - Husky, GitHub Desktop commit error: cannot find module yarn.js

我正在从事一个具有 Husky 依赖性的项目。 当我尝试在 GitHub 桌面上提交更改或切换分支时,出现此错误: 操作系统:Windows 10 专业版 GitHub 桌面:版本 3.1.2 Git :版本 2.38.0.windows.1 如果我使用 Powershell 中的 git,一切 ...

当.git 在不同的文件夹中时如何配置哈士奇? - How to configure husky when .git is in a different folder?

我正在尝试为我公司的项目设置提交时的自动 linting,我见过的最好的方法是husky NPM package。我正在按照有关使用eslint 、 prettier和lint-staged设置Husky的说明进行操作lint-staged但我一直遇到同样的问题,我不知道如何解决。 我的问题是我的 ...

Husky npm package Pre-Commit hook 在子目录存储库中不起作用 - Husky npm package Pre-Commit hook not working in sub directory repository

我正在尝试将赫斯基与 Eslint 一起使用。 我正在尝试创建一个预提交(lint 和 husky)脚本,如果它们有 lint 错误,它将阻止添加文件的提交。 但是,我的项目不是单回购格式,而是自定义格式。 换句话说,my.husky 文件夹和 package.json 文件都位于名为“react- ...

如何在自定义 lint-staged 脚本中获取暂存文件以及如何调试自定义脚本文件? - how to get the staged files in custom lint-staged scripts and how to debug the custom script file?

我在我的应用程序中配置了 lint-staged + husky,我需要在预提交时运行自定义的 lint-staged 脚本。 这是我的package.json//package.json "lint-staged": { "app/**/*.js": "node ./lint-staged- ...

如何使用 commitlint 只允许来自一个 email 的提交 - How to use commitlint to only allow commits from one email

我有几个 Github 帐户,其中一些用于开源存储库,我对所有这些帐户都使用 ssh 密钥。 我经常更换工作场所,每次我需要小心设置git config user.name和git config user.email 我们正在使用 CommitLint 和 Husky 有没有办法添加一个不允许你提交 ...

将 Cypress 命令添加到 husky 预推时出现模块未找到错误 - Module not found error when adding Cypress command to husky pre-push

当从终端运行cy run (通过npm run test:e2e )时,它工作得很好。 添加到 husky pre-push中的相同命令导致以下错误: 我的.husky/pre-push文件如下所示: 我无法通过终端复制错误。 为什么这个错误只发生在哈士奇身上,我该如何解决? 平台:MacOS 节点 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM