I find this name a bit confusing as it sounds it has something todo with the setup to install/run the code. We have bootstrap, reset, install-all - so I'd by a bit more specific here as so far this setup task is only installing the git hooks.
```suggestion
"setup-git-hooks": "sh scripts/git-hooks/install"
```
I find this name a bit confusing as it sounds it has something todo with the setup to install/run the code. We have `bootstrap`, `reset`, `install-all` - so I'd by a bit more specific here as so far this setup task is only installing the git hooks.
raucao
(Migrated from github.com)
reviewed 2019-05-22 08:29:46 +00:00
This setup is meant to include anything that is necessary, other than npm install, to set up the repo itself. In fact, I'd probably make this a postinstall script, so one doesn't even have to run it manually.
This setup is meant to include anything that is necessary, other than `npm install`, to set up the repo itself. In fact, I'd probably make this a `postinstall` script, so one doesn't even have to run it manually.
raucao
(Migrated from github.com)
reviewed 2019-05-22 08:39:37 +00:00
Isn't postinstall also executed when this is installed as a dependency? e.g. in kredits-web?
if it only runs when running npm install I am ok with merging it. though as much as I need this am not a fan of postinstall scripts doing such modifications.
when we tried to run the app installations in a post-install script it was also only causing problems (don't remember the details though).
Isn't `postinstall` also executed when this is installed as a dependency? e.g. in kredits-web?
if it only runs when running `npm install` I am ok with merging it. though as much as I need this am not a fan of postinstall scripts doing such modifications.
when we tried to run the app installations in a post-install script it was also only causing problems (don't remember the details though).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Runs the appropriate linter on staged files before committing.
Can be easily installed in the local repo by running
npm run setup.I find this name a bit confusing as it sounds it has something todo with the setup to install/run the code. We have
bootstrap,reset,install-all- so I'd by a bit more specific here as so far this setup task is only installing the git hooks.This setup is meant to include anything that is necessary, other than
npm install, to set up the repo itself. In fact, I'd probably make this apostinstallscript, so one doesn't even have to run it manually.Moved the entire thing to
postinstallnow.There's a weird issue with npm, in that when running a
postinstallscript it re-validates the entire npm dependency stack. I don't know why that is.@bumi Can we merge this now?
Isn't
postinstallalso executed when this is installed as a dependency? e.g. in kredits-web?if it only runs when running
npm installI am ok with merging it. though as much as I need this am not a fan of postinstall scripts doing such modifications.when we tried to run the app installations in a post-install script it was also only causing problems (don't remember the details though).
Renamed it to your suggestion.