Skip to content

Implement plugin init command #586

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
Fatme opened this issue Jun 22, 2015 · 3 comments
Closed

Implement plugin init command #586

Fatme opened this issue Jun 22, 2015 · 3 comments

Comments

@Fatme
Copy link
Contributor

Fatme commented Jun 22, 2015

Implement plugin init command

Background

Developing of NativeScript plugins may be a daunting task, especially for newcomers.
On the other hand, advanced users want to boost their productivity.
To satisty their needs, we need to provide an easy to use, interactive way to create NativeScript plugins.
To grasp the plugins infrastructure, read the plugins docs.

Tasks

  • Create plugin init command in the CLI
  • {N} plugins are npm packages, therefore, interactively call out npm init to create the package.json and the plugin structure sceleton.
  • Ask interactively for {N}-specific data to fill in the package.json. Make sure to have sane defaults for {N} modules and runtimes as dependencies, i.e. compatible version with the current CLI.
  • Ask for optional configuration for Android development
    • Ask to create or copy existing .aar file.
    • Ask to copy existing .jar files
    • Ask to copy existing or create a dummy include.gradle file
  • Ask for optional configuration for iOS development
    • Ask to create a dummy or copy existing Info.plist
    • Ask to copy optional native iOS dynamic frameworks
    • Ask to create or copy an optional Podfile
  • Ask for optional platform-specific .js files. See UI Plugins.
  • Write accompanying documentation. Make sure both HTML and console help works and is integrated with other help topics.
  • Write accompanying unit test.
@Fatme Fatme added the feature label Jun 22, 2015
@Fatme Fatme self-assigned this Jun 22, 2015
@Fatme Fatme added this to the 1.2.0 milestone Jun 22, 2015
@ligaz ligaz modified the milestones: 1.3.0, 1.2.0 Jul 15, 2015
@teobugslayer teobugslayer modified the milestones: 1.4.0, 1.3.0 Aug 31, 2015
@ligaz ligaz modified the milestones: 1.4.0 (Under review), 1.5.0 Sep 17, 2015
@Mitko-Kerezov Mitko-Kerezov removed this from the 1.5.0 (under consideration) milestone Oct 5, 2015
@teobugslayer teobugslayer added this to the 1.6.0 (Under consideration) milestone Nov 23, 2015
@teobugslayer teobugslayer assigned teobugslayer and unassigned Fatme Jan 8, 2016
@teobugslayer teobugslayer modified the milestones: 1.7.0, 1.6.0 Feb 3, 2016
@vchimev
Copy link

vchimev commented Feb 15, 2016

It would be beneficial if the command also asks to create optional sample/demo app and unit tests. CC: @dtopuzov

@Plamen5kov
Copy link
Contributor

Because with the 2.0 release the android plugins will need to contain only .aar files, cli can help with the generation of those files as is already proposed.

@enchev enchev added the plugins label Jun 8, 2016
@pkoleva
Copy link
Contributor

pkoleva commented Jan 26, 2017

Closed in favor of 1945

@pkoleva pkoleva closed this as completed Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants