WORKAROUND SOLUTION for local grunt issue in cordova-js #174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Platforms affected
All
What does this PR do?
Resolves the following issue:
If I would try
coho prepare-platform-release-branch
orcoho copy-js
it stops with an error like this:If I would try
npm install
incordova-js
it does not resolve the issue.coho
seems to cleannode_modules
before attemptinggrunt compile:android
.Ugly workaround was to commit node_modules in my local (personal) master branch of cordova-js (NOT in the apache repo) before running
coho prepare-platform-release-branch
orcoho copy-js
.The update proposed here is a workaround solution that automatically does
npm install
incordova-js
to solve the grunt issue described here.Moving forward:
I would like to see at least one other member try this change before integrating into master. I have not tried it with more than one platform at a time (not sure if I would favor updating more than one platform at a time anyway).
I think a much nicer solution would be for us to move on to a more modern solution such as WebPack, microbundle, or maybe even Gulp instead of Grunt.
What testing has been done on this change?
Both
./cordova-coho/coho copy-js -r android
and./cordova-coho/coho prepare-platform-release-branch --version 8.0.0-dev -r android
work as expected for me.(I generally use a local clone of the
cordova-coho
repo forcoho
tasks.)Checklist
Reported an issue in the JIRA databaseCommit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.Added automated test coverage as appropriate for this change.