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

@salesforce/lwc-dev-mobile

v2.3.0

Published

Salesforce CLI plugin for mobile extensions to Local Development

Downloads

393

Readme

codecov MIT license npm (scoped) npm (scoped) Downloads

Salesforce CLI Mobile Extensions

The Salesforce CLI Mobile Extensions allow you to extend the local preview capabilities of the Local Development Server plug-in. You can see live previews of your Lightning Web Components on virtual mobile devices for iOS and Android.

Note: This feature is in beta, and may contain significant problems, undergo major changes, or be discontinued. If you encounter any problems, or want to request an enhancement, please open a GitHub Issue.

Setup

System Requirements

  • Developer Hub-enabled org
  • Most recent stable version of Chrome, Firefox, Safari, or Edge web browser
  • Supported Windows versions: Windows 10 or later
  • Supported Mac versions: macOS 10.14.4 or later
  • Salesforce CLI

To develop Lightning web components, use your favorite code editor. We recommend using Visual Studio Code because its Salesforce Extensions for VS Code provide powerful features for development on Lightning Platform.

Installation

  1. Open a new terminal window and run the following command to install the Mobile Extensions:

     sfdx plugins:install @salesforce/lwc-dev-mobile
        
  2. Check for updates to the plug-in:

     sfdx plugins:update

Running

Prerequisites

The Mobile Extensions plug-in can run only in the context of an SFDX project. See the installation instructions of the Local Development plug-in for all SFDX project setup requirements.

Usage

The Mobile Extensions plug-in supports two commands.

Setup

Setup helps you set up virtual mobile devices—iOS simulators and Android emulators—in your local environment.

sfdx force:lightning:local:setup -p <mobile platform>
  • -p, --platform=platform Specify platform (iOS or Android)

For example:

$ sfdx force:lightning:local:setup -p iOS

Preview

Preview extends the local preview capabilities of the Local Development Server plug-in. With Mobile Extensions, you can use this plug-in to preview your Lightning Web Components on virtual mobile devices.

sfdx force:lightning:lwc:preview -n <component name> -p <mobile platform>] [-t <target>]
  • -n, --componentname=componentname The LWC component name
  • -p, --platform=platform Specify platform (iOS or Android)
  • -t, --target=target Specify name of target simulator or emulator

For example:

$ sfdx force:lightning:lwc:preview -p Android -t LWCEmulator -n HelloWorldLwcComponent

Visual Studio Code

We also provide a Visual Studio Code extension that exposes the Preview functionality through the IDE. That functionality is currently developed as part of the Salesforce Extensions for VS Code.

Plugin Development

If you intend to develop or test drive the plug-in locally, this section will help you set up your development environment.

Checkout and Build Locally

After you clone or fork this repo, run the following commands in the root folder of your local repo:

$ yarn install && yarn build
$ yarn test 

Install the Plug-in

From the top-level folder of the plug-in:

$ sfdx plugins:link .

Uninstall the Plug-in

From the top-level folder of the plug-in:

$ sfdx plugins:uninstall .