Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): New cli to bundle the assets into cotar file. #2311

Merged
merged 8 commits into from
Jul 7, 2022

Conversation

Wentao-Kuang
Copy link
Contributor

No description provided.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner July 7, 2022 02:37
files.sort((a, b) => a.localeCompare(b));
logger.info({ output: outputTar, files: files.length }, 'Tar:Create');

for (const file of files) await tarBuilder.write(file, await fsa.read(file));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file name might need to be shortened, what does the tar archive look like?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, do we need to be short as assets/fonts/... or just fonts/...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. By doing this. We also can move the fonts.json to root directory in cotar file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just leave the json file as is, and we can just update the server to point at the right spot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was in fonts/fonts.json after build. Then we move it to fonts.json in the cotar. Shall we still keep it in the fonts/font.json?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this bundling logic should replicate the excat file system we should change it in the filesystem if we want it changed!

@lgtm-com
Copy link

lgtm-com bot commented Jul 7, 2022

This pull request introduces 1 alert when merging fd9efcc into 8be654c - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

blacha
blacha previously approved these changes Jul 7, 2022
@kodiakhq kodiakhq bot merged commit d632301 into master Jul 7, 2022
@kodiakhq kodiakhq bot deleted the feat/cotar-cli branch July 7, 2022 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants