Skip to content

Normalize NPM packages #2558

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

Closed
shlomiassaf opened this issue Aug 8, 2016 · 5 comments
Closed

Normalize NPM packages #2558

shlomiassaf opened this issue Aug 8, 2016 · 5 comments
Labels

Comments

@shlomiassaf
Copy link

Currently, the NativeScript NPM ecosystem is scattered with no convention guidelines.

NativeScript packages can come in flavours and can be easily categorised.
For example:

  • Plugins
  • Adapters
  • Adapter plugins
  • Dev (Toolchain / build process hooks)

And more...

Here are some real world examples of packages:

  • nativescript-socketio - Plugin
  • nativescript-angular - Adapter
  • nativescript-ng2-magic - Adapter plugin (angular)
  • nativescript-dev-sass - Toolchain
  • nativescript-dev-typescript - Toolchain

The list is long and growing...

I believe its important to organise most of the packages under a domain of some sort, similar to the way it is done by the Angular 2 team.

Some samples:

@nativescript/core ==> nativescript
@nativescript/angular/core ==> nativescript-angular
@nativescript/angular/magic ==> nativescript-ng2-magic
@nativescript/dev/typescript ==> nativescript-dev-typescript

Transition can be done in parallel where a new version is published into old and new name.

Of course other ways to categorise are welcome, this is just an idea.

For example, separate official telerik modules by having @telerik/nativescript or @tns/core

I think it will greatly help making some sense.

If top contributors such as @NathanWalker , @NathanaelA , @vakrilov , @triniwiz and many others will lead the way it will get adoption.

@triniwiz
Copy link
Member

triniwiz commented Aug 8, 2016

I love this idea 👍 👍 don't forget @bradmartin

@NathanaelA

This comment was marked as abuse.

@shlomiassaf
Copy link
Author

@NathanaelA I Agree, it's not straight forward.

Having a plugin repository is great but its not the whole solution.
One of the issues is import statements, I would like it to be organized.

Yes, not the end of the world, but important and will help new comers.

I see NativeScript as Node.JS for mobile and if NodeJS has NPM eventually NativeScript should have it as well... maybe its a possible solution, maybe not.

@enchev enchev added the feature label Aug 9, 2016
@atanasovg
Copy link
Contributor

@shlomiassaf I am closing this issue in favor of a similar one with more votes in it: #4041

@lock
Copy link

lock bot commented Aug 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants