Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Rename Parser.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
postatum committed Nov 1, 2018
1 parent eb438f2 commit cbb092b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lazy val webapi = crossProject(JSPlatform, JVMPlatform)
.jsSettings(
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.2",
scalaJSModuleKind := ModuleKind.CommonJSModule,
artifactPath in (Compile, fastOptJS) := baseDirectory.value / "target" / "artifact" / "webapi-parser-module.js"
artifactPath in (Compile, fullOptJS) := baseDirectory.value / "target" / "artifact" / "webapi-parser-module.js"
)

lazy val webapiJVM = webapi.jvm.in(file("./jvm"))
Expand All @@ -54,7 +54,7 @@ val buildJS = TaskKey[Unit](
"buildJS",
"Build npm module")
buildJS := {
val _ = (fastOptJS in Compile in webapiJS).value
val _ = (fullOptJS in Compile in webapiJS).value
// "./amf-client/js/build-scripts/buildjs.sh".!
}

Expand Down
9 changes: 0 additions & 9 deletions shared/src/main/scala/webapi/parser/Parser.scala

This file was deleted.

13 changes: 13 additions & 0 deletions shared/src/main/scala/webapi/parser/WebApiParser.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package webapi.parser

import amf.client.parse.{Raml10Parser}

import scala.scalajs.js.annotation._

@JSExportAll
@JSExportTopLevel("WebApiParser")
object WebApiParser {

def raml10Parser(): Raml10Parser = new Raml10Parser()

}

0 comments on commit cbb092b

Please sign in to comment.