Created
September 26, 2014 17:09
-
-
Save ChetHarrison/42ddd721e69ee1c01af7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
so like here is my crude config | |
``` | |
var typeMap = { | |
Program: { | |
parseTags: ['body'], | |
documentTags: [] | |
}, | |
ExpressionStatement: { | |
parseTags: ['expression'], | |
documentTags: [] | |
}, | |
AssignmentExpression: { | |
parseTags: ['left', 'right'], | |
documentTags: [] | |
}, | |
MemberExpression: { | |
parseTags: ['object', 'property'], | |
documentTags: [] | |
}, | |
VariableDeclaration: { | |
parseTags: ['declarations'], | |
documentTags: [] | |
}, | |
VariableDeclarator: { | |
parseTags: ['id','init'], | |
documentTags: [] | |
}, | |
id: { | |
parseTags: ['Identifier'], | |
documentTags: [] | |
}, | |
FunctionExpression: { | |
parseTags: ['params'], | |
documentTags: [] | |
}, | |
Identifier: { | |
parseTags: [], | |
documentTags: ['name'] | |
} | |
} | |
``` | |
and here is what it pulled out of the files ... | |
``` | |
[master:!][chet@Chets-MacBook-Pro:/Applications/MAMP/htdocs/WebSites/jsdoccer] | |
[19:24:44] $ node document.js | |
Generating syntax tree: input/js/example.js | |
Saving syntax tree: output/example.json | |
func | |
arg1 | |
arg2 | |
answer | |
Generating syntax tree: input/js/marionette.application.js | |
Saving syntax tree: output/marionette.application.json | |
Marionette | |
Application | |
options | |
Marionette | |
Application | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.approuter.js | |
Saving syntax tree: output/marionette.approuter.json | |
Marionette | |
AppRouter | |
Generating syntax tree: input/js/marionette.behavior.js | |
Saving syntax tree: output/marionette.behavior.json | |
Marionette | |
Behavior | |
Generating syntax tree: input/js/marionette.behaviors.js | |
Saving syntax tree: output/marionette.behaviors.json | |
Marionette | |
Behaviors | |
Generating syntax tree: input/js/marionette.bindEntityEvents.js | |
Saving syntax tree: output/marionette.bindEntityEvents.json | |
Generating syntax tree: input/js/marionette.callbacks.js | |
Saving syntax tree: output/marionette.callbacks.json | |
Marionette | |
Callbacks | |
Generating syntax tree: input/js/marionette.collectionview.js | |
Saving syntax tree: output/marionette.collectionview.json | |
Marionette | |
CollectionView | |
Generating syntax tree: input/js/marionette.compositeview.js | |
Saving syntax tree: output/marionette.compositeview.json | |
Marionette | |
CompositeView | |
Generating syntax tree: input/js/marionette.controller.js | |
Saving syntax tree: output/marionette.controller.json | |
Marionette | |
Controller | |
options | |
Marionette | |
Controller | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.domRefresh.js | |
Saving syntax tree: output/marionette.domRefresh.json | |
Marionette | |
MonitorDOMRefresh | |
Generating syntax tree: input/js/marionette.error.js | |
Saving syntax tree: output/marionette.error.json | |
errorProps | |
Marionette | |
Error | |
Marionette | |
Error | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.helpers.js | |
Saving syntax tree: output/marionette.helpers.json | |
slice | |
Array | |
prototype | |
slice | |
Marionette | |
extend | |
Backbone | |
Model | |
extend | |
Marionette | |
getOption | |
target | |
optionName | |
Marionette | |
proxyGetOption | |
optionName | |
Marionette | |
normalizeMethods | |
hash | |
Marionette | |
normalizeUIString | |
uiString | |
ui | |
Marionette | |
normalizeUIKeys | |
hash | |
ui | |
Marionette | |
normalizeUIValues | |
hash | |
ui | |
Marionette | |
actAsCollection | |
object | |
listProperty | |
Generating syntax tree: input/js/marionette.itemview.js | |
Saving syntax tree: output/marionette.itemview.json | |
Marionette | |
ItemView | |
Generating syntax tree: input/js/marionette.layoutview.js | |
Saving syntax tree: output/marionette.layoutview.json | |
Marionette | |
LayoutView | |
Generating syntax tree: input/js/marionette.module.js | |
Saving syntax tree: output/marionette.module.json | |
Marionette | |
Module | |
moduleName | |
app | |
options | |
Marionette | |
Module | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.object.js | |
Saving syntax tree: output/marionette.object.json | |
Marionette | |
Object | |
options | |
Marionette | |
Object | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.region.js | |
Saving syntax tree: output/marionette.region.json | |
Marionette | |
Region | |
options | |
Marionette | |
Region | |
extend | |
Marionette | |
extend | |
Generating syntax tree: input/js/marionette.regionManager.js | |
Saving syntax tree: output/marionette.regionManager.json | |
Marionette | |
RegionManager | |
Generating syntax tree: input/js/marionette.renderer.js | |
Saving syntax tree: output/marionette.renderer.json | |
Marionette | |
Renderer | |
Generating syntax tree: input/js/marionette.templatecache.js | |
Saving syntax tree: output/marionette.templatecache.json | |
Marionette | |
TemplateCache | |
templateId | |
Generating syntax tree: input/js/marionette.triggermethod.js | |
Saving syntax tree: output/marionette.triggermethod.json | |
Marionette | |
triggerMethod | |
event | |
Marionette | |
triggerMethodOn | |
context | |
event | |
Generating syntax tree: input/js/marionette.view.js | |
Saving syntax tree: output/marionette.view.json | |
Marionette | |
View | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment