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

cordova-mas-cli

v1.2.0

Published

Continuous integration utility for CA APIM Cordova Mobile SDK applications

Downloads

11

Readme

CLI Utility for Mobile SDK for Cordova

The command line tool to build and manage Mobile SDK for Cordova based applications.

Mobile SDK for Cordova allows for building native MAS enabled mobile applications using HTML, CSS and JavaScript.

This tool helps with Mobile SDK for Cordova plugin integration as well as management of multi-platform Mobile SDK for Cordova based applications.

Installation

Install the command line tool using the npm utility of Node.js. The CLI tool will automatically be downloaded by the npm utility.

On Windows (Cygwin Or Git Bash):

    $npm install -g cordova-mas-cli

On Mac OS X and Linux:

    $sudo npm install -g cordova-mas-cli

Review Prerequisites

Before you use the CLI Utility for Mobile SDK for Cordova, you must do the following Prerequisites

Supported Versions

  • Mobile SDK for Cordova : 1.9.00
  • Cordova : 8.0.0 or later
  • Cocoapods : 1.4.0 or later
  • XCode : 9.3.1 or later
  • Android Studio: 3.1.1 or later
  • Node.js : 8.11.1 or later

Forging and preparing a new Mobile SDK for Cordova project

This simple example demonstrates how cordova-mas-cli can be used to create a myApp project with the storage template and run it for iOS platform.

    mas forge -i myApp
    cd myApp
    mas prepare storage   
    
    // ----> cordova-mas-cli ends its role here
    // Using cordova to build and run

    cordova requirements ios    
    cordova build ios --verbose
    cordova run ios

cordova-mas-cli Quick Reference

mas forge command

This command creates a new Cordova Project in the current directory with specified name and adds Platform (iOS/Android) based on the options given in the command.

Usage: forge [options]

Synopsis

 mas forge [options] <NAME> 

 Create a MAS project 

	 NAME ......................... The name of your project directory. 

Options:

-i, --ios                Add platform iOS
-a, --android            Add platform Android
-p, --package <package>  Specify the bundle ID/application ID for your app (Reverse-domain-style package name - used in <widget id>)
-h, --help               output usage information

mas prepare command

This command adds the Mobile SDK for Cordova plugins based on the specified template and prepares the project with the file path specified. It should be executed from inside a valid Cordova project.

Usage: prepare [options] [template]

Synopsis

 mas prepare [TEMPLATE] 

 Prepare a MAS project 

	 TEMPLATE ..................... Starter named templates (ex: core, storage, identitymanagement, connecta)
					If TEMPLATE is not provided 'core' will be used by default

Options:

-p, --path <path>          Path to the application files directory to be used to prepare the project with. The given path root should contain index.html at least. If this command is run on Cygwin, use Windows style. For example, use 'C:' instead of '/cygdrive/c'
-h, --help                 output usage information

mas purge command

This command clears the cordova-mas-cli logs.

Usage: purge [options]

Synopsis

 mas purge

 Clear logs 

Options:

-h, --help  output usage information

Docs

How You Can Contribute

This utility is an open source project and contributors are needed to keep this project moving forward. Contributions are welcome and much appreciated. To learn more, see the Contribution Guidelines.

Communication

  • Have general questions or need help?, use Stack Overflow. (Tag 'massdk')
  • Find a bug?, open an issue with the steps to reproduce it.
  • Request a feature or have an idea?, open an issue.

License

Copyright (c) 2016 CA. All rights reserved.

This software may be modified and distributed under the terms of the MIT license. See the LICENSE file for details.