Skip to content

Cordova support, Code-push App Name , Update dependencies #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

francescochiapella
Copy link

@francescochiapella francescochiapella commented Oct 25, 2017

  • Cordova support: added the code-push release of a Cordova application, added "framework" argument in order to specify, "cordova" or "reactnative", default "reactnative" for backward compatibility. Implemented test of the new feature.

  • App Name: added arguments in order set the name of the registered code-push app, if not specified the behaviour is the same as before for backward compatibility. Implemented test of the new feature.

  • Update dependencies: updated the dependencies and refactored the "test" script in order to avoid deprecated message. For the "coverage" script I switched from isparta to nyc because isparta is no longer maintained.

  • Below the new "usage" image for the README.md :

screen shot 2017-10-25 at 17 48 18

@codecov-io
Copy link

codecov-io commented Oct 25, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@2df02ef). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master     #5   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?      4           
  Lines             ?     24           
  Branches          ?      0           
=======================================
  Hits              ?     24           
  Misses            ?      0           
  Partials          ?      0
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø)
src/steps/release-react.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2df02ef...6eae229. Read the comment docs.

Copy link
Contributor

@davidebianchi davidebianchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the PR, it looks interesting!
Here some small fix before merging

Can you update the README with the new cli commands? Thanks

@@ -1,5 +1,5 @@
import codepushLogin from "./steps/login";
import codepushReleaseReact from "./steps/release-react";
import codePushRelease from "./steps/release-react";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name should be modified, maybe in release.js, because it is also for cordova release

platform,
`-d "${argv.deploymentName}"`,
`--des "${argv.description}"`,
`--dev ${argv.development}`,
(!argv.framework || argv.framework === "reactnative") ? `--dev ${argv.development}` : "",
`-m ${argv.mandatory}`,
targetBinary(argv.targetBinary)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be transform as the line of the development option, to mantain uniformity of the codebase

it("return the app name", () => {
const ret = appName("nameOfPackage", "platform");
it("return the app name [CASE: no android or ios code-push app name specified]", () => {
const argv = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an empty object, so it should close on the same line

@@ -41,13 +41,30 @@ const argv = yargs
describe: "Check if you want your push is mandatory",
type: "boolean"
})
.option("na", {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na option is not an auto-explanatory alias, so it could be only nameAndroid without alias? The same is for ni and nameIos

@davidebianchi
Copy link
Contributor

davidebianchi commented Oct 27, 2017

I need some time to test if all works correctly. As soon as I have some time, I will do the check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants