{"id":19809863,"url":"https://github.com/danieljancar/husky-demo","last_synced_at":"2025-05-01T08:31:21.491Z","repository":{"id":212499402,"uuid":"731634474","full_name":"danieljancar/husky-demo","owner":"danieljancar","description":"A simple demo on using husky as a Git hook on your codebase. 🐺🐾","archived":false,"fork":false,"pushed_at":"2024-01-05T06:56:47.000Z","size":1108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-01-05T07:41:18.977Z","etag":null,"topics":["cicd","codebase","git-hooks","husky"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danieljancar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-14T14:20:13.000Z","updated_at":"2024-01-05T06:55:16.000Z","dependencies_parsed_at":"2024-01-03T14:50:51.101Z","dependency_job_id":null,"html_url":"https://github.com/danieljancar/husky-demo","commit_stats":null,"previous_names":["danieljancar/husky-demo"],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljancar%2Fhusky-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljancar%2Fhusky-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljancar%2Fhusky-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieljancar%2Fhusky-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieljancar","download_url":"https://codeload.github.com/danieljancar/husky-demo/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224245919,"owners_count":17279694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cicd","codebase","git-hooks","husky"],"created_at":"2024-11-12T09:18:30.289Z","updated_at":"2024-11-12T09:18:30.940Z","avatar_url":"https://github.com/danieljancar.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eHusky Demo\u003c/h1\u003e\n    \u003cp\u003eSimple integration of Husky for pre-commit hooks, linting, and formatting. Showcased in a simple Angular project.\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/en/)\n- [Angular CLI](https://cli.angular.io/)\n\n## Setting up Husky\n\n### Install Husky\n\n```bash\nnpm install --save-dev husky\nnpx husky install\n```\n\n### Add pre-commit hook\n\n```bash\nnpx husky add .husky/pre-commit \"npm run lint\"\n```\n\n## Result\n\nWhen trying to commit, the pre-commit hook will build, test and lint the code. If there are any errors, the commit will be aborted.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"static/husky-demo.gif\" alt=\"Husky commit hook\" width=\"800\" height=\"auto\"/\u003e\n\u003c/div\u003e\n\n## References\n\n- [Presentation TechTalk](static/Husky%20Techtalk.pptx)\n- [Youtube video from Angular Nation](https://www.youtube.com/watch?v=FvfAXG92UqY\u0026ab_channel=AngularNation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljancar%2Fhusky-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljancar%2Fhusky-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljancar%2Fhusky-demo/lists"}