Giter VIP home page Giter VIP logo

zugen's Introduction

Zugen

Build Status

A tool for generating Zu(図) of Scala project.

Documents to be generated

These screenshots are generated in the example Scala project.

Domain object table

A table of domain objects under the specified packages.

  • List package, object/trait/class name, scaladoc and file path
  • Show referrer count

Domain object table

Domain relation diagram

A diagram which indicates relation among domain objects.

  • Show inheritance relations
  • Show properties
  • Highlight references which is bound to outside of domain package in red
  • Handle container class (Seq[T], etc.)

Domain relation diagram

Setup

project/plugins.sbt

Maven Central

addSbtPlugin("io.github.todokr" % "sbt-zugen" % "(version)")

build.sbt

// zugen loads source code infomation from SemainticDB
addCompilerPlugin("org.scalameta" %% "semanticdb-scalac" % "4.3.17" cross CrossVersion.full)
scalacOptions ++= Seq("-Yrangepos", "-P:semanticdb:text:on")

enablePlugins(ZugenPlugin)
zugenDomainPackages := Seq("your.projects.domain", "your.projects.other.domain")

Run

$ sbt zugen

Setting keys are defined in here.

Thanks

Zugen is inspired by JIG, which is a document generator for Java project and its philosophy.

zugen's People

Contributors

iwamatsu0430 avatar todokr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.