cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevengill <>
Subject [GitHub] cordova-lib pull request: CB-8965 Prevent cli from copying cordova...
Date Thu, 25 Jun 2015 23:06:48 GMT
Github user stevengill commented on a diff in the pull request:
    --- Diff: cordova-lib/src/cordova/platform.js ---
    @@ -161,8 +161,17 @@ function addHelper(cmd, hooksRunner, projectRoot, targets, opts)
                         return superspawn.spawn(bin, args, copts);
                     }).then(function() {
    -                    copy_cordova_js(projectRoot, platform);
    -                    copy_cordovajs_src(projectRoot, platform, platDetails.libDir);
    +                    var platform_www = path.join(projectRoot, 'platforms', platform,
    +                    // only want to copy cordova_js once, when the platform is added
    +                    if (!fs.existsSync(path.join(platform_www, 'cordova.js'))) {
    --- End diff --
    You don't need this check. These functions only get run once when the platform gets added.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message