{"id":20774215,"url":"https://github.com/pchmn/happy-christmas","last_synced_at":"2026-03-10T19:32:05.182Z","repository":{"id":117650496,"uuid":"581135615","full_name":"pchmn/happy-christmas","owner":"pchmn","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-23T11:04:27.000Z","size":962,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T20:54:10.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pchmn.github.io/happy-christmas/","language":"HTML","has_issues":true,"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/pchmn.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-22T11:16:06.000Z","updated_at":"2022-12-22T12:11:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"7abcd6b0-3652-4e7c-a39d-15f252118ccb","html_url":"https://github.com/pchmn/happy-christmas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pchmn/happy-christmas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchmn%2Fhappy-christmas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchmn%2Fhappy-christmas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchmn%2Fhappy-christmas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchmn%2Fhappy-christmas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pchmn","download_url":"https://codeload.github.com/pchmn/happy-christmas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchmn%2Fhappy-christmas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30350062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T12:28:42.233Z","updated_at":"2026-03-10T19:32:05.166Z","avatar_url":"https://github.com/pchmn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/pchmn/happy-christmas/blob/main/license)\n[![ci](https://github.com/pchmn/happy-christmas/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/pchmn/happy-christmas/actions)\n[![codecov.io](https://codecov.io/gh/pchmn/happy-christmas/coverage.svg?branch=main)](https://codecov.io/gh/pchmn/happy-christmas?branch=master)\n\u003c!-- [![Codacy Badge](https://app.codacy.com/project/badge/Grade/4c695ce061c34c1bb1698acc19278f0e)](https://www.codacy.com/gh/pchmn/happy-christmas/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=pchmn/happy-christmas\u0026amp;utm_campaign=Badge_Grade) --\u003e\n\n\u003c!-- # React - TypeScript and Github Actions Template with Vite --\u003e\n# Vite, React and Github Actions\n\nThis a React v18 + TypeScript + Vitest and React Testing Library + Github Actions starter template built with Vite.\n\n[Demo](https://pchmn.github.io/happy-christmas/)\n\n\u003c/div\u003e\n\n## Features\n### Overview\n\n- ⚡️\u0026nbsp; [Vite](https://vitejs.dev/)\n- ⚛️\u0026nbsp; [React v18](https://beta.reactjs.org/) with [TypeScript](https://www.typescriptlang.org/)\n- 🧪\u0026nbsp; [Vitest](https://vitest.dev/) + [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)\n- 🚀\u0026nbsp; [Github Actions](https://docs.github.com/en/actions) with deployment on [Github Pages](https://pages.github.com/)\n\n### Coding Style\n\n- VSCode settings \u0026 extensions recommendations\n- [EditorConfig](https://editorconfig.org/)\n- [ESLint](https://eslint.org/) \u0026 [Prettier](https://prettier.io/) configured (with [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier))\n\n### Git Hooks\n\n- [Husky](https://typicode.github.io/husky/#/)\n  - [`commitlint`](https://commitlint.js.org/) @ `commit-msg`\n  - [`lint-staged`](https://github.com/okonet/lint-staged) @ `precommit`\n\n### Github Actions\n\n- **Build**, **Test** and **Coverage Analysis** (with [Codecov](https://about.codecov.io/)) at each commit\n- **Deploy** to [Github Pages](https://pages.github.com/) on main branch (see deployment of this repo [here](https://pchmn.github.io/happy-christmas/))\n\n\n\u003cbr\u003e\n\n## Getting Started\n\n### Copy template\n\n```\nnpx degit pchmn/happy-christmas app_name\n```\n\n### Usage\n\n\u003e Project was built using [`pnpm`](https://pnpm.io/installation#using-npm). If you want to use `npm` or `yarn`, just don't forget to update Github Actions workflow (`.github/workflows/ci.yml`).\n\n#### Install\n\n```sh\npnpm i\n```\n\n#### Dev\n\n```sh\npnpm dev\n```\n\n#### Build\n\n\n```sh\n# normal build\npnpm build\n\n# build with 404.html file added for Github Pages included\npnpm build:ci\n```\n\u003e See explanation of `404.html` file [here](#github-pages)\n#### Test\n\n```sh\n# without coverage\npnpm test\n\n# with coverage\npnpm test:ci\n```\n#### Serve\n\n```sh\npnpm serve\n```\n\n\u003cbr\u003e\n\n## Configuration for Github Actions\n\nIf you want to use Github Actions in your repo, you'll need to make little configuration.\n\nActual [workflow](https://github.com/pchmn/happy-christmas/blob/main/.github/workflows/ci.yml) is:\n\n![image](https://user-images.githubusercontent.com/12658241/142628675-1f9e9617-e5da-4dff-aa79-abc0883cf037.png)\n\n### Build \u0026 Test job\n\n\u003e Build and test application on all commits\n\nCreate a [Github personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) (with `repo` and `workflow` permissions) and add it as a `PERSONAL_ACCESS_TOKEN` secret in your repo\n\n### Coverage job\n\n\u003e Run Codecov analysis on all commits\n\nCreate a [Codecov](https://about.codecov.io/) token for your repo and add it as a `CODECOV_TOKEN` secret in your repo\n\n### **Deploy** job\n\n\u003e Manual deploy to Github Pages (only main branch)\n\n- Replace `base` config in `vite.config.ts` to match your repo name\n- Create `GIT_AUTHOR_NAME` and `GIT_AUTHOR_EMAIL` secrets in your repo (it will be the author of commits to `gh-pages` branch)\n- If you want to keep manual deployments, you need to create a [new environment with manual approve](https://devblogs.microsoft.com/devops/i-need-manual-approvers-for-github-actions-and-i-got-them-now/) in your repo, and then replace `environment` config in the `deploy` job in `.github/workflows/ci.yml`:\n  - `environment.name` = name of the environment created in your repo\n  - `environment.url` = link to your github pages\n\n## Github Pages\n\nThere are modifications on `index.html`, and a new `404.html` file in the project to make it work well with Github Pages.\n\n\u003e See https://github.com/rafgraph/spa-github-pages for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchmn%2Fhappy-christmas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpchmn%2Fhappy-christmas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchmn%2Fhappy-christmas/lists"}