cordova-cli
cordova-cli copied to clipboard
[8.1.2] Better `--verbose` output
Take this example from cordova prepare ios --verbose:
λ cordova prepare ios --verbose
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform ios
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in ios platform
No differences found between plugins added to project and installed in ios platform. Continuing...
Generating platform-specific config.xml from defaults for iOS at E:\Projects\throwaway\x4wTest\platforms\ios\HelloCordova\config.xml
Merging project's config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms\ios\platform_www] to platforms\ios\www
Current launch storyboard undefined
Not changing launch storyboard setting in info plist.
Wrote out iOS Bundle Identifier "io.cordova.hellocordova" and iOS Bundle Version "1.0.0" to E:\Projects\throwaway\x4wTest\platforms\ios\HelloCordova\HelloCordova-Info.plistNo need to update build settings for launch storyboard support.
iOS Product Name has not changed (still "HelloCordova")
This app does not have icons defined
This app does not have splash screens defined
Updating launch storyboard images at platforms\ios\HelloCordova\Images.xcassets\LaunchStoryboard.imageset\
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
Although it seems it is pretty well described in the output what the prepare script is doing, it is pretty hard to differentiate the general stuff from what the actual prepare script does.
Possible solutions:
- Output
Starting to prepare iOS project: - Add new lines before and after
prepareoutput - Add other way to structure output (e.g. prepend output with
prepare.jsand similar)