Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/app-bridge

Package Overview
Dependencies
Maintainers
10
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/app-bridge

[![Build Status](https://travis-ci.com/Shopify/app-bridge.svg?token=RBRyvqQyN525bnfz7J8p&branch=master)](https://travis-ci.com/Shopify/app-bridge) [![codecov](https://codecov.io/gh/Shopify/app-bridge/branch/master/graph/badge.svg?token=nZ21m39Dr6)](https:

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78K
decreased by-15.14%
Maintainers
10
Weekly downloads
 
Created
Source

App Bridge

Build Status codecov

The App Bridge enables Apps on Shopify to access native Shopify features across different platforms.

Use App Bridge in a project

yarn add @shopify/app-bridge

Set up a client

Import the client library from the app-bridge package and provide configuration:

import createApp, {getShopOrigin} from '@shopify/app-bridge';

const app = createApp({
  apiKey: 'my api key from partner dashboard',
  shopOrigin: getShopOrigin(),
});

Use actions

A list of available actions can be found in the actions source folder.

Development

Build Scripts

  • yarn build build the files into CommonJS into the lib and ES6 inside thelib-esm folder with source map
  • yarn start build a development version of the libraries, and run the test app inside test
  • yarn watch build a development version of the libraries and automatically rebuild when files have changed
  • yarn clean remove the lib and lib-esm folders
  • yarn lint run the linter
  • yarn check run typescript checking

Test Scripts

  • yarn test run all tests using jest
  • yarn test:watch run all tests in watch mode and auto-run on changes
  • yarn test:coverage run all tests and generate coverage report

Prettier config

To enable automatic prettier formatting copy or link the pre-commit script to .git/hooks/pre-commit and make sure it's executable, e.g.:

ln -s -f ../../scripts/pre-commit .git/hooks/pre-commit

FAQs

Package last updated on 05 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc