{"id":13727445,"url":"https://github.com/mike-engel/preact-cli-typescript-sample","last_synced_at":"2025-10-02T08:31:21.429Z","repository":{"id":146806869,"uuid":"102906903","full_name":"mike-engel/preact-cli-typescript-sample","owner":"mike-engel","description":"An example of how to use typescript with preact-cli and all its goodies","archived":true,"fork":false,"pushed_at":"2017-09-14T03:52:35.000Z","size":178,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-28T22:08:11.907Z","etag":null,"topics":["bundle-splitting","code-splitting","example","example-app","example-code","example-project","preact","preact-app","preact-cli","types","typescript","webpack","webpack3"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mike-engel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-09-08T21:43:27.000Z","updated_at":"2023-01-28T12:49:02.000Z","dependencies_parsed_at":"2023-04-11T06:18:00.347Z","dependency_job_id":null,"html_url":"https://github.com/mike-engel/preact-cli-typescript-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-engel%2Fpreact-cli-typescript-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-engel%2Fpreact-cli-typescript-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-engel%2Fpreact-cli-typescript-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-engel%2Fpreact-cli-typescript-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike-engel","download_url":"https://codeload.github.com/mike-engel/preact-cli-typescript-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234957847,"owners_count":18913360,"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":["bundle-splitting","code-splitting","example","example-app","example-code","example-project","preact","preact-app","preact-cli","types","typescript","webpack","webpack3"],"created_at":"2024-08-03T01:03:56.772Z","updated_at":"2025-10-02T08:31:20.992Z","avatar_url":"https://github.com/mike-engel.png","language":"TypeScript","readme":"# preact-cli-typescript-example\n\n\u003e An example of how to use typescript with preact-cli and all its goodies\n\n# Why?\n\n[Preact](https://preactjs.com) and [preact-cli](https://github.com/developit/preact-cli) are awesome! [Typescript](https://typescriptlang.org) is awesome! Trying to use them together out of the box, however, is not so awesome. There are some cool projects like [`preact-cli-plugin-typescript`](https://github.com/wub/preact-cli-plugin-typescript) help a little, but I still found myself fighting to get it to build and include ideas like code splitting. So that's why I made this repo while working on a side project.\n\n# Installing\n\nBegin by cloning or forking this repo with git or github. Once you have it on your machine, run the following commands.\n\n```sh\n# install dependencies\nnpm install\n\n# start the web app and development server\nnpm start\n```\n\nAt this point, you should be able to open your browser and go to [localhost:8080](http://localhost:8080). You'll notice that the app compiles and also includes code splitting!\n\n# Deploying\n\nWhile this app doesn't do much on it's own, if you want to deploy it somewhere to see the lighthouse score or offline capabilities, run the build command and serve/upload those files somewhere. I recommend [now.sh](https://now.sh).\n\n```sh\n# build the app into a static set of files\nnpm run build\n\n# deploy somewhere. This example uses now.sh\nnow ./build\n```\n\n# Contributing\n\nI'd love to get your feedback and suggestions via issues and pull requests on this repo! All I ask is that you follow the [code of conduct](#code-of-conduct).\n\n# [Code of Conduct](CODE_OF_CONDUCT.md)\n\nPlease note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.\n\n# [License](LICENSE.md)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-engel%2Fpreact-cli-typescript-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike-engel%2Fpreact-cli-typescript-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-engel%2Fpreact-cli-typescript-sample/lists"}