Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
feat(graphviz): trying to aid in documentation and help people figure…
Browse files Browse the repository at this point in the history
… this out
  • Loading branch information
nmccready committed Jun 13, 2015
1 parent e16a86e commit b6017de
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = (grunt) ->
'grunt-curl'
'grunt-verbosity'
'grunt-webpack'
'grunt-angular-modules-graph'
'grunt-graphviz'
].forEach (gruntLib) ->
grunt.loadNpmTasks gruntLib

Expand Down Expand Up @@ -127,4 +129,6 @@ module.exports = (grunt) ->

grunt.registerTask 'allExamples', allExamplesTaskToRun

grunt.registerTask 'graph', ['modules-graph', 'graphviz']

#to see all tasks available don't forget "grunt --help" !!!
29 changes: 29 additions & 0 deletions dist/angular-google-maps.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
digraph dependencies{
node[shape="record"]
"uiGmapgoogle-maps.directives.api"[label="{uiGmapgoogle-maps.directives.api|uiGmapCircle\nuiGmapControl\nuiGmapDragZoom\nuiGmapDrawingManager\nuiGmapApiFreeDrawPolygons\nuiGmapICircle\nuiGmapIControl\nuiGmapIDrawingManager\nuiGmapIMarker\nuiGmapIPolygon\nuiGmapIPolyline\nuiGmapIRectangle\nuiGmapIWindow\nuiGmapMap\nuiGmapMarker\nuiGmapMarkers\nuiGmapBasePolyChildModel\nuiGmapPolygonChildModel\nuiGmapPolylineChildModel\nuiGmapPlural\nuiGmapPolygon\nuiGmapPolygons\nuiGmapPolyline\nuiGmapPolylines\nuiGmapRectangle\nuiGmapWindow\nuiGmapWindows}"]
"uiGmapgoogle-maps.directives.api.managers"[label="{uiGmapgoogle-maps.directives.api.managers|uiGmapClustererMarkerManager\nuiGmapMarkerManager}"]
"uiGmapgoogle-maps.directives.api.models.child"[label="{uiGmapgoogle-maps.directives.api.models.child|uiGmapDrawFreeHandChildModel\nuiGmapMarkerChildModel\nuiGmapWindowChildModel}"]
"uiGmapgoogle-maps.directives.api.models.parent"[label="{uiGmapgoogle-maps.directives.api.models.parent|uiGmapBasePolysParentModel\nuiGmapCircleParentModel\nuiGmapDrawingManagerParentModel\nuiGmapIMarkerParentModel\nuiGmapIWindowParentModel\nuiGmapLayerParentModel\nuiGmapMapTypeParentModel\nuiGmapMarkersParentModel\nuiGmapPolygonsParentModel\nuiGmapPolylinesParentModel\nuiGmapRectangleParentModel\nuiGmapSearchBoxParentModel\nuiGmapWindowsParentModel}"]
"uiGmapgoogle-maps.directives.api.options.builders"[label="{uiGmapgoogle-maps.directives.api.options.builders|uiGmapCommonOptionsBuilder\nuiGmapPolylineOptionsBuilder\nuiGmapShapeOptionsBuilder\nuiGmapPolygonOptionsBuilder\nuiGmapRectangleOptionsBuilder\nuiGmapCircleOptionsBuilder}"]
"uiGmapgoogle-maps.directives.api.options"[label="{uiGmapgoogle-maps.directives.api.options|uiGmapMarkerOptions}"]
"uiGmapgoogle-maps.directives.api.utils"[label="{uiGmapgoogle-maps.directives.api.utils|uiGmap_sync\nuiGmap_async\nuiGmapBaseObject\nuiGmapChildEvents\nuiGmapCtrlHandle\nuiGmapEventsHelper\nuiGmapFitHelper\nuiGmapGmapUtil\nuiGmapIsReady\nuiGmapLinked\nuiGmapLogger\nuiGmapModelKey\nuiGmapModelsWatcher\nuiGmapPromise\nuiGmapPropMap\nuiGmapPropertyAction\nuiGmapChromeFixes}"]
"uiGmapgoogle-maps"[label="{uiGmapgoogle-maps|uiGmapCircle\nuiGmapMapControl\nuiGmapDragZoom\nuiGmapDrawingManager\nuiGmapFreeDrawPolygons\nuiGmapLayer\nuiGmapMapType\nuiGmapGoogleMap\nuiGmapMarker\nuiGmapMarkers\nuiGmapPolygon\nuiGmapPolygons\nuiGmapPolyline\nuiGmapPolylines\nuiGmapRectangle\nuiGmapSearchBox\nuiGmapShow\nuiGmapStreetViewPanorama\nuiGmapWindow\nuiGmapWindows\nuiGmapadd-events\nuiGmaparray-sync\nuiGmapObjectIterators}"]
"uiGmapgoogle-maps.extensions"[label="{uiGmapgoogle-maps.extensions|uiGmapExtendGWin\nuiGmapLodash\nuiGmapString}"]
"uiGmapgoogle-maps.providers"[label="{uiGmapgoogle-maps.providers|uiGmapMapScriptLoader\nuiGmapGoogleMapApi}"]
"uiGmapgoogle-maps.wrapped"[label="{uiGmapgoogle-maps.wrapped|}"]


"uiGmapgoogle-maps.directives.api" -> "uiGmapgoogle-maps.directives.api.models.parent" [color="black"]
"uiGmapgoogle-maps.directives.api.models.child" -> "uiGmapgoogle-maps.directives.api.utils" [color="black"]
"uiGmapgoogle-maps.directives.api.models.child" -> "uiGmapgoogle-maps.directives.api.options" [color="black"]
"uiGmapgoogle-maps.directives.api.models.child" -> "uiGmapgoogle-maps.directives.api.options.builders" [color="black"]
"uiGmapgoogle-maps.directives.api.models.parent" -> "uiGmapgoogle-maps.directives.api.managers" [color="black"]
"uiGmapgoogle-maps.directives.api.models.parent" -> "uiGmapgoogle-maps.directives.api.models.child" [color="black"]
"uiGmapgoogle-maps.directives.api.models.parent" -> "uiGmapgoogle-maps.providers" [color="black"]
"uiGmapgoogle-maps.directives.api.options" -> "uiGmapgoogle-maps.directives.api.utils" [color="black"]
"uiGmapgoogle-maps.directives.api.utils" -> "uiGmapgoogle-maps.extensions" [color="black"]
"uiGmapgoogle-maps" -> "uiGmapgoogle-maps.directives.api" [color="black"]
"uiGmapgoogle-maps" -> "uiGmapgoogle-maps.providers" [color="black"]
"uiGmapgoogle-maps.extensions" -> "uiGmapgoogle-maps.wrapped" [color="black"]
"uiGmapgoogle-maps.extensions" -> "uiGmapgoogle-maps.providers" [color="black"]
}
Binary file added dist/angular-google-maps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions grunt/options.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,16 @@ module.exports = (grunt) ->
changelog:
options:{}

'modules-graph':
options:
externalDependenciesColor:'red'
library:
files:
'dist/angular-google-maps.dot': ['tmp/src/**/*.js']
graphviz:
library:
files:
'dist/angular-google-maps.png':'dist/angular-google-maps.dot'

options.jasmine.coverage = jasmineSettings.coverage if jasmineSettings.coverage
return options
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"bower": "~1.4.1",
"data-structures": "^1.4.2",
"grunt": "~0.4.5",
"grunt-angular-modules-graph": "^0.3.1-1",
"grunt-bump": "0.3.1",
"grunt-cli": "~0.1.13",
"grunt-contrib-clean": "~0.6.0",
Expand All @@ -43,6 +44,7 @@
"grunt-conventional-changelog": "~1.2.2",
"grunt-curl": "^2.2.0",
"grunt-debug-task": "^0.1.7",
"grunt-graphviz": "^0.1.1",
"grunt-mkdir": "~0.1.2",
"grunt-open": "~0.2.3",
"grunt-replace": "^0.9.2",
Expand All @@ -55,5 +57,8 @@
"jsonfile": "^2.0.1",
"lodash": "~3.9.3",
"webpack": "^1.9.10"
},
"dependencies": {

}
}

0 comments on commit b6017de

Please sign in to comment.