chore(dgeni): update dgeni to handle repackaging changes
This commit is contained in:
parent
68503b9e41
commit
acc5233671
|
@ -7,7 +7,7 @@ var cheatsheetPackage = require('../cheatsheet-package');
|
||||||
var PROJECT_PATH = path.resolve(__dirname, "../../..");
|
var PROJECT_PATH = path.resolve(__dirname, "../../..");
|
||||||
var PUBLIC_PATH = path.resolve(PROJECT_PATH, 'public');
|
var PUBLIC_PATH = path.resolve(PROJECT_PATH, 'public');
|
||||||
var DOCS_PATH = path.resolve(PUBLIC_PATH, 'docs');
|
var DOCS_PATH = path.resolve(PUBLIC_PATH, 'docs');
|
||||||
var ANGULAR2_DOCS_PATH = path.resolve(__dirname, '../../../../angular/modules/angular2/docs');
|
var ANGULAR2_DOCS_PATH = path.resolve(__dirname, '../../../../angular/modules/@angular/docs');
|
||||||
|
|
||||||
|
|
||||||
module.exports = new Package('angular.io', [basePackage, targetPackage, cheatsheetPackage])
|
module.exports = new Package('angular.io', [basePackage, targetPackage, cheatsheetPackage])
|
||||||
|
@ -41,19 +41,22 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
|
||||||
.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) {
|
.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) {
|
||||||
|
|
||||||
readTypeScriptModules.sourceFiles = [
|
readTypeScriptModules.sourceFiles = [
|
||||||
'angular2/animate.ts',
|
'@angular/common/index.ts',
|
||||||
'angular2/common.ts',
|
'@angular/common/testing.ts',
|
||||||
'angular2/compiler.ts',
|
'@angular/compiler/index.ts',
|
||||||
'angular2/core.ts',
|
'@angular/compiler/testing.ts',
|
||||||
'angular2/http.ts',
|
'@angular/core/index.ts',
|
||||||
'angular2/http/testing.ts',
|
'@angular/core/testing.ts',
|
||||||
'angular2/instrumentation.ts',
|
'@angular/http/index.ts',
|
||||||
'angular2/platform/browser.ts',
|
'@angular/http/testing.ts',
|
||||||
'angular2/platform/common.ts',
|
'@angular/platform-browser/index.ts',
|
||||||
'angular2/router.ts',
|
'@angular/platform-browser/testing.ts',
|
||||||
'angular2/router/testing.ts',
|
'@angular/platform-browser-dynamic/index.ts',
|
||||||
'angular2/upgrade.ts',
|
'@angular/platform-browser-dynamic/testing.ts',
|
||||||
'angular2/testing.ts'
|
'@angular/platform-server/index.ts',
|
||||||
|
'@angular/platform-server/testing.ts',
|
||||||
|
'@angular/router/index.ts',
|
||||||
|
'@angular/upgrade/index.ts',
|
||||||
];
|
];
|
||||||
readTypeScriptModules.hidePrivateMembers = true;
|
readTypeScriptModules.hidePrivateMembers = true;
|
||||||
|
|
||||||
|
@ -80,7 +83,7 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
|
||||||
computePathsProcessor.pathTemplates.push({
|
computePathsProcessor.pathTemplates.push({
|
||||||
docTypes: ['module'],
|
docTypes: ['module'],
|
||||||
getPath: function computeModulePath(doc) {
|
getPath: function computeModulePath(doc) {
|
||||||
doc.moduleFolder = doc.id.replace(/^angular2\//, '');
|
doc.moduleFolder = doc.id.replace(/^@angular\//, '');
|
||||||
return doc.moduleFolder + '/index.html';
|
return doc.moduleFolder + '/index.html';
|
||||||
},
|
},
|
||||||
getOutputPath: function computeModulePath(doc) {
|
getOutputPath: function computeModulePath(doc) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ include {$ relativePath(doc.path, '_util-fns') $}
|
||||||
div(class="code-links" flex="80" flex-xs="100")
|
div(class="code-links" flex="80" flex-xs="100")
|
||||||
pre.prettyprint.no-bg
|
pre.prettyprint.no-bg
|
||||||
code.
|
code.
|
||||||
export {$ doc.name $}{$ returnType(doc.returnType) $}
|
export {$ doc.name $}
|
||||||
:marked
|
:marked
|
||||||
{%- if not doc.notYetDocumented %}
|
{%- if not doc.notYetDocumented %}
|
||||||
{$ doc.description | indentForMarkdown(6) | trimBlankLines $}
|
{$ doc.description | indentForMarkdown(6) | trimBlankLines $}
|
||||||
|
|
|
@ -27,7 +27,7 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo,
|
||||||
// We leave class members sorted in order of declaration
|
// We leave class members sorted in order of declaration
|
||||||
sortClassMembers: false,
|
sortClassMembers: false,
|
||||||
// We can provide a collection of strings or regexes to ignore exports whose export names match
|
// We can provide a collection of strings or regexes to ignore exports whose export names match
|
||||||
ignoreExportsMatching: ['___esModule'],
|
ignoreExportsMatching: ['___esModule', '___core_private_types__', '___platform_browser_private__', '___compiler_private__'],
|
||||||
|
|
||||||
$process: function(docs) {
|
$process: function(docs) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue