@@ -5,7 +5,6 @@ var typescriptPackage = require('dgeni-packages/typescript');
5
5
var linksPackage = require ( '../links-package' ) ;
6
6
var gitPackage = require ( 'dgeni-packages/git' ) ;
7
7
var path = require ( 'canonical-path' ) ;
8
- var fs = require ( 'fs' ) ;
9
8
10
9
// Define the dgeni package for generating the docs
11
10
module . exports = new Package ( 'angular-v2-docs' , [ jsdocPackage , nunjucksPackage , typescriptPackage , linksPackage , gitPackage ] )
@@ -36,29 +35,6 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
36
35
renderDocsProcessor . extraData . versionInfo = versionInfo ;
37
36
} )
38
37
39
- // Configure file reading
40
- . config ( function ( readTypeScriptModules ) {
41
-
42
- var angular_repo_path = path . resolve ( __dirname , '../../../../angular' ) ;
43
- // confirm that the angular repo is actually there.
44
- if ( ! fs . existsSync ( angular_repo_path ) ) {
45
- throw new Error ( 'build-api-docs task requires the angular2 repo to be at ' + angular_repo_path ) ;
46
- }
47
- readTypeScriptModules . sourceFiles = [
48
- '*/*.@(js|es6|ts)' ,
49
- '*/src/**/*.@(js|es6|ts)'
50
- ] ;
51
- readTypeScriptModules . basePath = path . resolve ( angular_repo_path , 'modules' ) ;
52
- readTypeScriptModules . ignoreExportsMatching = [
53
- '___esModule' ,
54
- '___core_private_types__' ,
55
- '___platform_browser_private__' ,
56
- '___compiler_private__' ,
57
- '__core_private__' ,
58
- '___core_private__'
59
- ] ;
60
- } )
61
-
62
38
63
39
. config ( function ( parseTagsProcessor , getInjectables ) {
64
40
// We actually don't want to parse param docs in this package as we are getting the data out using TS
0 commit comments