apache / apache/cordova-cli

`platform add` should output version that was installed of the platform

Open
#437 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
967
Forks
344
Avg merge
8h 41m
Merged PRs (30d)
9

Description

# Feature Request

## Motivation Behind Feature
Currently the user does not really see what platform version was installed, only what "version" was pinned and used with `cordova-fetch`:

```
E:\Projects\throwaway\cordovaElectronDevice2 (helloworld@1.0.0)
λ cordova platform add browser
Using cordova-fetch for cordova-browser@^6.0.0
Adding browser project...
Creating Cordova project for cordova-browser:
Path: E:\Projects\throwaway\cordovaElectronDevice2\platforms\browser
Name: HelloCordova
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for browser
Adding cordova-plugin-whitelist to package.json

E:\Projects\throwaway\cordovaElectronDevice2 (helloworld@1.0.0)
λ cordova platform add electron
Using cordova-fetch for cordova-electron@^1.0.0
Adding electron project...
Creating Cordova project for cordova-electron:
Path: E:\Projects\throwaway\cordovaElectronDevice2\platforms\electron
Name: HelloCordova
Installing "cordova-plugin-whitelist" for electron
```

## Feature Description
The output should have an additional line that could read `Installed cordova-electron@1.0.2` or similar.

## Alternatives or Workarounds
`cordova plugin list` or `npm list --depth=0`

Contributor guide

Open the contributing guide

Research direction

Start at the `cordova platform add` command and trace the output around the `cordova-fetch` installation shown in the issue. Confirm where the resolved platform version becomes available, then verify that a successful install reports the installed package and version in addition to the pinned range.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.