-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34ba54c
commit d7d236a
Showing
46 changed files
with
163 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ language: scala | |
jdk: | ||
- openjdk8 | ||
scala: | ||
- 2.12.5 | ||
- 2.12.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType} | ||
|
||
ThisBuild / organization := "org.lamcalcj" | ||
ThisBuild / version := "1.4.0" | ||
ThisBuild / scalaVersion := "2.12.8" | ||
ThisBuild / organizationName := "LamcalcJ" | ||
ThisBuild / startYear := Option(2019) | ||
ThisBuild / developers += Developer("yuxuanchiadm", "Yu Xuanchi", "[email protected]", url("https://github.com/yuxuanchiadm")) | ||
ThisBuild / publishMavenStyle := true | ||
ThisBuild / publishTo := Option(MavenRepository("lamcalcj-maven", "https://api.bintray.com/maven/yuxuanchiadm/lamcalcj-maven/lamcalcj/;publish=1")) | ||
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / ".credentials") | ||
|
||
name := "lamcalcj-parent" | ||
autoScalaLibrary := false | ||
artifacts := Seq() | ||
|
||
lazy val ast = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-ast")) | ||
.settings( | ||
name := "lamcalcj-ast", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val astJS = ast.js | ||
lazy val astJVM = ast.jvm | ||
|
||
lazy val utils = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-utils")) | ||
.dependsOn(ast) | ||
.settings( | ||
name := "lamcalcj-utils", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val utilsJS = utils.js | ||
lazy val utilsJVM = utils.jvm | ||
|
||
lazy val parser = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-parser")) | ||
.dependsOn(utils) | ||
.settings( | ||
name := "lamcalcj-parser", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val parserJS = parser.js | ||
lazy val parserJVM = parser.jvm | ||
|
||
lazy val compiler = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-compiler")) | ||
.dependsOn(ast) | ||
.dependsOn(parser) | ||
.settings( | ||
name := "lamcalcj-compiler", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val compilerJS = compiler.js | ||
lazy val compilerJVM = compiler.jvm | ||
|
||
lazy val pretty = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-pretty-print")) | ||
.dependsOn(ast) | ||
.dependsOn(utils) | ||
.dependsOn(compiler % Test) | ||
.settings( | ||
name := "lamcalcj-pretty-print", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val prettyJS = pretty.js | ||
lazy val prettyJVM = pretty.jvm | ||
|
||
lazy val reducer = crossProject(JSPlatform, JVMPlatform) | ||
.crossType(CrossType.Full) | ||
.in(file("lamcalcj-reducer")) | ||
.dependsOn(ast) | ||
.dependsOn(utils) | ||
.dependsOn(compiler % Test) | ||
.dependsOn(pretty % Test) | ||
.settings( | ||
name := "lamcalcj-reducer", | ||
|
||
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.7" % Test | ||
) | ||
lazy val reducerJS = reducer.js | ||
lazy val reducerJVM = reducer.jvm |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
.../org/lamcalcj/compiler/CompilerTest.scala → .../org/lamcalcj/compiler/CompilerTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.