feat: push command (#234)

* feat: wip push command
* chore: rebase to new structure
* chore: handle cli push arguments
* chore: get signed url; upload file to s3; create hash from files;
* chore: upsert logic
* upsert + version logic updated
* chore: multiple sign & upload files
* chore: improve destination arg validation
* chore: execution time
* fix: added isAuthorized client logic
* chore: extended upload files logic
* chore: default branch logic
* fix: naming and other corrections
* fix: destination arg regexp updated
* chore: check the existence of the organization
* fix: file path to s3 upload
* chore: refactor gathering files to upload
* fix: path resolve for root
* chore: add files output
* chore: fix files output
* chore: simplify findConfig
* fix: bundle definition before pushing
* fix: upload all related files to plugins
* fix: ignore file & naming corrections
* fix: bundling definition
* chore: minor cleanup

Co-authored-by: romanhotsiy <gotsijroman@gmail.com>
This commit is contained in:
Andriy Leliv
2021-01-06 11:34:21 +02:00
committed by GitHub
parent c13c32a4e7
commit 091ca022fe
10 changed files with 10744 additions and 269 deletions

View File

@@ -97,7 +97,7 @@ export class CircularJSONNotSupportedError extends Error {
}
}
export function dumpBundle(obj: any, format: BundleOutputFormat, dereference?: boolean) {
export function dumpBundle(obj: any, format: BundleOutputFormat, dereference?: boolean): string {
if (format === 'json') {
try {
return JSON.stringify(obj, null, 2);