Code Monkey home page Code Monkey logo

js-miniapp's Introduction

npm version CircleCI codecov Code Style: Google License: MIT

Mini App JavaScript SDK.

Mini App SDK for JavaScript.

This Readme targets the developers of this SDK and the Sample App project. If you wish to use the Mini App JavaScript SDK in your own Mini App, see the JS SDK Documentation and the Sample Mini App source code instead.

Setup

This is a mono-repo which uses Yarn Workspaces, so you must have Yarn installed. On Mac, run brew install yarn to install the global version of yarn.

The repo is split into three packages:

  • js-miniapp-sdk: the JavaScript SDK which is is implemented by each individual Mini App.
  • js-miniapp-sample: a sample Mini App which utlizes the MiniApp JavaScript SDK.
  • js-miniapp-bridge: the JavaScript Bridge which is implemented by the Android and iOS and native SDKs.

Getting Started

  1. Run yarn install.
  2. You can now run the NPM scripts for each workspace as follows: yarn sdk SCRIPT_NAME, yarn sample SCRIPT_NAME, or yarn bridge SCRIPT_NAME.

SDK Scripts

  • yarn sdk check
  • yarn sdk clean
  • yarn sdk compile
  • yarn sdk buildSdk
  • yarn sdk fix
  • yarn sdk test

Continuous Integration and Deployment

CircleCI is used for building and testing the project for every pull request. It is also used for publishing the JavaScript SDK.

SDK Release

The following describes the steps performed by CI when releasing a new version of the SDK (js-miniapp-sdk).

  1. A Git tag is pushed to repo which is in the format vX.X.X and triggers the CI to start.
  2. Build project, run tests, linting, etc.
  3. Pause for user verification of release.
  4. If approved, publish the JS SDK to NPM.
  5. Publish documentation to the Github Pages site.
  6. Publish a release to Github Releases page and attach a JavaScript bundle of the SDK (miniapp.bundle.js).

JavaScript Bridge Deployment

The JavaScript bridge (js-miniapp-bridge) will be deployed to the js-bridge-android and js-bridge-ios branches when changes are merged to master. These branches are then imported as Git Submodules in the Android and iOS Mini App SDK repos.

Sample App Deployment

The sample app (js-miniapp-sample) will be deployed to the gh-pages branch when changes are merged to master. This can be viewed here.

js-miniapp's People

Contributors

corycaywood avatar minh-rakuten avatar nitish-a-jain avatar rleojoseph avatar dependabot[bot] avatar climbatize avatar laubengaier avatar munir-rakuten avatar khairul-alam-licon avatar abhijit-majumder avatar raje-sh avatar xavimajoral avatar gopi-karmakar avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.