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.
Motivation and Context
The goals of this refactoring are the following:
build their
cordova.js
during their build (or creation) process.This would make the JS build using coho obsolete.
Description
The build process now lives under
build-tools
(wastasks
). It doesnot depend on Grunt anymore but is written in plain Node.js.
The original Grunt interface for building (as used by coho) was
preserved and is implemented in
Gruntfile.js
using the new buildsystem. The
platformName
option and support for getting platform pathsfrom the
cordova-platforms
key inpackage.json
have been removedfrom the Grunt interface, but neither of those are used in coho.
The logic that is specific to the test build has been extracted from
the rest of the build. It now lives in
test/build.js
and is runautomatically during
npm test
.The following dependencies have been added:
Testing
I have taken extra care to preserve the exact format of the built file.
This means that the correctness of the refactoring can be verified by
simply diffing the build artifacts in
pkg
created with and withoutthis change.
Checklist