npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wavemaker/wm-cordova-cli

v4.0.0

Published

command line tool to easily build a wavemaker mobile project

Downloads

168

Readme

wm-cordova-cli

A command line untility to build mobile apps created using WaveMaker product.

The main goal of wm-cordova-cli is to simplify generation of APK or IPA for WaveMaker developers. wm-cordova-cli combines multiple cordova commands into a single command. First, one has to make sure all the required hardware and software are available and installed. Then execute the command with the appropriate values for arguments.

ANDROID build

Requirements

Command

wm-cordova build android <src_dir> <dest_dir> [additional_arguments]

|                   Argument                   | Description | |--|--| | src_dir | DEFAULT: current working directory. Path to the cordova zip (or) path to the cordova project folder. | |dest_dir|OPTIONAL: Path to the directory where all build files are to be kept.| |--cordovaVersion|OPTIONAL: Cordova cli version to use| |--cordovaAndroidVersion|OPTIONAL: Version of cordova-ios to use| |--aKeyStore|Absolute path of the key store. If keystore is not given then android debug key is used.| |--aStorePassword|Password to key store| |--aKeyAlias|Alias name of the key| |--aKeyPassword|Key Password| |--packageType|DEFAULT: apk'apk' or 'bundle' (for aab) |--buildType|DEFAULT: developmentdevelopment or productionUse ‘production’ with keystore specified.| |--allowHooks|DEFAULT: true this flag can be used to turn on and off cordova hooks functionality.|

Example 1

wm-cordova build android "/path/to/src"

Example 2

wm-cordova build android "/path/to/src" \
--aKeyStore="/path/to/file.keystore" \
--aStorePassword="store_password" \
--aKeyAlias="key_alias_name" \
--aKeyPassword="key" \
--buildType="production"

IOS build

Requirements

NOTE: Before building an app, please make sure that neither iPhone nor iPad is not connected to Mac. This is open issue on cordova-ios.

Command

wm-cordova build ios <src_dir> <dest_dir> [additional_arguments]

|                   Argument                     | Description | |--|--| | src_dir | DEFAULT: current working directory. Path to the cordova zip (or) path to the cordova project folder. | |dest_dir|OPTIONAL: Path to the directory where all build files are to be kept.| |--cordovaVersion|OPTIONAL: Cordova cli version to use| |--cordovaIosVersion|OPTIONAL: Version of cordova-ios to use| |--iCertificate|Absolute path of P12 certificate location| |--iCertificatePassword|Password to unlock the certificate.| |--iProvisioningFile|Absolute path of provisioning file| |--buildType|DEFAULT: developmentdevelopment or production Use ‘production’ with an AppStore distribution certificate.| |--allowHooks|DEFAULT: true this flag can be used to turn on and off cordova hooks functionality.|

Example

wm-cordova build ios "/path/to/src" \
--iCertificate="/path/to/distribution.p12" \
--iCertificatePassword="unlock_password" \
--iProvisioningFile="/path/to/profile.mobileprovision" \
--buildType="production"

Cordova versions used for a build

  1. Based upon the value of 'phonegap-cli' preference value, versions mentioned in the below table are used by default.

| PHONEGAP-CLI | CORDOVA | CORDOVA-ANDROID | CORDOVA-IOS | |--|--|--|--| | cli-9.0.0 | 9.0.0 | 8.0.0 | 5.1.1 | | cli-8.1.1 | 8.1.1 | 7.1.2 | 4.5.5 | | cli-8.0.0 | 8.0.0 | 7.0.0 | 4.5.4 |

  1. In config.xml, the above cordova values can be overridden by setting preferences with the below mentioned names.

    wm-cordova wm-cordova-android wm-cordova-ios

  2. Cordova versions can also be mentioned as command line arguments.

Additional Information

  1. Destination folder path is logged at the start of the build.
  2. Build log files are present at <destination_folder>/output/logs
  3. The artifact built is available at <destination_folder>/output/<platform_type>/. The complete path is printed in log also.

License

MIT License Copyright (c) 2020 WaveMaker