{"id":13480085,"url":"https://github.com/firstlookmedia/react-scripts","last_synced_at":"2025-03-27T10:30:59.253Z","repository":{"id":10209172,"uuid":"64705448","full_name":"firstlookmedia/react-scripts","owner":"firstlookmedia","description":"⚙ shared react app configs","archived":false,"fork":false,"pushed_at":"2023-01-27T12:14:44.000Z","size":2764,"stargazers_count":220,"open_issues_count":10,"forks_count":26,"subscribers_count":11,"default_branch":"stable","last_synced_at":"2024-04-14T01:06:32.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/firstlookmedia.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}},"created_at":"2016-08-01T22:18:35.000Z","updated_at":"2023-10-10T05:54:13.000Z","dependencies_parsed_at":"2023-02-15T09:01:21.226Z","dependency_job_id":null,"html_url":"https://github.com/firstlookmedia/react-scripts","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Freact-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Freact-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Freact-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstlookmedia%2Freact-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstlookmedia","download_url":"https://codeload.github.com/firstlookmedia/react-scripts/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826763,"owners_count":20678854,"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":[],"created_at":"2024-07-31T17:00:34.407Z","updated_at":"2025-03-27T10:30:58.876Z","avatar_url":"https://github.com/firstlookmedia.png","language":"JavaScript","readme":"# firstlookmedia/react-scripts\n\nProvides configuration for universal React/Relay apps.\n\nBy default we expect a graphql server to exist as a separate service.\nThe default template will query for `{ viewer { id } }` but this is not\nrequired of the schema.\n\n## Install\n\n``` bash\nnpm install -g create-react-app\n\ncreate-react-app --scripts-version=git+ssh://git@github.com/firstlookmedia/react-scripts.git my-app\ncd my-app\nyarn update-schema\nyarn start\n```\n\n## Usage\n\n`react-scripts` expects at least the following files:\n\n```\nsrc/index.js    # entry to the client-side app\nserver.js       # entry to the server\nschema.graphql  # your graphql schema\n```\n\nThe output will become:\n\n```\nbuild/server.js             # compiled server\nbuild/manifest.json         # manifest pointing source files to compiled\nbuild/assets/32f2q8fj3.js   # example compiled app\nbuild/assets/2d0823jd.css   # any other compiled assets (css, images, fonts)\n```\n\n---\n\n#### `yarn start`\n\nStarts the development environment:\n\n- The app server, which auto-reloads on [http://localhost:3232](http://localhost:3232)\n- A webpack dev server, which hot-reloads and proxies requests to the app server,\n  on [http://localhost:3233](http://localhost:3233)\n\n#### `yarn build`\n\nBuilds the production assets to the `build` folder.\n\n#### `yarn test`\n\nRuns jest tests. `react-scripts` will look for any file named `__spec.js`.\n\nYou will need `watchman` to use `yarn test` without `CI=true`.\nTo install on OSX `brew bundle` in this directory.\n\n## Persisted queries\n\nTo enable persisted queries:\n\n1. Add `PERSIST_QUERIES: \"true\"` in the build and runtime environments\n2. Point `QUERIES_S3_BUCKET` to an s3 bucket during build time to deploy queries, making them accessible to the graphql backend\n3. Upgrade to the newest version of React scripts that has the `GET` and `POST` fetcher methods\n4. Upgrade to relay \u003e= 3.0\n\nNote: persisted queries are always turned off during local development.\n","funding_links":[],"categories":["React Scripts Versions"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstlookmedia%2Freact-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstlookmedia%2Freact-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstlookmedia%2Freact-scripts/lists"}