{"id":15984718,"url":"https://github.com/jchavarri/example-bsb-jest-es6","last_synced_at":"2025-03-17T15:32:12.819Z","repository":{"id":39549221,"uuid":"183451509","full_name":"jchavarri/example-bsb-jest-es6","owner":"jchavarri","description":"Example repo showing a ReasonReact project with hooks + tests, using BuckleScript ES6 output.","archived":false,"fork":false,"pushed_at":"2022-12-10T17:16:08.000Z","size":2975,"stargazers_count":7,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T01:18:21.377Z","etag":null,"topics":["babel","bucklescript","jest","testing"],"latest_commit_sha":null,"homepage":null,"language":"Reason","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/jchavarri.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":"2019-04-25T14:31:07.000Z","updated_at":"2021-05-19T14:37:19.000Z","dependencies_parsed_at":"2022-08-26T01:53:03.662Z","dependency_job_id":null,"html_url":"https://github.com/jchavarri/example-bsb-jest-es6","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/jchavarri%2Fexample-bsb-jest-es6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Fexample-bsb-jest-es6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Fexample-bsb-jest-es6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Fexample-bsb-jest-es6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jchavarri","download_url":"https://codeload.github.com/jchavarri/example-bsb-jest-es6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243869429,"owners_count":20361015,"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":["babel","bucklescript","jest","testing"],"created_at":"2024-10-08T02:10:15.540Z","updated_at":"2025-03-17T15:32:12.497Z","avatar_url":"https://github.com/jchavarri.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-bsb-jest-es6\n\nExample repo showing a ReasonReact project with hooks + tests, using BuckleScript `package-specs.module: \"es6\"` configuration.\n\n## Run Project\n\n```sh\nyarn\nyarn start\n# in another tab\nyarn webpack\n```\n\nAfter you see the webpack compilation succeed (the `yarn webpack` step), open up `build/index.html` (**no server needed!**). Then modify whichever `.re` file in `src` and refresh the page to see the changes.\n\n## Run Project with Server\n\nTo run with the webpack development server run `yarn server` and view in the browser at http://localhost:8000. Running in this environment provides hot reloading and support for routing; just edit and save the file and the browser will automatically refresh.\n\nNote that any hot reload on a route will fall back to the root (`/`), so `ReasonReact.Router.dangerouslyGetInitialUrl` will likely be needed alongside the `ReasonReact.Router.watchUrl` logic to handle routing correctly on hot reload refreshes or simply opening the app at a URL that is not the root.\n\nTo use a port other than 8000 set the `PORT` environment variable (`PORT=8080 yarn server`).\n\n## Build for Production\n\n```sh\nyarn clean\nyarn build\nyarn webpack:production\n```\n\nThis will replace the development artifact `build/Index.js` for an optimized version as well as copy `src/index.html` into `build/`. You can then deploy the contents of the `build` directory (`index.html` and `Index.js`).\n\nIf you make use of routing (via `ReasonReact.Router` or similar logic) ensure that server-side routing handles your routes or that 404's are directed back to `index.html` (which is how the dev server is set up).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchavarri%2Fexample-bsb-jest-es6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchavarri%2Fexample-bsb-jest-es6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchavarri%2Fexample-bsb-jest-es6/lists"}