mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
tinayuangao
parent
d9f57001cd
commit
4b830d33d5
@@ -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;
|
||||
Reference in New Issue
Block a user