{"id":14990554,"url":"https://github.com/jpavon/react-scripts-ts","last_synced_at":"2025-06-26T06:35:38.545Z","repository":{"id":29817611,"uuid":"122858531","full_name":"jpavon/react-scripts-ts","owner":"jpavon","description":"@jpavon/react-scripts-ts, react-scripts with ts-loader and type checker on a separate process.","archived":false,"fork":false,"pushed_at":"2022-12-08T17:00:41.000Z","size":1857,"stargazers_count":83,"open_issues_count":38,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-24T18:18:37.085Z","etag":null,"topics":["create-react-app","css-modules","react","react-scripts","sass","tslint","typescript","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@jpavon/react-scripts-ts","language":"JavaScript","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/jpavon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-25T17:25:47.000Z","updated_at":"2024-06-30T09:23:54.000Z","dependencies_parsed_at":"2023-01-14T15:45:25.063Z","dependency_job_id":null,"html_url":"https://github.com/jpavon/react-scripts-ts","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/jpavon/react-scripts-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpavon%2Freact-scripts-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpavon%2Freact-scripts-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpavon%2Freact-scripts-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpavon%2Freact-scripts-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpavon","download_url":"https://codeload.github.com/jpavon/react-scripts-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpavon%2Freact-scripts-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262016583,"owners_count":23245537,"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":["create-react-app","css-modules","react","react-scripts","sass","tslint","typescript","webpack"],"created_at":"2024-09-24T14:20:22.057Z","updated_at":"2025-06-26T06:35:38.520Z","avatar_url":"https://github.com/jpavon.png","language":"JavaScript","readme":"## ![react-scripts-ts](template/src/logo.svg)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003cspan\u003e+\u003c/span\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003cimg src=\"https://github.com/remojansen/logo.ts/raw/master/ts.png\"  width=\"70\" height=\"70\" /\u003e\n\n![License](https://img.shields.io/github/license/jpavon/react-scripts-ts.svg)\n[![NPM](https://img.shields.io/npm/v/@jpavon/react-scripts-ts.svg)](https://www.npmjs.com/package/@jpavon/react-scripts-ts)\n[![CircleCI Status](https://circleci.com/gh/jpavon/react-scripts-ts.svg?style=shield\u0026circle-token=:circle-token)](https://circleci.com/gh/jpavon/react-scripts-ts)\n\n# @jpavon/react-scripts-ts\n\nModern build setup with no configuration for React + TypeScript projects.\n\n### Main differences with create react app:\n\n- [Faster build times](https://github.com/jpavon/react-scripts-ts/issues/7#issue-394549780)\n- [Namespaces support](https://www.typescriptlang.org/docs/handbook/namespaces.html)\n- [Module resolution support (baseUrl/paths)](https://www.typescriptlang.org/docs/handbook/module-resolution.html)\n- Type checking\ton a separate proccess\n- Transpilation using [ts-loader](https://github.com/TypeStrong/ts-loader)\n- Provide compile-time information for styled components [typescript-plugin-styled-components](https://github.com/Igorbek/typescript-plugin-styled-components)\n\nFound any problem or bug? Please [create a new issue](https://github.com/jpavon/react-scripts-ts/issues).\n\n## Features\n\n- Webpack 4\n- TypeScript compilation [ts-loader](https://github.com/TypeStrong/ts-loader)\n- Type and tslint errors on a separate process [fork-ts-checker-webpack-plugin](https://github.com/Realytics/fork-ts-checker-webpack-plugin)\n- Sass, Less and Css Modules [css-modules](https://github.com/css-modules/css-modules)\n- Generate TypeScript typings for CSS modules [typings-for-css-modules-loader](https://github.com/jpavon/typings-for-css-modules-loader)\n- Tranform SVG into React components [svgr](https://github.com/smooth-code/svgr)\n- Use `.js|.jsx` and `.ts|.tsx` files together.\n\nCheck out the [template files](template) for usage examples.\n\n# Getting started\n\n## Create a new project:\n\n```bash\nnpx create-react-app my-app --scripts-version=@jpavon/react-scripts-ts\ncd my-app/\nyarn start\n```\n(npx comes with npm 5.2+ and higher)\n\n## Already using create-react-app / react-scripts?\n\nInstall this package in yout project:\n\n```bash\nyarn add @jpavon/react-scripts-ts\n```\n\nChange your package.json configuration to use react-scripts-ts\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"react-scripts-ts start\",\n    \"build\": \"react-scripts-ts build\",\n    \"test\": \"react-scripts-ts test --env=jsdom\",\n  }\n}\n```\n\n# Ejecting\n\nEjecting is not supported in this project, you have 2 options:\n\n- Fork this project and create your own react-scripts-ts package.\n\n- Use [react-app-rewired](https://github.com/timarney/react-app-rewired) with [custom scripts versions](https://github.com/timarney/react-app-rewired#2-custom-scripts-versions):\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"react-app-rewired start --scripts-version @jpavon/react-scripts-ts\",\n    \"build\": \"react-app-rewired build --scripts-version @jpavon/react-scripts-ts\",\n    \"test\": \"react-app-rewired test --scripts-version @jpavon/react-scripts-ts --env=jsdom\"\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpavon%2Freact-scripts-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpavon%2Freact-scripts-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpavon%2Freact-scripts-ts/lists"}