{"id":17130289,"url":"https://github.com/aparo/scalajs-react-extra","last_synced_at":"2025-04-13T07:27:04.384Z","repository":{"id":25504440,"uuid":"28935835","full_name":"aparo/scalajs-react-extra","owner":"aparo","description":"Extra library wrapper for react and standard Javascript library (mapped using react vdom)","archived":false,"fork":false,"pushed_at":"2018-03-17T15:22:16.000Z","size":102,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-05T14:11:49.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aparo.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":"2015-01-07T21:49:08.000Z","updated_at":"2022-09-22T00:27:35.000Z","dependencies_parsed_at":"2022-08-01T05:38:34.028Z","dependency_job_id":null,"html_url":"https://github.com/aparo/scalajs-react-extra","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/aparo%2Fscalajs-react-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Fscalajs-react-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Fscalajs-react-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aparo%2Fscalajs-react-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aparo","download_url":"https://codeload.github.com/aparo/scalajs-react-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240045015,"owners_count":19739185,"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-10-14T19:12:01.188Z","updated_at":"2025-02-23T01:31:11.688Z","avatar_url":"https://github.com/aparo.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scalajs-react-extra\nExtra library wrapper for react and standard Javascript library (mapped using react vdom)\n\nFor now partial scalajs-react-bootstrap is available.\nIt's a complete rewrite of react-bootstrap for scalajs. (It's not a facade).\n\nThis project is based on [scalajs-react](https://github.com/japgolly/scalajs-react) and [play-with-scalajs-example](https://github.com/vmunier/play-with-scalajs-example)\nThis is a simple example application showing how you can integrate a Play project with a Scala.js project.\n\nThe application contains three directories:\n* `examples-server` Play application (server side)\n* `examples-client` Scala.js application (client side)\n* `examples-shared` Scala code that you want to share between the server and the client\n* `react-bootstrap` ScalaJS React Bootstrap\n\n## Run the application\n```shell\n$ sbt\n\u003e run\n$ open http://localhost:9000\n```\n\n## Features\n\nThe application uses the [sbt-play-scalajs](https://github.com/vmunier/sbt-play-scalajs) sbt plugin and the [play-scalajs-scripts](https://github.com/vmunier/play-scalajs-scripts) library.\n\n- Run your application like a regular Play app\n  - `compile` simply triggers the Scala.js compilation\n  - `run` triggers the Scala.js fastOptJS command on page refresh\n  - `~compile`, `~run`, continuous compilation is also available\n  - `start`, `stage` and `dist` generate the optimised javascript\n  - [`playscalajs.html.scripts`](https://github.com/vmunier/play-with-scalajs-example/blob/303bfdcf3121d0d45e9425945f7480f84a81ccac/example-server/app/views/main.scala.html#L16) selects the optimised javascript file when the application runs in prod mode (`start`, `stage`, `dist`).\n- Source maps\n  - Open your browser dev tool to set breakpoints or to see the guilty line of code when an exception is thrown\n  - Source Maps is _disabled in production_ by default to prevent your users from seeing the source files. But it can easily be enabled in production too by setting `emitSourceMaps in fullOptJS := true` in the Scala.js projects.\n\n## IDE integration\n\n### Eclipse\n\n1. `$ sbt eclipse`\n2. Inside Eclipse, `File/Import/General/Existing project...`, choose the root folder to import the projects\n\n### IntelliJ\n\nIn IntelliJ, `File/Import Project...`, choose the root folder, `Import project from external model/SBT/Finish`.\nMake sure you use the IntelliJ Scala Plugin v1.3.3 or higher. There are known issues with prior versions of the plugin.\n\n## Deployment\n\n[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faparo%2Fscalajs-react-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faparo%2Fscalajs-react-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faparo%2Fscalajs-react-extra/lists"}