From 0a5866e0e169b8751ced4cceee30cddd61e33ad5 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 6 Feb 2017 19:32:14 +0100 Subject: [PATCH] build: no longer run dgeni twice * 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. --- tools/dgeni/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/dgeni/index.js b/tools/dgeni/index.js index 652288c96999..6b5a6e9537be 100644 --- a/tools/dgeni/index.js +++ b/tools/dgeni/index.js @@ -141,11 +141,4 @@ let apiDocsPackage = new DgeniPackage('material2-api-docs', dgeniPackageDeps) }); -module.exports = apiDocsPackage; - -// Run the dgeni pipeline, generating documentation. -// TODO(jelbourn): remove this once the process is more final in favor of gulp. -let dgeni = new Dgeni([apiDocsPackage]); -dgeni.generate().then(docs => { - console.log(docs); -}); +module.exports = apiDocsPackage; \ No newline at end of file