fix(build): add config for outputting the missing test_lib.d.ts file

This commit is contained in:
Igor Minar 2015-09-01 20:43:03 -07:00
parent 687e7b565f
commit f6108c54ec
1 changed files with 16 additions and 1 deletions

View File

@ -42,7 +42,8 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
'angular2/web_worker/worker.ts', 'angular2/web_worker/worker.ts',
'angular2/web_worker/ui.ts', 'angular2/web_worker/ui.ts',
'angular2/router.ts', 'angular2/router.ts',
'angular2/http.ts' 'angular2/http.ts',
'angular2/test_lib.ts'
]; ];
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules')); readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));
@ -67,6 +68,20 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
references: ['./angular2.d.ts'], references: ['./angular2.d.ts'],
remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'}, remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'},
modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}} modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}}
},
{
id: 'angular2/test_lib',
references: ['./angular2.d.ts', '../jasmine/jasmine.d.ts'],
remapTypes: {
Type: 'ng.Type',
Binding: 'ng.Binding',
ViewMetadata: 'ng.ViewMetadata',
Injector: 'ng.Injector',
Predicate: 'ng.Predicate',
ElementRef: 'ng.ElementRef',
},
modules: {'angular2/test_lib': {namespace: 'ngTestLib', id: 'angular2/test_lib'}}
} }
]; ];
}) })