Tags: ghooks-org/ghooks
Tags
fix(hook): handle node module path os agnostically (#114) * fix(hook): detemine hook name path separator agnostically Former `hook` name determination was a simple regex using *nix style path separator `/`, using `path.basename`, the required last part gets returned, independent of an os specific path separator. * fix(hook): correctly escape rendered `node_modules_path` string
feat(hook): Support setups with CWD below Git project root (#112) * add node_modules_path variable to template * surround template variable in quotes * testing * pass node_modules path instead of __dirname, change hook() to use regex * test(hook): Modify package name resolution to fit. * fix(hook): try to resolve simple `ghooks` first The former default way to resolve the package (default project setup: cwd === project dir), fixes own `npm install` after cloneing the repo. * test(hook): test default and cwd !== project dir setups * docs(readme): advise to not install globally Fixes #108
feat(hook): Use applying git config to take submodules and worktrees … …into account * feat(hook): Use applying git config to take submodules and worktrees into account Closes #66 & closes #46 * test(coverage): Take lib/hook.template.raw into account for code coverage * test(install): Ensure code coverage for 100% of all branches Even in the improbable case, that a .git entry on the filesystem is present, but neither a directory, nor a file. * refactor(hook): Remove unnecessary IIFE & normalize return value
PreviousNext