File tree Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Expand file tree Collapse file tree 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change
1
+ .idea /
1
2
target /
3
+ node_modules /
4
+ package.json
5
+ package-lock.json
Original file line number Diff line number Diff line change 1
1
# scalajs-env-jsdom-nodejs
2
2
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 ` ).
6
7
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.
10
12
11
13
## Usage
12
14
@@ -21,5 +23,3 @@ and the following line to `build.sbt` (possibly in the `settings`/`jsSettings` o
21
23
``` scala
22
24
jsEnv := new net.exoego.jsenv.jsdomnodejs.JSDOMNodeJSEnv ()
23
25
```
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.
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import sbtrelease.ReleaseStateTransformations._
6
6
7
7
8
8
inThisBuild(Seq (
9
- version := " 2.0.0-SNAPSHOT" ,
10
9
organization := " net.exoego" ,
11
10
12
11
scalaVersion := crossScalaVersions.value.head,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ cat version.sbt
4
+
5
+ sbt clean +scalajs-env-jsdom-nodejs/publishSigned sonatypeBundleUpload sonatypeReleaseAll
Original file line number Diff line number Diff line change
1
+ version in ThisBuild := " 2.0.1-SNAPSHOT"
You can’t perform that action at this time.
0 commit comments