dgeni-packages
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -0,1 +1,6 @@ | ||
## v0.9.6 07/21/2014 | ||
* feat(api-docs): allow packageName to be specified as a tag 08:08 PM Peter Bacon Darwin 211a4cb4 | ||
## v0.9.5 07/17/2014 | ||
@@ -2,0 +7,0 @@ |
@@ -46,5 +46,7 @@ var _ = require('lodash'); | ||
if ( match ) { | ||
var packageName = match[1].toLowerCase(); | ||
if ( packageName ) { packageName = '-' + packageName; } | ||
doc.packageName = 'angular' + packageName; | ||
if ( !doc.packageName ) { | ||
var packageName = match[1].toLowerCase(); | ||
if ( packageName ) { packageName = '-' + packageName; } | ||
doc.packageName = 'angular' + packageName; | ||
} | ||
doc.packageFile = doc.packageName + '.js'; | ||
@@ -51,0 +53,0 @@ } |
@@ -36,2 +36,16 @@ var rewire = require('rewire'); | ||
it("should compute the packageName and packageFile if not already provided", function() { | ||
var doc1 = { area: 'api', docType: 'module', name: 'ng' }; | ||
var doc2 = { area: 'api', docType: 'module', name: 'ngResource' }; | ||
var doc3 = { area: 'api', docType: 'module', name: 'ngMock', packageName: 'angular-mocks' }; | ||
var moduleMap = {}; | ||
processor.process([doc1,doc2, doc3], config, new PartialNames(), moduleMap); | ||
expect(doc1.packageName).toEqual('angular'); | ||
expect(doc1.packageFile).toEqual('angular.js'); | ||
expect(doc2.packageName).toEqual('angular-resource'); | ||
expect(doc2.packageFile).toEqual('angular-resource.js'); | ||
expect(doc3.packageName).toEqual('angular-mocks'); | ||
expect(doc3.packageFile).toEqual('angular-mocks.js'); | ||
}); | ||
it("should extract the container and member from the name if it is a memberOf type", function() { | ||
@@ -38,0 +52,0 @@ var doc = { |
@@ -117,3 +117,4 @@ var path = require('canonical-path'); | ||
{ name: 'parent' }, | ||
{ name: 'packageName' } | ||
]; |
{ | ||
"name": "dgeni-packages", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "A collection of dgeni packages for generating documentation from source code", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
217256
4496