-
Notifications
You must be signed in to change notification settings - Fork 101
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
New ringo-admin #435
Merged
Merged
New ringo-admin #435
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ringo-admin install is now capable to install packages by url (tar/zip archives or git repositories)
it requires a confirmation before creating the application directory, and resolves app skeleton dependencies
… both <owner>/<repo> and full https urls
zip archive without a base path returned ".", while tar archives returned an empty string
both create and install commands now support `help <command>`, `<command> -h` and `<command> --help`
they are still logged into <ringo-home>.ringo-admin.log, but don't pollute the test console output
…into the local package.json
…these will be logged into .ringo-admin.log anyway)
git+file is only used to distinguish between archive and repository file urls
…used composeUrl method
botic
approved these changes
Jan 12, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great for 3.x!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#434 Improves ringo-admin
install
command:<github owner>/<github repo>
)http(s)
scheme only)git
,git+ssh
,ssh
,git+http(s)
andgit+file
schemes plus GitHub URLs (this is usinggit
via Java'sProcessBuilder
, so naturally git has to be installed and contained inPATH
)tree-ish
option as URL hash (i.e.https://github.com/ringo/ringojs#ringo-admin
) to clone/checkout a specific branch, tag or commit. Repositories are copied into the packages directory without.git
directory.-n
/--no-deps
is specifiedpackages
directory beneath the current one, the closest parent directory containing apackage.json
file, or in the "global" ringo packages directory (-g
/--global
)-s/--save
)The functionality of the
create
command hasn't changed, but the app skeleton has been modernized to usestick
andreinhardt
packages (see #359). Note that it's currently using stick v1.0 branch resp. reinhardt's es6 branch, which should probably change once these branches are released.Both commands log fairly verbose into
<ringo-home>/.ringo-admin.log
.Overall ringo-admin has a cleaner structure now, which should ease adding additional commands in the future
Please note that this has only been tested on my local mac. There are some unit tests covering the most basic (and important) methods, but i'm still trying to find a sane way of producing integration tests.