cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12425) Auto-create a package.json if it doesn't exist yet
Date Fri, 24 Mar 2017 20:39:41 GMT

    [ https://issues.apache.org/jira/browse/CB-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15941097#comment-15941097
] 

ASF GitHub Bot commented on CB-12425:
-------------------------------------

Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/521#discussion_r107994895
  
    --- Diff: cordova-lib/src/cordova/restore-util.js ---
    @@ -63,7 +64,27 @@ function installPlatformsFromConfigXML(platforms, opts) {
                 // Combining arrays and checking duplicates.
                 comboArray = pkgJsonPlatforms.slice();
             }
    +
             engines = cfg.getEngines(projectHome);
    +
    +        if(fs.existsSync(pkgJsonPath)) {
    +            pkgJson = require(pkgJsonPath);
    +        // TODO: Eventually refactor out to pacakge manager module.
    --- End diff --
    
    oo you can keep it. Would be good practice to include the issue number in the todo. 


> Auto-create a package.json if it doesn't exist yet
> --------------------------------------------------
>
>                 Key: CB-12425
>                 URL: https://issues.apache.org/jira/browse/CB-12425
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaLib
>    Affects Versions: cordova-7
>            Reporter: Audrey So
>            Assignee: Audrey So
>              Labels: cordova-7.0.0
>
> When restoring during cordova prepare, auto-create a package.json if it doesn't exist
yet.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message