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.
This commit is contained in:
Paul Gschwendtner
2017-02-07 00:00:46 +01:00
committed by tinayuangao
parent d9f57001cd
commit 4b830d33d5
+1 -8
View File
@@ -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;