{"id":13452113,"url":"https://github.com/damassi/babel-7-typescript-example","last_synced_at":"2026-03-09T17:44:30.043Z","repository":{"id":150231594,"uuid":"111852592","full_name":"damassi/babel-7-typescript-example","owner":"damassi","description":"Example TypeScript project built on top of new Babel 7 features. Includes Jest and Enzyme.","archived":false,"fork":false,"pushed_at":"2018-09-08T06:19:16.000Z","size":71,"stargazers_count":160,"open_issues_count":0,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-10T12:09:19.018Z","etag":null,"topics":["babel","babel-preset-typescript","typescript"],"latest_commit_sha":null,"homepage":"http://artsy.github.io/blog/2017/11/27/Babel-7-and-TypeScript/","language":"JavaScript","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/damassi.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}},"created_at":"2017-11-23T21:46:42.000Z","updated_at":"2024-12-22T18:22:06.000Z","dependencies_parsed_at":"2023-06-15T05:30:27.206Z","dependency_job_id":null,"html_url":"https://github.com/damassi/babel-7-typescript-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damassi/babel-7-typescript-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fbabel-7-typescript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fbabel-7-typescript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fbabel-7-typescript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fbabel-7-typescript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damassi","download_url":"https://codeload.github.com/damassi/babel-7-typescript-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fbabel-7-typescript-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30305261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"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":["babel","babel-preset-typescript","typescript"],"created_at":"2024-07-31T07:01:13.389Z","updated_at":"2026-03-09T17:44:30.024Z","avatar_url":"https://github.com/damassi.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/damassi/babel-7-typescript-example.svg?branch=master)](https://travis-ci.org/damassi/babel-7-typescript-example)\n\n# TypeScript + Babel 7\n\nExample TypeScript project built on top of new Babel 7 features. Includes React 16, Jest and Enzyme (for tests). Since the TypeScript compiler is no longer required to compile sources you can keep your existing Babel pipeline and instead rely on editor-based type-checking or `tsc`.\n\n## Installation\n\n```sh\ngit clone https://github.com/damassi/babel-7-typescript-example \u0026\u0026 cd babel-7-typescript-example\nyarn install\nyarn start\nyarn test:watch\nyarn typecheck\n```\n\n**For a more complete example that uses Webpack see [this fork](https://github.com/emakina-cee-oss/babel-7-typescript-example/tree/webpack-support) -- thanks @flobacher.**\n\nIf using VSCode, make sure to install the recommended extensions.\n\n## Example\n\n```jsx\n// App.tsx\nimport React, { Component } from 'react'\n\ninterface Props {\n  name: string\n}\n\nexport const App extends Component\u003cProps\u003e {\n  render () {\n    return (\n      \u003cdiv\u003e\n        Hi {this.props.name} from .tsx!\n      \u003c/div\u003e\n    )\n  }\n}\n\n// index.ts\nimport ReactDOM from 'react-dom/server'\nimport { App } from './components/App'\n\nconsole.log(ReactDOM.renderToString(\u003cApp name='leif' /\u003e))\n```\n\n```sh\nyarn build (or babel src --out-dir dist --extensions '.ts,.tsx')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fbabel-7-typescript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamassi%2Fbabel-7-typescript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fbabel-7-typescript-example/lists"}