From 7a92a62463d29f98b70c651d78cb39bde489f0c8 Mon Sep 17 00:00:00 2001 From: "Mark \"Justin\" Waks" Date: Tue, 31 Mar 2015 16:12:37 -0400 Subject: [PATCH] Added the build files Library now seems to be working. --- .gitignore | 174 +++++++++++++++++++++++++++++++++++++++ build.sbt | 56 +++++++++++++ project/build.properties | 1 + project/build.sbt | 4 + 4 files changed, 235 insertions(+) create mode 100644 .gitignore create mode 100644 build.sbt create mode 100644 project/build.properties create mode 100644 project/build.sbt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73c4826 --- /dev/null +++ b/.gitignore @@ -0,0 +1,174 @@ +################# +## Querki +################# + +.target +testdb/ +*.db +application.conf +target/ +project/target/ + +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results +[Dd]ebug/ +[Rr]elease/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +.builds +*.dotCover + +## TODO: If you have NuGet Package Restore enabled, uncomment this +#packages/ + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# ReSharper is a .NET coding add-in +_ReSharper* + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Others +[Bb]in +[Oo]bj +sql +TestResults +*.Cache +ClientBin +stylecop.* +~$* +*.dbmdl +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + + + +############ +## Windows +############ + +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + + +############# +## Python +############# + +*.py[co] + +# Packages +*.egg +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg + +# Mac crap +.DS_Store diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..f78137b --- /dev/null +++ b/build.sbt @@ -0,0 +1,56 @@ +lazy val root = project.in(file(".")). + enablePlugins(ScalaJSPlugin) + +name := "jQuery Facade" + +normalizedName := "jquery-facade" + +version := "0.1-SNAPSHOT" + +organization := "org.querki" + +scalaVersion := "2.11.6" + +crossScalaVersions := Seq("2.10.4", "2.11.5") + +libraryDependencies ++= Seq( + "org.querki" %%% "querki-jsext" % "0.1", + "org.scala-js" %%% "scalajs-dom" % "0.8.0" +) + +jsDependencies += + "org.webjars" % "jquery" % "2.1.3" / "jquery.js" + +jsDependencies in Test += RuntimeDOM + +homepage := Some(url("http://www.querki.net/")) + +licenses += ("MIT License", url("http://www.opensource.org/licenses/mit-license.php")) + +scmInfo := Some(ScmInfo( + url("https://github.com/jducoeur/jquery-facade"), + "scm:git:git@github.com:jducoeur/jquery-facade.git", + Some("scm:git:git@github.com:jducoeur/jquery-facade.git"))) + +publishMavenStyle := true + +publishTo := { + val nexus = "https://oss.sonatype.org/" + if (isSnapshot.value) + Some("snapshots" at nexus + "content/repositories/snapshots") + else + Some("releases" at nexus + "service/local/staging/deploy/maven2") +} + +pomExtra := ( + + + jducoeur + Mark Waks + https://github.com/jducoeur/ + + +) + +pomIncludeRepository := { _ => false } + diff --git a/project/build.properties b/project/build.properties new file mode 100644 index 0000000..304ec92 --- /dev/null +++ b/project/build.properties @@ -0,0 +1 @@ +sbt.version=0.13.7 \ No newline at end of file diff --git a/project/build.sbt b/project/build.sbt new file mode 100644 index 0000000..931838d --- /dev/null +++ b/project/build.sbt @@ -0,0 +1,4 @@ +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.2") + +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") +addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")