diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-18 03:53:27 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-18 03:53:27 +0800 |
commit | 05ce0024352f2198a3744d62d9532a7e729ef5fa (patch) | |
tree | 3c2d0ad33eea0b728eb2421883c106df646f4fe3 /packages/monorepo-scripts/src/doc_generate_and_upload.ts | |
parent | 68d7eb5712750fae2bdc680c45bc5927e1837afe (diff) | |
download | dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar.gz dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar.bz2 dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar.lz dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar.xz dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.tar.zst dexon-0x-contracts-05ce0024352f2198a3744d62d9532a7e729ef5fa.zip |
Refactor DocGenerateAndUploadUtils to be a class, and decompose large methods for readability
Diffstat (limited to 'packages/monorepo-scripts/src/doc_generate_and_upload.ts')
-rw-r--r-- | packages/monorepo-scripts/src/doc_generate_and_upload.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/doc_generate_and_upload.ts b/packages/monorepo-scripts/src/doc_generate_and_upload.ts index e0e7e1bb5..602247972 100644 --- a/packages/monorepo-scripts/src/doc_generate_and_upload.ts +++ b/packages/monorepo-scripts/src/doc_generate_and_upload.ts @@ -1,6 +1,6 @@ import * as yargs from 'yargs'; -import { generateAndUploadDocsAsync } from './utils/doc_generate_and_upload_utils'; +import { DocGenerateAndUploadUtils } from './utils/doc_generate_and_upload_utils'; const args = yargs .option('package', { @@ -19,5 +19,6 @@ const args = yargs const packageName = args.package; const isStaging = args.isStaging; - await generateAndUploadDocsAsync(packageName, isStaging); + const docGenerateAndUploadUtils = new DocGenerateAndUploadUtils(packageName, isStaging); + await docGenerateAndUploadUtils.generateAndUploadDocsAsync(); })(); |