{"id":13665297,"url":"https://github.com/eamelink/sbt-purescript","last_synced_at":"2026-02-06T09:45:01.679Z","repository":{"id":141653434,"uuid":"20274701","full_name":"eamelink/sbt-purescript","owner":"eamelink","description":"PureScript plugin for SBT","archived":false,"fork":false,"pushed_at":"2014-10-10T20:43:07.000Z","size":271,"stargazers_count":13,"open_issues_count":9,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T00:36:56.349Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eamelink.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":"2014-05-28T22:38:24.000Z","updated_at":"2018-12-24T09:28:25.000Z","dependencies_parsed_at":"2023-03-13T10:30:06.370Z","dependency_job_id":null,"html_url":"https://github.com/eamelink/sbt-purescript","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamelink%2Fsbt-purescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamelink%2Fsbt-purescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamelink%2Fsbt-purescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eamelink%2Fsbt-purescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eamelink","download_url":"https://codeload.github.com/eamelink/sbt-purescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250959877,"owners_count":21514351,"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-08-02T06:00:32.096Z","updated_at":"2026-02-06T09:45:01.629Z","avatar_url":"https://github.com/eamelink.png","language":"Scala","readme":"# sbt-purescript\n\nsbt-purescript is an SBT plugin that compiles [PureScript](http://purescript.org) files to Javascript. It uses and follows the conventions of [sbt-web](https://github.com/sbt/sbt-web).\n\n# Usage\n\nTo use a stable release, add the following to the `project/plugins.sbt` of your project:\n\n    addSbtPlugin(\"net.eamelink.sbt\" % \"sbt-purescript\" % \"0.4.0\")\n\nTo use the latest from Github, add the following to the `project/plugins.sbt` of your project:\n\n    lazy val root = project.in(file(\".\")).dependsOn(sbtPurescript)\n    lazy val sbtPurescript = uri(\"git://github.com/eamelink/sbt-purescript\")\n\nThen:\n\n  * Put your PureScript files (with extension `purs` into `src/main/assets`)\n  * Run the `purescript` task\n  * Observe the glorious result in `target/web/public/main/js`\n\nOr in a Play Framework project:\n\n  * Put your PureScript files (with extension `purs` into `app/assets`)\n  * Run Play\n  * Observe the JS file on `http://localhost:9000/main.js`\n\nThere is also a `psci` command that will run the purescript interpreter, with your sources loaded.\n\n## Using bower\n\nMany purescript packages are distributed with bower. If you want to use bower to manage dependencies, you can just work with a regular `bower.json` file. To let the `purescript` task find the dependencies, add the following to `build.sbt`:\n\n    // Include only the `src` directories from the bower packages\n    (sourceDirectories in purescript in Assets) ++= (baseDirectory.value / \"bower_components\" * AllPassFilter / \"src\").get\n\n## Options\n\nThere's a `pscOptions` key, with a sequence of parameters given to the `psc` command. You need to scope with within the `Assets` config. For example:\n\n    import PureScriptKeys._\n    pscOptions in Assets := Seq(\"--module\", \"Main\", \"--main\") \n\n \n\n## Hacking on the plugin\n\nRun `scripted` to run the plugin test suite (which is barely existent at this point...)\n\n## License\n\nMIT License, see `LICENSE` file.","funding_links":[],"categories":["WEB"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feamelink%2Fsbt-purescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feamelink%2Fsbt-purescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feamelink%2Fsbt-purescript/lists"}