GitHub user jasongin opened a pull request:
https://github.com/apache/cordova-lib/pull/429
Add FileUpdater module to cordova-common
The new FileUpdater module contains a few functions that enable optimized
file copies by comparing timestamps. These functions are primarily
intended to be used by each platform's prepare operation to avoid
redundantly copying files that haven't changed since the last build, thus
greatly speeding up build times after the first build. But the usfulness
isn't necessarily limited to the prepare operation; the functions could
be used for any Cordova file copy operations that benefit from the same
optimization.
In this initial change, the FileUpdater isn't used yet anywhere. Look for
follow-up changes in other repos which make use of the FileUpdater from
platforms' prepare operations, and a CLI change that enables the
timestamp-based optimization via a new --incremental flag.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jasongin/cordova-lib master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-lib/pull/429.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #429
----
commit 542dd2d57d94829869a1cddbe0ff7b04ed4517df
Author: Jason Ginchereau <[email protected]>
Date: 2016-04-16T02:27:01Z
Add FileUpdater module to cordova-common
The new FileUpdater module contains a few functions that enable optimized
file copies by comparing timestamps. These functions are primarily
intended to be used by each platform's prepare operation to avoid
redundantly copying files that haven't changed since the last build, thus
greatly speeding up build times after the first build. But the usfulness
isn't necessarily limited to the prepare operation; the functions could
be used for any Cordova file copy operations that benefit from the same
optimization.
In this initial change, the FileUpdater isn't used yet anywhere. Look for
follow-up changes in other repos which make use of the FileUpdater from
platforms' prepare operations, and a CLI change that enables the
timestamp-based optimization via a new --incremental flag.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]