Skip to content

Commit 4b830d3

Browse files
devversiontinayuangao
authored andcommitted
build: no longer run dgeni twice (#2954)
* Currently when running dgeni using the `gulp api` task, Dgeni will run twice. This happens because the `dgeni/index.js` file calls `generate()` and the gulp task does that as well. The `dgeni/index.js` file should be just responsible for exporting the dgeni package.
1 parent d9f5700 commit 4b830d3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tools/dgeni/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,4 @@ let apiDocsPackage = new DgeniPackage('material2-api-docs', dgeniPackageDeps)
141141
});
142142

143143

144-
module.exports = apiDocsPackage;
145-
146-
// Run the dgeni pipeline, generating documentation.
147-
// TODO(jelbourn): remove this once the process is more final in favor of gulp.
148-
let dgeni = new Dgeni([apiDocsPackage]);
149-
dgeni.generate().then(docs => {
150-
console.log(docs);
151-
});
144+
module.exports = apiDocsPackage;

0 commit comments

Comments
 (0)