{"id":22765719,"url":"https://github.com/hansanghyeon/icon","last_synced_at":"2025-03-30T10:21:40.188Z","repository":{"id":265752228,"uuid":"631440379","full_name":"Hansanghyeon/icon","owner":"Hansanghyeon","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-23T08:43:07.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T00:34:38.186Z","etag":null,"topics":["node-package"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hansanghyeon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-23T03:01:19.000Z","updated_at":"2023-04-27T04:38:20.000Z","dependencies_parsed_at":"2024-11-30T19:56:04.201Z","dependency_job_id":"2539ff7d-a7b8-4eb9-a70e-85b36b17701c","html_url":"https://github.com/Hansanghyeon/icon","commit_stats":null,"previous_names":["hansanghyeon/icon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hansanghyeon%2Ficon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hansanghyeon%2Ficon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hansanghyeon%2Ficon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hansanghyeon%2Ficon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hansanghyeon","download_url":"https://codeload.github.com/Hansanghyeon/icon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246303082,"owners_count":20755713,"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":["node-package"],"created_at":"2024-12-11T12:14:09.870Z","updated_at":"2025-03-30T10:21:40.166Z","avatar_url":"https://github.com/Hansanghyeon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## app (App)\n\n[sidv93/react-ts-lib: Component library setup with React, Typescript and Rollup](https://github.com/sidv93/react-ts-lib) rollup 보일러플레이트를 사용해서 아이콘 jsx를 라이브러리화\n\n## gen (Generator)\n\n아이콘은 항시 바뀔 수있고 원본은 SVG 파일이기 때문에 SVG 파일을 통해서 react 컴포넌트를 만들 수 있는 자동화를 구축\n\n다른 패키지들은 모두 esm을 사용한다. 하지만 generator에서는 commonJS를 사용하기 때문에 프로젝트를 분리하였다.\n\n- [@svgr/core](https://github.com/gregberge/svgr)\n  - react typescript 형식으로 변환\n- plop을 이용한 generator\n  - https://stackoverflow.com/questions/20280601/insert-html-in-a-handlebar-template-without-escaping\n    - hbs를 이용해서 html을 바로 템플릿으로 변경할때 escaping된다. `{{{}}}`을 이용해서 재대로 출력할 수 있게 된다.\n  - hygen은 여러 파일을 템플릿을 통해 만들어내는 것이 안된다.\n    - https://github.com/jondot/hygen/issues/322\n\n### using\n\n```bash\nyarn generate\n# alias yarn gen\n```\n\n### copy로 사용할 데이터\n\nicons 프로젝트에서 copy데이터에 필요\n\n### update\n\n1. `assets/` 경로에 svg를 넣는다\n2. `lib`안에 components 를 삭제한다\n3. yarn gen 후 svg-tsx 선택, yarn gen 후 svg-copy-data를 선택한다.\n4. yarn build\n5. yarn publish --message=\"feat(0.2.2): arrow-narrow-left 추가\" =\u003e message내용과 버전 다르게\n6. app-icon 으로 가서 yarn dev를 하여 업데이트가 되었는지 확인","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansanghyeon%2Ficon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansanghyeon%2Ficon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansanghyeon%2Ficon/lists"}