Skip to content

Commit fa0810b

Browse files
authored
Merge pull request scala-js#12 from exoego/releasing
Releasing
2 parents 4a3bc8a + 88f43a2 commit fa0810b

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
.idea/
12
target/
3+
node_modules/
4+
package.json
5+
package-lock.json

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# scalajs-env-jsdom-nodejs
22

3-
`scalajs-env-jsdom-nodejs` is a JavaScript environment for Scala.js (a `JSEnv`)
4-
running [Node.js](https://nodejs.org/) with
5-
[jsdom](https://github.com/tmpvar/jsdom).
3+
This is a fork of [scalajs-env-jsdom-nodejs](https://github.com/scala-js/scala-js-env-jsdom-nodejs)
4+
providing a JavaScript environment for Scala.js (a `JSEnv`) running [Node.js](https://nodejs.org/) with
5+
[jsdom](https://github.com/jsdom/jsdom),
6+
and with `require` function which allows to require/import Node.js modules (e.g. `fs`).
67

7-
This repository contains `scalajs-env-jsdom-nodejs` for Scala.js 1.x. In
8-
Scala.js 0.6.x, the Node.js with jsdom environment is part of the core
9-
distribution.
8+
You may find `require` function useful when you need to read/write files during testing, for example.
9+
10+
When working with Node.js modules, [scala-js-nodejs](https://github.com/exoego/scala-js-nodejs)
11+
might be handy since it provide types and utility functions.
1012

1113
## Usage
1214

@@ -21,5 +23,3 @@ and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` o
2123
```scala
2224
jsEnv := new net.exoego.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
2325
```
24-
25-
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.

build.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import sbtrelease.ReleaseStateTransformations._
66

77

88
inThisBuild(Seq(
9-
version := "2.0.0-SNAPSHOT",
109
organization := "net.exoego",
1110

1211
scalaVersion := crossScalaVersions.value.head,

scripts/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#! /bin/bash
2+
3+
cat version.sbt
4+
5+
sbt clean +scalajs-env-jsdom-nodejs/publishSigned sonatypeBundleUpload sonatypeReleaseAll

version.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version in ThisBuild := "2.0.1-SNAPSHOT"

0 commit comments

Comments
 (0)