Skip to content

Maven Viewer is a Scala-JS application that generates a table for all the builds on a Maven repository for download.

Notifications You must be signed in to change notification settings

calclavia/Maven-Viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven Viewer

Maven Viewer is a Scala-JS application that generates a table for all the builds on a Maven repository for download.

Maven Viewer can run on WordPress.

Requires:

Use

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/calclavia/Maven-Viewer/master/bin/maven-viewer-opt.js"></script>
<script>
    /**
     * Sample script to generate a Maven Viewer
     */
    var repository = new MavenRepository("http://calclavia.com/maven");
    var project = repository.newProject("dev.calclavia.electrodynamics", "electrodynamics");
    project.setClassifiers(["core"]);
    project.generate(function () {
        $("#maven-table").append($(project.render));
    });
</script>

<div id="maven-table"></div>

Get started

To get started, open sbt in this example project, and execute the task fastOptJS. This creates the file target/scala-2.11/example-fastopt.js. You can now open index-fastopt.html in your favorite Web browser!

During development, it is useful to use ~fastOptJS in sbt, so that each time you save a source file, a compilation of the project is triggered. Hence only a refresh of your Web page is needed to see the effects of your changes.

License

This software is distributed under the Lesser General Public License (LGPL) version 3. The license can be found here: http://www.gnu.org/copyleft/lesser.html

The fully optimized version

For ultimate code size reduction, use fullOptJS. This will take several seconds to execute, so typically you only use this for the final, production version of your application. While index-fastopt.html refers to the JavaScript emitted by fastOptJS, index.html refers to the optimized JavaScript emitted by fullOptJS.

About

Maven Viewer is a Scala-JS application that generates a table for all the builds on a Maven repository for download.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 69.7%
  • HTML 30.3%