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: Improve CLI output #261

Merged
merged 10 commits into from
Oct 13, 2022
Merged

feat: Improve CLI output #261

merged 10 commits into from
Oct 13, 2022

Conversation

petarvujovic98
Copy link
Contributor

Transform CLI tools to TypeScript
Add CLI tsconfig file and update build script
Fix ESLint types resolution
Change argument parser from yargs to commander
Add signale logger
Add verbose flag
Add verbose flag recognition to near-bindgen-exporter

Addresses #227

Transform CLI tools to TypeScript
Add CLI tsconfig file and update build script
Fix ESLint types resolution
Change argument parser from yargs to commander
Add signale logger
Add verbose flag
Add verbose flag recognition to near-bindgen-exporter
@petarvujovic98
Copy link
Contributor Author

@volovyks @ailisp Unit tests failed because of hooks failing. I don't know what to do about this as sometimes it happens on my laptop as well, it isn't really predictable either. So this might be something we want to look into.

@@ -0,0 +1,24 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need 2 tsconfig files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@volovyks Because the target folder for the CLI output is different, we could however just leave it under the lib folder and use it from there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's experiment with it in a separate PR. Maybe it's a good idea to move /cli to /src. Build artifacts should live separately.

cli/post-install.js Show resolved Hide resolved
cli/package.json Outdated Show resolved Hide resolved
cli/src/cli/cli.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

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

@petarvujovic98 Looks good overall!

Remove comments
Restore builder.c file
Update build:cli script to change cli.js to be executable
Move CLI files to lib/cli
Move builder to builder folder
Change scripts for installation and fix paths in cli.js
Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

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

Thank you, @petarvujovic98! Great improvement.

Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

Great enhancement to DevX! Thank you @petarvujovic98

@ailisp ailisp merged commit 8f676ae into near:develop Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants