Skip to content

Commit

Permalink
Enabled assetviz to traverse websites
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Jan 24, 2013
1 parent 0b828e9 commit 8fc76df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/assetviz
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ if (commandLineOptions._.length > 0) {
throw new Error("No input files and no --root specified (or it isn't file:), cannot proceed");
}

if (!rootUrl && inputUrls.length === 1) {
rootUrl = inputUrls[0];
}


var AssetGraph = require('assetgraph'),
query = AssetGraph.query,
followRelationsQueryObj = query.or({to: {type: 'I18n'}}, {
type: query.not([
'JavaScriptInclude',
'JavaScriptExtJsRequire',
'JavaScriptCommonJsRequire',
'HtmlAnchor'
]),
followRelationsQueryObj = query.not({
type: 'HtmlAnchor',
to: {
url: query.not(/^https?:/)
url: /^https?:/
}
}),
assetviz = require('../index.js'),
Expand Down

0 comments on commit 8fc76df

Please sign in to comment.