Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

WIP - chore(dgeni): update dgeni to handle repackaging changes #1224

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions tools/api-builder/angular.io-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var cheatsheetPackage = require('../cheatsheet-package');
var PROJECT_PATH = path.resolve(__dirname, "../../..");
var PUBLIC_PATH = path.resolve(PROJECT_PATH, 'public');
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])
Expand Down Expand Up @@ -41,19 +41,22 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) {

readTypeScriptModules.sourceFiles = [
'angular2/animate.ts',
'angular2/common.ts',
'angular2/compiler.ts',
'angular2/core.ts',
'angular2/http.ts',
'angular2/http/testing.ts',
'angular2/instrumentation.ts',
'angular2/platform/browser.ts',
'angular2/platform/common.ts',
'angular2/router.ts',
'angular2/router/testing.ts',
'angular2/upgrade.ts',
'angular2/testing.ts'
'@angular/common/index.ts',
'@angular/common/testing.ts',
'@angular/compiler/index.ts',
'@angular/compiler/testing.ts',
'@angular/core/index.ts',
'@angular/core/testing.ts',
'@angular/http/index.ts',
'@angular/http/testing.ts',
'@angular/platform-browser/index.ts',
'@angular/platform-browser/testing.ts',
'@angular/platform-browser-dynamic/index.ts',
'@angular/platform-browser-dynamic/testing.ts',
'@angular/platform-server/index.ts',
'@angular/platform-server/testing.ts',
'@angular/router/index.ts',
'@angular/upgrade/index.ts',
];
readTypeScriptModules.hidePrivateMembers = true;

Expand All @@ -80,7 +83,7 @@ module.exports = new Package('angular.io', [basePackage, targetPackage, cheatshe
computePathsProcessor.pathTemplates.push({
docTypes: ['module'],
getPath: function computeModulePath(doc) {
doc.moduleFolder = doc.id.replace(/^angular2\//, '');
doc.moduleFolder = doc.id.replace(/^@angular\//, '');
return doc.moduleFolder + '/index.html';
},
getOutputPath: function computeModulePath(doc) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
div(class="code-links" flex="80" flex-xs="100")
pre.prettyprint.no-bg
code.
export {$ doc.name $}{$ returnType(doc.returnType) $}
export {$ doc.name $}
:marked
{%- if not doc.notYetDocumented %}
{$ doc.description | indentForMarkdown(6) | trimBlankLines $}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo,
// We leave class members sorted in order of declaration
sortClassMembers: false,
// 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) {

Expand Down