A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eamelink/sbt-purescript below:

eamelink/sbt-purescript: PureScript plugin for SBT

sbt-purescript is an SBT plugin that compiles PureScript files to Javascript. It uses and follows the conventions of sbt-web.

To use a stable release, add the following to the project/plugins.sbt of your project:

addSbtPlugin("net.eamelink.sbt" % "sbt-purescript" % "0.4.0")

To use the latest from Github, add the following to the project/plugins.sbt of your project:

lazy val root = project.in(file(".")).dependsOn(sbtPurescript)
lazy val sbtPurescript = uri("git://github.com/eamelink/sbt-purescript")

Then:

Or in a Play Framework project:

There is also a psci command that will run the purescript interpreter, with your sources loaded.

Many 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:

// Include only the `src` directories from the bower packages
(sourceDirectories in purescript in Assets) ++= (baseDirectory.value / "bower_components" * AllPassFilter / "src").get

There'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:

import PureScriptKeys._
pscOptions in Assets := Seq("--module", "Main", "--main") 

Run scripted to run the plugin test suite (which is barely existent at this point...)

MIT License, see LICENSE file.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4