Skip to content

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jokade committed Dec 4, 2016
1 parent 980e7f8 commit 3d736ca
Show file tree
Hide file tree
Showing 25 changed files with 440 additions and 507 deletions.
32 changes: 16 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
val sjsxVersion = "0.3.0-SNAPSHOT"
val smacrotoolsVersion = "0.0.1"
val sjsxVersion = "0.3.0"
val rxjsVersion = "0.0.1"

lazy val commonSettings = Seq(
organization := "de.surfice",
version := "0.0.1-SNAPSHOT",
version := "0.0.1",
scalaVersion := "2.11.8",
scalacOptions ++= Seq("-deprecation","-unchecked","-feature","-language:implicitConversions","-Xlint"),
autoCompilerPlugins := true,
//addCompilerPlugin("com.lihaoyi" %% "acyclic" % "0.1.2"),
resolvers += Resolver.sonatypeRepo("releases"),
resolvers += Resolver.sonatypeRepo("snapshots"),
scalacOptions ++= (if (isSnapshot.value) Seq.empty else Seq({
val a = baseDirectory.value.toURI.toString.replaceFirst("[^/]+/?$", "")
val g = "https://raw.githubusercontent.com/jokade/angulate2"
s"-P:scalajs:mapSourceURI:$a->$g/v${version.value}/"
}))
resolvers += Resolver.sonatypeRepo("snapshots")
)


Expand All @@ -28,11 +25,17 @@ lazy val angulate2 = project.in(file(".")).
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-js" %%% "scalajs-dom" % "0.8.0",
"de.surfice" %%% "smacrotools-sjs" % "0.1-SNAPSHOT",
"de.surfice" %%% "smacrotools-sjs" % smacrotoolsVersion,
"de.surfice" %%% "sjsx" % sjsxVersion,
"de.surfice" %%% "scalajs-rxjs" % "0.0.1-SNAPSHOT"
"de.surfice" %%% "scalajs-rxjs_cjsm" % rxjsVersion
//"be.doeraene" %%% "scalajs-jquery" % "0.8.0" % "provided",
)
),
crossScalaVersions := Seq("2.11.8","2.12.0"),
scalacOptions ++= (if (isSnapshot.value) Seq.empty else Seq({
val a = baseDirectory.value.toURI.toString.replaceFirst("[^/]+/?$", "")
val g = "https://raw.githubusercontent.com/jokade/angulate2"
s"-P:scalajs:mapSourceURI:$a->$g/v${version.value}/"
}))
)


Expand All @@ -59,7 +62,8 @@ lazy val stubs = project
.settings(commonSettings:_*)
.settings(publishingSettings:_*)
.settings(
name := "angulate2-stubs"
name := "angulate2-stubs",
crossScalaVersions := Seq("2.11.8","2.12.0")
)

//lazy val tests = project.
Expand Down Expand Up @@ -118,8 +122,4 @@ lazy val publishingSettings = Seq(
)
)

lazy val angulateDebugFlags = Seq(
"Directive"
).map( f => s"-Xmacro-settings:angulate2.debug.$f" )


4 changes: 4 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
192 changes: 0 additions & 192 deletions src/main/scala/angulate2/Component.scala

This file was deleted.

109 changes: 0 additions & 109 deletions src/main/scala/angulate2/Directive.scala

This file was deleted.

7 changes: 0 additions & 7 deletions src/main/scala/angulate2/Input.scala

This file was deleted.

9 changes: 9 additions & 0 deletions src/main/scala/angulate2/common/Location.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ import scala.scalajs.js.annotation.JSImport
@js.native
@JSImport("@angular/common","Location")
class Location extends js.Object {
def path(includeHash: js.UndefOr[Boolean] = js.undefined): String = js.native
def isCurrentPathEqualTo(path: String, query: js.UndefOr[String] = js.undefined): Boolean = js.native
def normalize(url: String): String = js.native
def prepareExternalUrl(url: String): String = js.native
def back(): Unit = js.native
def forward(): Unit = js.native
def go(path: String, query: String = ""): Unit = js.native
def replaceState(path: String, query: String = ""): Unit = js.native
def subscribe(onNext: js.Function1[js.Any,_],
onThrow: js.UndefOr[js.Function1[js.Any,_]] = js.undefined,
onReturn: js.UndefOr[js.Function0[_]] = js.undefined): js.Dynamic = js.native
}
Loading

0 comments on commit 3d736ca

Please sign in to comment.