Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enabled assetviz to traverse websites

  • Loading branch information...
commit 8fc76df9bed68ef21b3e17c5a0c5a1db377aaa68 1 parent 0b828e9
@Munter authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 bin/assetviz
View
16 bin/assetviz
@@ -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'),
Please sign in to comment.
Something went wrong with that request. Please try again.