A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
Перейти к файлу
cuitianze bbc9a04b07 Update README-cn.md (#561)
fix typo
2018-03-23 16:25:07 +03:00
.github Update ISSUE_TEMPLATE.md 2016-10-05 16:23:40 -07:00
.vscode Proxy to mobile center (#442) 2017-05-16 14:01:44 -07:00
cli Update README-cn.md (#561) 2018-03-23 16:25:07 +03:00
definitions Add self-sign bundles support (#492) 2017-09-13 17:56:22 +03:00
gulp added gulp task to clean cli and sdk 2015-12-03 11:37:05 -08:00
sdk [Acquisition SDK] Add status.code check for zero value (#550) 2017-12-27 17:19:25 +03:00
.gitignore .gitignore updated 2017-07-19 14:31:23 +03:00
Gulpfile.js Snapshot initial scaffold 2015-09-30 14:18:53 -07:00
LICENSE.md rename all to CodePush 2015-10-13 17:51:26 -07:00
README.md Added App Center Banner 2017-11-17 13:19:58 -08:00
package-lock.json Update superagent version to fix DoS zip attack (#543) 2017-12-08 10:07:30 +03:00
package.json Add hash utilities 2016-08-17 13:22:01 -07:00
tsconfig.json Snapshot initial scaffold 2015-09-30 14:18:53 -07:00
tsd.json Remove redundant dependencies (#422) 2017-03-23 11:37:45 -07:00

README.md

appcenterbanner

CodePush

CodePush is a cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users' devices. It works by acting as a central repository that developers can publish updates to (JS, HTML, CSS and images), and that apps can query for updates from (using provided client SDKs for Cordova and React Native). This allows you to have a more deterministic and direct engagement model with your userbase, when addressing bugs and/or adding small features that don't require you to re-build a binary and re-distribute it through the respective app stores.

This repo includes the management CLI and Node.js management SDK, which allows you to manage and automate the needs of your Cordova and React Native apps. To get started using CodePush, refer to our documentation, otherwise, read the following steps if you'd like to build/contribute to the project from source.

Dev Setup

  • Install Node.js
  • Install Git
  • Install Gulp: npm install -g gulp
  • Clone the Repository: git clone https://github.com/Microsoft/code-push.git

Building

  • Run npm install from the root of the repository.
  • Run gulp install to install the NPM dependencies of each module within the project.
  • Run gulp link to link CLI and SDK for local development. It is advisable to do this step if you are making changes to the SDK and want the CLI to pick those changes.
  • Run gulp build to build all of the modules. To build just one of the modules (e.g. cli or sdk), run gulp build-cli or gulp build-sdk.

Running Tests

To run all tests, run gulp test script from the root of the project.

To test just one of the projects (e.g. cli or sdk), run gulp test-cli or gulp test-sdk

Coding Conventions

  • Use double quotes for strings
  • Use four space tabs
  • Use camelCase for local variables and imported modules, PascalCase for types, and dash-case for file names

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.