chore(build): Add WebWorker bundle.

Closes #3207

Closes #3881
This commit is contained in:
Jason Teplitz
2015-08-27 10:39:39 -07:00
parent be07390859
commit 3468f7cfd5
19 changed files with 111 additions and 1840 deletions

View File

@ -39,6 +39,8 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
readFilesProcessor.basePath = path.resolve(__dirname, '../..');
readTypeScriptModules.sourceFiles = [
'angular2/angular2.ts',
'angular2/web_worker/worker.ts',
'angular2/web_worker/ui.ts',
'angular2/router.ts',
'angular2/http.ts'
];
@ -48,24 +50,38 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
{
id: 'angular2/angular2',
references: ['../es6-promise/es6-promise.d.ts', '../rx/rx.d.ts'],
namespace: 'ng',
modules: {
'angular2/angular2': 'angular2/angular2',
'angular2/angular2': {
namespace: 'ng',
id: 'angular2/angular2'
},
'angular2/web_worker/worker': {
namespace: 'ngWorker',
id: 'angular2/web_worker/worker'
},
'angular2/web_worker/ui': {
namespace: 'ngUi',
id: 'angular2/web_worker/ui'
}
}
},
{
id: 'angular2/router',
namespace: 'ngRouter',
references: ['./angular2.d.ts'],
modules: {
'angular2/router': 'angular2/router'
'angular2/router': {
namespace: 'ngRouter',
id: 'angular2/router'
}
}
},
{
id: 'angular2/http',
namespace: 'ngHttp',
modules: {
'angular2/http':'angular2/http'
'angular2/http': {
namespace: 'ngHttp',
id: 'angular2/http'
}
}
}
];
@ -109,4 +125,4 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
'${ doc.docType }.template.html',
'common.template.html'
];
});
});