Skip to content

Commit 5dd8ad3

Browse files
Lawrence DanielsLawrence Daniels
Lawrence Daniels
authored and
Lawrence Daniels
committed
Release v0.5.0
1 parent 03b98a5 commit 5dd8ad3

File tree

5 files changed

+13
-91
lines changed

5 files changed

+13
-91
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ The following core Node.js modules (v8.7.0) have been implemented:
234234
| zlib | This provides bindings to Gzip/Gunzip, Deflate/Inflate, and DeflateRaw/InflateRaw classes. |
235235

236236
**NOTE**: The SBT artifacts for Node.js platform are (choose one):
237-
* NodeJS v8.7.0: "io.scalajs" %%% "nodejs" % "0.4.2"
238-
* NodeJS LTS v6.11.4: "io.scalajs" %%% "nodejs-lts" % "0.4.2"
237+
* NodeJS v8.7.0: "io.scalajs" %%% "nodejs" % "0.5.0"
238+
* NodeJS LTS v6.11.4: "io.scalajs" %%% "nodejs-lts" % "0.5.0"
239239

240240
<a name="npm_modules">
241241
#### Third-party Modules
@@ -302,7 +302,7 @@ The following Third Party/OSS Node.js (npm) modules have been implemented:
302302
| [winston-daily-rotate-file](https://github.com/scalajs-io/winston-daily-rotate-file) | 1.4.4 | A multi-transport async logging library for Node.js. |
303303
| [xml2js](https://github.com/scalajs-io/xml2js) | 0.4.16 | Simple XML to JavaScript object converter. |
304304

305-
*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "0.4.2")
305+
*NOTE*: The full SBT artifact expression is: "io.scalajs.npm" %%% "xxxx" % version (e.g. "io.scalajs.npm" %%% "express" % "0.5.0")
306306

307307
I've provided an example to demonstrate how similar the Scala.js code is to the JavaScript
308308
that it replaces.

build.sbt

Lines changed: 4 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,11 @@ import sbt._
55

66
import scala.language.postfixOps
77

8-
val scalaJsIOVersion = "0.4.3"
8+
val scalaJsIOVersion = "0.5.0"
99
val apiVersion = scalaJsIOVersion
10-
val scalaJsVersion = "2.12.3"
10+
val scalaJsVersion = "2.12.8"
1111

1212
lazy val root = (project in file(".")).
13-
aggregate(common, current, lts).
14-
dependsOn(common, current, lts).
15-
enablePlugins(ScalaJSPlugin).
16-
settings(
17-
name := "nodejs-platform",
18-
version := apiVersion,
19-
organization := "io.scalajs",
20-
description := "NodeJS build artifact",
21-
homepage := Some(url("https://github.com/scalajs-io/nodejs")),
22-
scalaVersion := scalaJsVersion,
23-
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
24-
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
25-
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
26-
autoCompilerPlugins := true,
27-
scalaJSModuleKind := ModuleKind.CommonJSModule,
28-
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
29-
logBuffered in Test := true,
30-
libraryDependencies ++= Seq(
31-
"org.scala-lang" % "scala-reflect" % scalaJsVersion,
32-
"org.scalactic" %% "scalactic" % "3.0.1",
33-
"org.scalatest" %%% "scalatest" % "3.0.1" % "test",
34-
"io.scalajs" %%% "core" % scalaJsIOVersion
35-
))
36-
37-
lazy val common = (project in file("./app/common")).
38-
enablePlugins(ScalaJSPlugin).
39-
settings(
40-
name := "nodejs-common",
41-
version := apiVersion,
42-
organization := "io.scalajs",
43-
description := "NodeJS common API",
44-
homepage := Some(url("https://github.com/scalajs-io/nodejs")),
45-
scalaVersion := scalaJsVersion,
46-
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
47-
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
48-
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
49-
autoCompilerPlugins := true,
50-
scalaJSModuleKind := ModuleKind.CommonJSModule,
51-
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
52-
logBuffered in Test := true,
53-
libraryDependencies ++= Seq(
54-
"org.scala-lang" % "scala-reflect" % scalaJsVersion,
55-
"org.scalactic" %% "scalactic" % "3.0.1",
56-
"org.scalatest" %%% "scalatest" % "3.0.1" % "test",
57-
"io.scalajs" %%% "core" % scalaJsIOVersion
58-
))
59-
60-
lazy val current = (project in file("./app/current")).
61-
dependsOn(common).
6213
enablePlugins(ScalaJSPlugin).
6314
settings(
6415
name := "nodejs",
@@ -70,35 +21,14 @@ lazy val current = (project in file("./app/current")).
7021
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
7122
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
7223
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
73-
autoCompilerPlugins := true,
74-
scalaJSModuleKind := ModuleKind.CommonJSModule,
75-
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
76-
logBuffered in Test := true,
77-
libraryDependencies ++= Seq(
78-
"org.scala-lang" % "scala-reflect" % scalaJsVersion,
79-
"org.scalactic" %% "scalactic" % "3.0.1",
80-
"org.scalatest" %%% "scalatest" % "3.0.1" % "test"
81-
))
82-
83-
lazy val lts = (project in file("./app/lts")).
84-
dependsOn(common).
85-
enablePlugins(ScalaJSPlugin).
86-
settings(
87-
name := "nodejs-lts",
88-
version := apiVersion,
89-
organization := "io.scalajs",
90-
description := "NodeJS LTS v6.11.4 API for Scala.js",
91-
homepage := Some(url("https://github.com/scalajs-io/nodejs")),
92-
scalaVersion := scalaJsVersion,
93-
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-Xlint"),
9424
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
95-
scalacOptions in(Compile, doc) ++= Seq("-no-link-warnings"),
9625
autoCompilerPlugins := true,
9726
scalaJSModuleKind := ModuleKind.CommonJSModule,
98-
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
27+
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full),
9928
logBuffered in Test := true,
10029
libraryDependencies ++= Seq(
10130
"org.scala-lang" % "scala-reflect" % scalaJsVersion,
31+
"io.scalajs" %%% "core" % scalaJsIOVersion,
10232
"org.scalactic" %% "scalactic" % "3.0.1",
10333
"org.scalatest" %%% "scalatest" % "3.0.1" % "test"
10434
))

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "nodejs-sfs",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"private": true,
55
"dependencies": {
6-
"source-map-support": "^0.4.14"
6+
"source-map-support": "^0.5.12"
77
}
88
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.16
1+
sbt.version=1.2.8

project/plugins.sbt

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
// Scala.js
22

3-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.20")
4-
5-
// Code Formatting
6-
7-
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.5.5")
8-
9-
// Testing
10-
11-
//addSbtPlugin("com.artima.supersafe" % "sbtplugin" % "1.1.2")
3+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")
124

135
// Publishing
146

15-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")
7+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
168

17-
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
9+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
1810

1911
// Resolvers
2012

0 commit comments

Comments
 (0)