You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-17Lines changed: 1 addition & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,4 @@
1
-
# CodePush
2
-
3
-
> This "fork" is compatible with NativeScript
4
-
5
-
CodePush is a cloud service that enables Cordova, React Native and NativeScript developers to deploy mobile app updates directly to their users' devices.
6
-
It works by acting as a central repository that developers can publish updates to (JS, HTML, CSS and images),
7
-
and that apps can query for updates from (using provided client SDKs for [Cordova](https://github.com/Microsoft/cordova-plugin-code-push), [React Native](https://github.com/Microsoft/react-native-code-push) and [NativeScript](https://github.com/EddyVerbruggen/nativescript-code-push)).
8
-
9
-
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.
1
+
# NativeScript CodePush
10
2
11
3
This repo includes the [management CLI](/cli) and [Node.js management SDK](/sdk), which allows you to manage and automate the needs of your apps.
12
4
To get started using CodePush for NativeScript, refer to our [CodePush plugin docs](https://github.com/EddyVerbruggen/nativescript-code-push),
@@ -47,11 +39,3 @@ npm publish
47
39
To run all tests, run `gulp test` script from the root of the project.
48
40
49
41
To test just one of the projects (e.g. cli or sdk), run `gulp test-cli` or `gulp test-sdk`
50
-
51
-
### Coding Conventions
52
-
53
-
* Use double quotes for strings
54
-
* Use four space tabs
55
-
* Use `camelCase` for local variables and imported modules, `PascalCase` for types, and `dash-case` for file names
56
-
57
-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
thrownewError("Unable to find or read \"package.json\" in the CWD. The \"release-nativescript\" command must be executed in a NativeScript project folder.");
1470
+
thrownewError("Unable to find or read \"package.json\" in the CWD. The \"release\" command must be executed in a NativeScript project folder.");
.command("login","Authenticate in order to begin managing your apps",(yargs: yargs.Argv)=>{
327
328
isValidCommandCategory=true;
328
329
isValidCommand=true;
329
330
yargs.usage(USAGE_PREFIX+" login [options]")
330
331
.demand(/*count*/0,/*max*/1)//set 'max' to one to allow usage of serverUrl undocument parameter for testing
331
-
.example("login","Logs in to the Mobile Center server")
332
+
.example("login","Logs in to the server")
332
333
.example("login --accessKey mykey","Logs in on behalf of the user who owns and created the access key \"mykey\"")
333
334
.example("login --proxy http://someproxy.com:455","Logs in with the specified proxy url")
334
-
.option("accessKey",{alias: "key",default: null,demand: false,description: "Access key to authenticate against the Mobile Center server with, instead of providing your username and password credentials",type: "string"})
335
+
.option("accessKey",{alias: "key",default: null,demand: false,description: "Access key to authenticate against the server with, instead of providing your username and password credentials",type: "string"})
335
336
.option("proxy",{default: null,demand: false,description: "URL of the proxy server to use",type: "string"})
336
337
.option("noProxy",{default: false,demand: false,description: "Bypass the system-wide proxy settings",type: "boolean"})
.demand(/*count*/3,/*max*/3)// Require exactly three non-option arguments.
397
+
.demand(3, 3) // Require exactly three non-option arguments.
396
398
.example("release MyApp app.js \"*\"", "Releases the \"app.js\" file to the \"MyApp\" app's \"Staging\" deployment, targeting any binary version using the \"*\" wildcard range syntax.")
397
399
.example("release MyApp ./platforms/ios/www 1.0.3 -d Production -k ~/.ssh/codepush_rsa", "Releases the \"./platforms/ios/www\" folder and all its contents to the \"MyApp\" app's \"Production\" deployment, targeting only the 1.0.3 binary version and signed with the \"codepush_rsa\" private key")
398
400
.example("release MyApp ./platforms/ios/www 1.0.3 -d Production -r 20", "Releases the \"./platforms/ios/www\" folder and all its contents to the \"MyApp\" app's \"Production\" deployment, targeting the 1.0.3 binary version and rolling out to about 20% of the users")
.demand(/*count*/2,/*max*/2)// Require exactly two non-option arguments
414
+
.demand(2, 2) // Require exactly two non-option arguments
413
415
.example("release-cordova MyApp ios", "Releases the Cordova iOS project in the current working directory to the \"MyApp\" app's \"Staging\" deployment")
414
416
.example("release-cordova MyApp android -d Production", "Releases the Cordova Android project in the current working directory to the \"MyApp\" app's \"Production\" deployment")
.demand(/*count*/2,/*max*/2)// Require exactly two non-option arguments
433
+
.demand(2, 2) // Require exactly two non-option arguments
432
434
.example("release-react MyApp ios", "Releases the React Native iOS project in the current working directory to the \"MyApp\" app's \"Staging\" deployment")
433
435
.example("release-react MyApp android -d Production -k ~/.ssh/codepush_rsa", "Releases the React Native Android project in the current working directory to the \"MyApp\" app's \"Production\" deployment, signed with the \"codepush_rsa\" private key")
434
436
.example("release-react MyApp windows --dev", "Releases the development bundle of the React Native Windows project in the current working directory to the \"MyApp\" app's \"Staging\" deployment")
.demand(/*count*/2,/*max*/2)// Require exactly two non-option arguments
459
-
.example("release-nativescript MyApp ios","Releases the NativeScript iOS project in the current working directory to the \"MyApp\" app's \"Staging\" deployment")
460
-
.example("release-nativescript MyApp android -d Production","Releases the NativeScript Android project in the current working directory to the \"MyApp\" app's \"Production\" deployment")
462
+
.example("release MyApp ios","Releases the NativeScript iOS project in the current working directory to the \"MyApp\" app's \"Staging\" deployment")
463
+
.example("release MyApp android -d Production","Releases the NativeScript Android project in the current working directory to the \"MyApp\" app's \"Production\" deployment")
461
464
.option("build",{alias: "b",default: false,demand: false,description: "Invoke \"tns build\" instead of assuming there's aleady a build waiting to be pushed",type: "boolean"})
462
465
.option("isReleaseBuildType",{alias: "rb",default: false,demand: false,description: "If \"build\" option is true specifies whether to perform a release build",type: "boolean"})
463
466
.option("keystorePath",{alias: "kp",default: null,demand: false,description: "If \"isReleaseBuildType\" option is true and \"platform\" is \"android\" specifies the path to the .keystore file",type: "string"})
@@ -590,7 +593,7 @@ function createCommand(): cli.ICommand {
590
593
591
594
appAddCommand.appName=arg2;
592
595
appAddCommand.os=arg3;
593
-
appAddCommand.platform=arg4;
596
+
appAddCommand.platform=arg4||"nativescript";// default to NativeScript, so no longer required to pass in
594
597
}
595
598
break;
596
599
@@ -820,6 +823,7 @@ function createCommand(): cli.ICommand {
820
823
registerCommand.noProxy=argv["noProxy"];
821
824
break;
822
825
826
+
/*
823
827
case "release":
824
828
if (arg1 && arg2 && arg3) {
825
829
cmd = { type: cli.CommandType.release };
@@ -889,8 +893,9 @@ function createCommand(): cli.ICommand {
0 commit comments