Граф коммитов

1058 Коммитов

Автор SHA1 Сообщение Дата
Ian Geoghegan 8177d41123 Read me fix (#474)
* Updated addApp signature

* Message refinement
2017-06-12 16:16:29 -07:00
Bret Johnson 291df4b65f Bumped version numbers, preparing to release an update 2017-06-12 00:38:40 -04:00
Bret Johnson eae70b7fe5 Fix to handle app name specifications with slashes. The is the CLI ... (#471)
change to match the corresponding server change deployed
a couple days back.

Here are details of the issue:
// IIS and Azure web apps have this annoying behavior where %2F (URL encoded slashes) in the URL are URL decoded
// BEFORE the requests reach node. That essentially means there's no good way to encode a "/" in the app name--
// URL encodeing will work when running locally but when running on Azure it gets decoded before express sees it,
// so app names with slashes don't get routed properly. See https://github.com/tjanczuk/iisnode/issues/343 (or other sites
// that complain about the same) for some more info. I explored some IIS config based workarounds, but the previous
// link seems to say they won't work, so I eventually gave up on that.
// Anyway, to workaround this issue, we now allow the client to encode / characters as ~~ (two tildes, URL encoded).
// The CLI now converts / to ~~ if / appears in an app name, before passing that as part of the URL. This code below
// does the encoding. It's hack, but seems like the least bad option here.
// Eventually, this service will go away & we'll all be on Max's new service. That's hosted in docker, no more IIS,
// so this issue should go away then.
2017-06-11 22:21:51 -04:00
Bret Johnson 13092ee68a Updated add colloborator message to make clear that it sends an invite (#470)
email, not adding the collaborator immediately. Also made a few unit test
fixes.
2017-06-11 05:18:59 -04:00
Ian Geoghegan 0d19214b0d Help copy fixes (#468)
* Some copy fixes

* Ownership transfer instructions

* Ownership transfer instructions edit

* Additional edits

* Additional edit highlighting orgs

* Grammar fix

* Language refinement
2017-06-09 12:57:35 -07:00
Sergey Akhalkov f9911c62c5 Improve 'Output directory parameter' info (#467) 2017-06-09 10:56:17 +03:00
Bret Johnson f823cd281a Updated usage screenshot 2017-06-02 21:14:06 -04:00
Bret Johnson 0d0bab83e7 Updated CLI version to 2.0.0-beta as CodePush is part of Mobile Center now!!! 2017-06-02 20:44:14 -04:00
Bret Johnson c44c4351f8 Bumped SDK version number to 2.0.0-beta. We're integrated with Mobile Center now!!! 2017-06-02 20:05:14 -04:00
Ian Geoghegan 199344f855 Adjusted readme (#456)
* Updated commands

* Bumped version

* Undoing version bump
2017-06-02 19:44:24 -04:00
Bret Johnson febec341de Restored behavior where app add, from the CodePush CLI, creates the default Staging and Production deployments. (#455) 2017-06-02 17:02:30 -04:00
Bret Johnson 8303b1f1c1 Fixed to not show this additional error text (#451)
Use \"code-push deployment list\" to view any existing deployments and \"code-push deployment add\" to add deployment(s) to the app

if the app doesn't exist. We only show it now if the deployment doesn't exist.
2017-05-26 17:12:25 -04:00
Max 2b12c5b4fb Bump plugin xml version for CodePushAcquisition (#447) 2017-05-22 14:19:44 +03:00
max-mironov 6fce9a817c Bump plugin xml version for CodePushAcquisition 2017-05-22 04:18:33 -07:00
Bret Johnson 3674b23813 Tweaked a couple usage messages that include windows platform choice (#446) 2017-05-18 17:37:52 -04:00
Bret Johnson af14d95a47 Fixed a couple things so CLI unit tests all pass 2017-05-17 03:25:36 -04:00
Bret Johnson bcb0b7ef3d Added support for "windows" as an OS option for app add (#444) 2017-05-17 00:08:35 -07:00
Bret Johnson b6533949ca Removed the access key options around TTL, since Mobile Center access keys (aka API tokens) never expire (#443) 2017-05-16 23:15:38 -07:00
Bret Johnson 19c6f2442e Proxy to mobile center (#442)
* Removed these features deprecated post Mobile Center integration: (#431)

code-push app transfer
code-push collaborator
code-push session
access key rename / change TTL
showing auth types for whoami

* Added OS and platform arguments for the app add command (#432)

* Updated deployment defaults. Now... (#437)

* "code-push add add" does NOT add any default deployments
* "code-push deployment add" has a --default option to add default deployments
* "code-push release" outputs a more descriptive error if no deployments exists

* Updated CLI text around login/register/link. Also fixed... (#439)

link to go directly to mobile.azure.com, in order to not show the token at the end.

* Added .vscode settings file, to exclude generated bin directories (#440)

* Added back the collabor CLI command since the... (#441)

proxy service now supports it.  It was commented out before, but I just undid that.
2017-05-16 14:01:44 -07:00
max-mironov 86578c8ad5 bump SDK version 2017-04-14 01:07:12 -07:00
max-mironov eea1f527d0 Merge branch 'master' of https://github.com/Microsoft/code-push 2017-03-24 04:46:24 -07:00
Richard Hua 81b1156a21 Remove redundant dependencies (#422)
* Remove base-64

* Remove node-uuid

* Tidy up crypto import
2017-03-23 11:37:45 -07:00
max-mironov 0526f8f4b9 Merge branch 'master' of https://github.com/Microsoft/code-push 2017-03-22 01:51:41 -07:00
Richard Hua 2f55f5f718 Small tweak to fix unit tests (#417) 2017-03-15 12:25:20 -07:00
Richard Hua a8ae0bb447 Reset package.json for development 2017-03-14 16:11:17 -07:00
Richard Hua 234d6880bb Bump package.json for next release 2017-03-13 17:13:26 -07:00
max-mironov 89cbef2e96 Add build type option to release cordova command (#409)
* Improved messages to make intention of creating different apps for different platforms more clear

Due to multiple requests in discord chanel, https://github.com/Microsoft/react-native-code-push/issues/723, https://github.com/Microsoft/react-native-code-push/issues/717

* Add ability to specify build type for Cordova
Also fixes issue https://github.com/Microsoft/code-push/issues/392

* revert changes not related to this PR

* Minor tweak for readme

* Reordered param names for cordova-release command in Readme alphabetically
2017-03-10 00:22:24 -08:00
max-mironov e3b78ee2cc Fixed issue with getting bool values for yargs 6.5.0 (#413)
* Fixed issue with getting bool value for yargs 6.5.0
https://github.com/Microsoft/code-push/issues/412
2017-03-09 23:45:08 -08:00
max-mironov 9d3f7f2fa5 Merge branch 'master' of https://github.com/Microsoft/code-push 2017-03-09 13:41:17 -08:00
max-mironov 5278a96eb7 Improved messages to make intention of creating different apps for di… (#406)
* Improved messages to make intention of creating different apps for different platforms more clear

Due to multiple requests in discord chanel, https://github.com/Microsoft/react-native-code-push/issues/723, https://github.com/Microsoft/react-native-code-push/issues/717

* Minor tweak for readme
2017-03-07 10:26:05 +03:00
max-mironov d46ffdd8aa Minor tweak for readme 2017-03-06 23:25:26 -08:00
max-mironov cbe33b33af Improved messages to make intention of creating different apps for different platforms more clear
Due to multiple requests in discord chanel, https://github.com/Microsoft/react-native-code-push/issues/723, https://github.com/Microsoft/react-native-code-push/issues/717
2017-03-03 04:13:02 -08:00
Sergey Akhalkov 81f5432f45 cli-readme: ranges only works for non pre-release versions (#405)
Due to https://github.com/npm/node-semver#prerelease-tags ranges only works for non pre-release versions.
If you want to update a version with pre-release tags, then you need to write the exact version you want to update (`1.12.3-beta` for example)
2017-02-28 11:28:07 +03:00
Richard Hua d520dcb388 Reset CLI package.json for next release 2017-02-24 17:53:04 -08:00
Richard Hua c44a205c33 Fix ordering of flags for `release-react` in README.md 2017-02-24 17:50:28 -08:00
Richard Hua ec9c8ede4b Bump package.json again due to publishing error 2017-02-24 17:31:14 -08:00
Richard Hua be6a9e3817 Bump package.json for CLI release 2017-02-24 16:52:02 -08:00
max-mironov 840a2a5fda Add ability to promote a specific label (#394)
* Add ability to promote a specific label

* Updated Documentation and log message from CLI

* Modified README
2017-02-24 16:02:10 -08:00
Sergey Akhalkov 5dfefc118c Check that app and deployment exist before releasing an update (#399)
* command-executor: check for app and deployment exist before releasing an update

* Remove catch block

* Add getDeployment() mock so that unit tests work

* Release commands now return rejected promises instead of throwing - do not assert exceptions are thrown during unit tests
2017-02-24 16:01:12 -08:00
max-mironov 1bbf9a159e Make confirmation prompt more severe on app/deployment rm (#402)
* Make the prompt defaults to 'no' if no input is entered
Make the message more severe than it currently for app rm and deployment rm

* Fix upper/lower-case issues

* Make prompt messages consistent
2017-02-23 17:29:28 -08:00
Zachary Kim f23617b902 Allow setting of node binary arguments via NODE_ARGS env var (#395)
Example usage:

`env NODE_ARGS="--max-old-space-size=4096" code-push release-react APP_NAME ios`

I couldn't find anywhere else secondary node processes are being spawned, but happy to add this functionality to those places as well.

Issue #215
2017-02-15 16:16:19 -08:00
max-mironov 25f4fb8b54 Update yargs to 6.5.0 (#360)
* Update yargs to 6.5.0

This shpuld fix issue https://github.com/Microsoft/code-push/issues/339 "Can not perform rollback if deployment name is same as CodePush CLI command #339"

* Update yargs to 6.5.0

Fixed issue when it was not allowed to use additional undocument parameter for some commands
2017-02-13 11:27:58 +03:00
Max P b697f71359 Add anchor for automatic documentation replacement. 2017-02-09 14:12:58 -08:00
Sergey Akhalkov 08a8274ba3 package: update `gradle-to-js` package version to `0.2.5` (#359)
`0.2.5` package version contains fix of following issue:
> parsing issue occurs in case build.gradle file contains several `android` closures
> https://github.com/ninetwozero/gradle-to-js/issues/4

Fix https://github.com/Microsoft/code-push/issues/349
2017-02-09 11:45:36 +03:00
max-mironov 6d13e693ee Readme Docs For CLI Description Flag Incorrect (#387)
Fixed mistype in readme docs, see https://github.com/Microsoft/code-push/issues/351 for details.
2017-02-08 15:52:34 +03:00
Sergey Akhalkov 81716550eb code-push-cli: implement “outputDir” parameter (#382)
“outputDir” parameter is used to specify the path where the assets, JS bundle and sourcemap should be written.
2017-02-08 12:43:45 +03:00
Sergey Akhalkov 5f2f07e2e8 cli_readme: improved “App Management” chapter
To avoid issues like this one https://github.com/Microsoft/cordova-plugin-code-push/issues/189 “App Management” chapter probably should pay attention on the fact, that “using the same app for iOS and Android may cause installation exceptions because the CodePush update package produced for iOS will have different content from the update produced for Android.”. (#373)
2017-01-27 11:01:43 +03:00
Sergey Akhalkov dbd9f24964 command-executor: search for gradle properties across all `gradle.properties` files (#365)
In case if there are both `android/app/gradle.properties` and `android/gradle.properties` exist, 
only the first one is considered.
Improvement for https://github.com/Microsoft/react-native-code-push/issues/660
2017-01-17 23:54:40 +03:00
Sergey Akhalkov bf06e33035 command-executor: fix versionName parsing issue (#358)
Implement workaround for the case when 'build.gradle' file contains several 'android' nodes.
In this case 'buildGradle.android' prop (parsed by 'gradle-to-js' library)
represents array instead of object due to parsing issue in 'g2js.parseFile' method.
2016-12-21 17:35:03 +03:00
Sergey Akhalkov 4f32fd058c debug: fix android device detection (#357)
Replace 'isDeviceAvailable' method with 'getNumberOfAvailableDevices' method,
add new throw statement in case more than 1 attached android device was detected,
because for now there is no ability to specify device for debug
like 'code-push debug android "192.168.121.102:5555"'.
Fix issue https://github.com/Microsoft/code-push/issues/352
2016-12-21 16:58:02 +03:00