dgeni-packages
Advanced tools
Comparing version 0.10.1 to 0.10.2
# Changelog | ||
## v0.10.1 6th October | ||
## v0.10.2 8th October 2014 | ||
* feat(examples): allow external example dependencies ae900e77 | ||
## v0.10.1 6th October 2014 | ||
Mostly minor refactoring and the new `checkAnchorLinksProcessor` | ||
@@ -6,0 +10,0 @@ |
@@ -86,5 +86,7 @@ var _ = require('lodash'); | ||
_.forEach(example.deps.split(';'), function(dependency) { | ||
var filePath = /(https?:)?\/\//.test(dependencyPath) ? | ||
dependencyPath + dependency : | ||
path.join(dependencyPath, dependency); | ||
var filePath = /(https?:)?\/\//.test(dependency) ? | ||
dependency : | ||
/(https?:)?\/\//.test(dependencyPath) ? | ||
dependencyPath + dependency : | ||
path.join(dependencyPath, dependency); | ||
if ( filePath.match(/\.js$/) ) { | ||
@@ -91,0 +93,0 @@ exampleDoc.scripts.push({ path: filePath }); |
@@ -27,3 +27,3 @@ var _ = require('lodash'); | ||
outputFolder: 'examples', | ||
deps: 'dep1.js;dep2.js;dep3.css', | ||
deps: 'dep1.js;dep2.js;http://example.com/dep3.js;https://example.com/dep4.js;dep5.css;http://example.com/dep6.css;https://example.com/dep7.css', | ||
files: files, | ||
@@ -80,2 +80,4 @@ deployments: {} | ||
{ path : 'dep2.js' }, | ||
{ path : 'http://example.com/dep3.js' }, | ||
{ path : 'https://example.com/dep4.js' }, | ||
jasmine.objectContaining({ docType : 'example-file', id : 'a.b.c/app.js' }) | ||
@@ -89,2 +91,4 @@ ]); | ||
{ path : '../dep2.js' }, | ||
{ path : 'http://example.com/dep3.js' }, | ||
{ path : 'https://example.com/dep4.js' }, | ||
jasmine.objectContaining({ docType : 'example-file', id : 'a.b.c/app.js' }) | ||
@@ -96,3 +100,5 @@ ]); | ||
expect(_.find(docs, { id: 'a.b.c' }).stylesheets).toEqual([ | ||
{ path : 'dep3.css' }, | ||
{ path : 'dep5.css' }, | ||
{ path : 'http://example.com/dep6.css' }, | ||
{ path : 'https://example.com/dep7.css' }, | ||
jasmine.objectContaining({ docType : 'example-file', id : 'a.b.c/app.css' }) | ||
@@ -104,3 +110,5 @@ ]); | ||
{ path: 'otherStyle.css' }, | ||
{ path : '../dep3.css' }, | ||
{ path : '../dep5.css' }, | ||
{ path : 'http://example.com/dep6.css' }, | ||
{ path : 'https://example.com/dep7.css' }, | ||
jasmine.objectContaining({ docType : 'example-file', id : 'a.b.c/app.css' }) | ||
@@ -107,0 +115,0 @@ ]); |
{ | ||
"name": "dgeni-packages", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "A collection of dgeni packages for generating documentation from source code", | ||
@@ -75,4 +75,5 @@ "scripts": { | ||
"<thorn.mailbox@gmail.com>", | ||
"Lucas Galfaso <lgalfaso@gmail.com>" | ||
"Lucas Galfaso <lgalfaso@gmail.com>", | ||
"Tim Kendrick <timkendrick@gmail.com>" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
318648
6041