René's URL Explorer Experiment


Title: Implement extensibility model for CLI by rosen-vladimirov · Pull Request #2724 · NativeScript/nativescript-cli · GitHub

Open Graph Title: Implement extensibility model for CLI by rosen-vladimirov · Pull Request #2724 · NativeScript/nativescript-cli

X Title: Implement extensibility model for CLI by rosen-vladimirov · Pull Request #2724 · NativeScript/nativescript-cli

Description: Implement extensibilty of CLI that allows anyone to add packages that add new functionality to NativeScript CLI. The packages are installed in a specific directory, so they are persisted through CLI's updates. The directory where extensions are installed contains a package.json and each extension is npm package installed there. The extensions can be maintained in two different ways: navigate to the directory where extensions are installed and use npm for install/uninstall/update of packages. use CLI's commands to update them: tns extension install , tns extension uninstall , tns extension Implement extensibilityService that executes all operations and expose it to public API. In {N} CLI the extensions are loaded in the entry point, before parsing command line arguments. This way extensions can add new commands. In Fusion, after CLI is required as a library, the extensibilityService.loadExtensions method should be called. It returns array of Promises - one for each installed extension. Add help for the new commands, but do not link the new commands in other commands help for the moment. Add unit tests for the new service. Update PublicAPI.md with information about new methods that can be called. Also remove the TypeScript part of the Usage sections - they are just confusing people. Keep only ES6 JavaScript examples. NOTE: A detailed guide how to create extension will be added to the repository later.

Open Graph Description: Implement extensibilty of CLI that allows anyone to add packages that add new functionality to NativeScript CLI. The packages are installed in a specific directory, so they are persisted through CL...

X Description: Implement extensibilty of CLI that allows anyone to add packages that add new functionality to NativeScript CLI. The packages are installed in a specific directory, so they are persisted through CL...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/2724

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e3d93124-e609-cb12-6b66-867d1ee316e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F9A:158DF1:62A382:8264C8:6B01A1B3
html-safe-noncebd164aa1e63184b5a426dc73c5be168cf161fda2fe45f7669e55c72fb35e52b4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjlBOjE1OERGMTo2MkEzODI6ODI2NEM4OjZCMDFBMUIzIiwidmlzaXRvcl9pZCI6Ijc5Mzc4MTI1NTk0MzkxNzYxMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3cbda574ee597929a37d26149805c22ce9410eb477e5f3be1743053ef2deeab6
hovercard-subject-tagpull_request:116662668
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/2724/files
twitter:imagehttps://avatars.githubusercontent.com/u/8351653?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8351653?s=400&v=4
og:image:altImplement extensibilty of CLI that allows anyone to add packages that add new functionality to NativeScript CLI. The packages are installed in a specific directory, so they are persisted through CL...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/pull/2724/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F2724%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F2724%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/2724/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/2724/files
Reloadhttps://github.com/NativeScript/nativescript-cli/pull/2724/files
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests38 (38)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
rosen-vladimirovhttps://github.com/rosen-vladimirov
releasehttps://github.com/NativeScript/nativescript-cli/tree/release
vladimirov/extensibility-model-newhttps://github.com/NativeScript/nativescript-cli/tree/vladimirov/extensibility-model-new
Conversation 19 https://github.com/NativeScript/nativescript-cli/pull/2724
Commits 1 https://github.com/NativeScript/nativescript-cli/pull/2724/commits
Checks 0 https://github.com/NativeScript/nativescript-cli/pull/2724/checks
Files changed https://github.com/NativeScript/nativescript-cli/pull/2724/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/2724/files
Implement extensibility model for CLI https://github.com/NativeScript/nativescript-cli/pull/2724/files#top
Show all changes 1 commit https://github.com/NativeScript/nativescript-cli/pull/2724/files
d075b48 Implement extensibility model for CLI rosen-vladimirov Apr 19, 2017 https://github.com/NativeScript/nativescript-cli/pull/2724/commits/d075b48ee2eb8ae20ec45b669750528e04d686ae
Clear filters https://github.com/NativeScript/nativescript-cli/pull/2724/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/2724/files
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/2724/files
PublicAPI.md https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
extension-install.md https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-1cf4db16db9d501870114f43cb9eb0017d46e8fe531139ff725348172845e248
extension-uninstall.md https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-261f35b3192ad7849bcd2e9efb2256c2a077e129a11533c9ca686fa848ba0d31
extension.md https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-a5893deaa6b144d58b880fdbb303a2d9a592979fe74e824ffe0da06c6aa7e605
bootstrap.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-359198637d61ef2f720ea4bafa8777ea98ea51be2762a13f83e15d83c84b33fb
install-extension.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-60e0dda5665e7f87a6639edd5f704431b63c9de78530cfccc763bb0880498263
list-extensions.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-279901e70cf91699a9199c8e9b6ff97ef8b22067f9cae1b6fef702c3fcca5c29
uninstall-extension.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-60c2c0770fc86cfad3eeed34500e26b06a6d9d907df98b6ed59c03db350fc97f
extensibility.d.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-b773587bf5ee36a97bd265f985ebcf002c249a9835f11ced0d9808c3cd9793b0
platform.d.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-ea1285160ba5398fff1862baed2ffba749cd6fc48a3f6860213a98cba2d26a5f
require.d.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-b7734c8e05ccb21a92c8a71ed92f51c20f5bcd687237cb66e309b8e3b82b4752
nativescript-cli.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-bf3a2693b046385821bab5aae868197910aae5d357688c493203363ff8e1765f
extensibility-service.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-d3d407310f9c264c2e1881b42c84bf8e1585ae4be7d8b9c8c4c34bfd4af976eb
require-service.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-4e364014c2fc30bc363dcc660f14ef2d4772c25146bd571cdfa1bc879317ee9d
nativescript-cli-lib.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-a0f32c9d1f07170e8b81c6c2028942a9d83bcf2f6ff1eee5d544e9cad37eb094
extensibility-service.ts https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-a183365bac498e3b1fe20b175710a88aa15030c78fe3035d9b3a5c440ae2daa8
PublicAPI.mdhttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/PublicAPI.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-454e9068acb5154f222c4a99860091d7c4a6f9953776d0aa95aa48723110d091
docs/man_pages/general/extension-install.mdhttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-1cf4db16db9d501870114f43cb9eb0017d46e8fe531139ff725348172845e248
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/docs/man_pages/general/extension-install.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
docs/man_pages/general/extension-uninstall.mdhttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-261f35b3192ad7849bcd2e9efb2256c2a077e129a11533c9ca686fa848ba0d31
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/docs/man_pages/general/extension-uninstall.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
docs/man_pages/general/extension.mdhttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-a5893deaa6b144d58b880fdbb303a2d9a592979fe74e824ffe0da06c6aa7e605
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/docs/man_pages/general/extension.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
lib/bootstrap.tshttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-359198637d61ef2f720ea4bafa8777ea98ea51be2762a13f83e15d83c84b33fb
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/lib/bootstrap.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
https://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-359198637d61ef2f720ea4bafa8777ea98ea51be2762a13f83e15d83c84b33fb
lib/commands/extensibility/install-extension.tshttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-60e0dda5665e7f87a6639edd5f704431b63c9de78530cfccc763bb0880498263
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/lib/commands/extensibility/install-extension.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
lib/commands/extensibility/list-extensions.tshttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-279901e70cf91699a9199c8e9b6ff97ef8b22067f9cae1b6fef702c3fcca5c29
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/lib/commands/extensibility/list-extensions.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
lib/commands/extensibility/uninstall-extension.tshttps://github.com/NativeScript/nativescript-cli/pull/2724/files#diff-60c2c0770fc86cfad3eeed34500e26b06a6d9d907df98b6ed59c03db350fc97f
View file https://github.com/NativeScript/nativescript-cli/blob/d075b48ee2eb8ae20ec45b669750528e04d686ae/lib/commands/extensibility/uninstall-extension.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/nativescript-cli/pull/2724/{{ revealButtonHref }}
Please reload this pagehttps://github.com/NativeScript/nativescript-cli/pull/2724/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.