-
Notifications
You must be signed in to change notification settings - Fork 987
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
refactor!: drop platform binaries #1180
Conversation
728558b
to
178e2d0
Compare
Codecov Report
@@ Coverage Diff @@
## master #1180 +/- ##
==========================================
+ Coverage 74.95% 75.03% +0.07%
==========================================
Files 14 13 -1
Lines 1705 1650 -55
==========================================
- Hits 1278 1238 -40
+ Misses 427 412 -15
Continue to review full report at Codecov.
|
d2e5d83
to
1806649
Compare
b4eab8e
to
d219894
Compare
d219894
to
2246228
Compare
- This file referenced a binary that hasnt existed since 2012. (apache@acc8b34)
a07d895
to
8d29122
Compare
Other binaries & scripts that will need reviewing... Maybe another PR?
I believe some of these could be removed and/or merged into some JS file(s) and exported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this happening. I left a few comments for now. Full review pending!
e26f64b
to
ae71d97
Compare
ae71d97
to
381ed72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also remove hooks/
if we remove uncrustify.
The following bins are used outside of
These are not used outside of cordova-ios and could be removed in this PR:
|
Co-authored-by: Raphael von der Grün <[email protected]>
Yes the pre-commit hook can be removed. I didn't notice it and it does not get runned. |
@raphinesse I will excluded Alternative message will need to be decided and maybe we could keep the script in some folder for handy scripts but not release it with the packages. |
I think the script and log message can both be removed without replacement. It's a python script that is supposed to convert Projects to the Cordova 2.3 format:
But it might indeed be wise to do that in a separate PR and decide how to handle that whole if statement that is seemingly handling a very old legacy case. |
Yet another thing I noticed: we should be able to remove all remaining
Should we do that as well, then? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Always happy when we can delete a few kLoCs 💪
Don't forget to check my last two comments, but feel free to merge as-is if you want.
Since we already removed it from the Android platform and released it, maybe it is safe to remove it from here as well? I wonder if anyone has any concerns, even though it was already removed in Android... If we remove it and later it is seen as an issue, we can easily add back as a patch release. |
I'd remove the bat files. That's my 2¢ |
OK, the three last bat files were removed:
|
* test(create): remove create & build binary usage * refactor!: remove create binaries * refactor!: remove build binaries * refactor: update platform * chore: cleanup update platform error message * refactor!: remove update binaries * refactor!: remove check_reqs binaries & usage * refactor!: remove clean binaries * refactor!: remove run binaries * refactor!: remove test binaries * This file referenced a binary that hasnt existed since 2012. (apache@acc8b34) * refactor!: remove log binaries * refactor: cleanup version binaries * refactor!: remove uncrustify binary & config * refactor!: remove binary help methods for build & run * refactor!: remove version.bat binary * fix: get realpathSync of os tmp dir * refactor: cleanup verify create & build methods * refactor(create.spec): use expectAsync toBeResolved * refactor!: remove uncrustify pre-commit hook * refactor!: remove list-emulator-build-targets binary * refactor!: remove list-started-emulators binary * refactor!: remove start-emulator binary * chore: cleanup eslint ignore * refactor!: remove bat files Co-authored-by: Raphael von der Grün <[email protected]>
Motivation and Context
This PR:
version
binary.create.spec.js
to use JS methods for creating and building.Description
create
binariescreate.spec.js
build
binariescreate.spec.js
update
binariestest
binariescheck_req
binariesclean
binarieslog
binariesrun
binariesversion
binariesuncrustify
binary & configlist-emulator-build-targets
binarylist-started-emulators
binarystart-emulator
binaryTesting
npm t
10.0.0 ([email protected])
cordova create
cordova platform add ../cordova-ios-7.0.0-dev.tgz
cordova platform update ../cordova-ios-7.0.0-dev.tgz
cordova prepare ios
cordova build ios
cordova info
cordova requirements
cordova platform
cordova run ios
cordova plugin add cordova-plugin-device
Checklist