Skip to content

Commit

Permalink
Update the readme for version 1.1.0.
Browse files Browse the repository at this point in the history
These changes were forgotten in
73b4ca9.
  • Loading branch information
sjrd committed May 6, 2020
1 parent 0636ad0 commit 9f15bb2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@

`scalajs-env-jsdom-nodejs` is a JavaScript environment for Scala.js (a `JSEnv`)
running [Node.js](https://nodejs.org/) with
[jsdom](https://github.com/tmpvar/jsdom).
[jsdom](https://github.com/jsdom/jsdom).

This repository contains `scalajs-env-jsdom-nodejs` for Scala.js 1.x. In
Scala.js 0.6.x, the Node.js with jsdom environment is part of the core
Expand All @@ -13,7 +13,7 @@ distribution.
Add the following line to `project/plugins.sbt`:

```scala
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.0.0"
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0"
```

and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` of Scala.js projects):
Expand All @@ -22,4 +22,11 @@ and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` o
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
```

Finally, make sure that [jsdom](https://github.com/jsdom/jsdom) 10.0.0 or later is avilable in your project.
You can install it with

```bash
$ npm install jsdom
```

See [the Scaladoc](https://javadoc.io/doc/org.scala-js/scalajs-env-jsdom-nodejs_2.13/latest/org/scalajs/jsenv/jsdomnodejs/index.html) for other configuration options.

0 comments on commit 9f15bb2

Please sign in to comment.