cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Caramba (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13009) cordova prepare unnecessarily edits config.xml and package.json
Date Wed, 21 Mar 2018 20:32:00 GMT

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

Andrey Caramba commented on CB-13009:
-------------------------------------

+100500  I feel hate when I see that my files with all my comments and formatting are changed
unnecessarily and without demand

> cordova prepare unnecessarily edits config.xml and package.json
> ---------------------------------------------------------------
>
>                 Key: CB-13009
>                 URL: https://issues.apache.org/jira/browse/CB-13009
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-cli
>    Affects Versions: 7.0.1
>         Environment: Mac OSX 10.12.5
> Node 8.1.2
> npm 5.0.3
>            Reporter: Christian Tschanz
>            Priority: Minor
>              Labels: tools-next
>
> I crafted my config.xml file by hand (and added comments) to make it more readable and
maintainable. I also removed all '^' or '~' from the versions of the engines/plugins to fix
the version to one specific one (I will manually test new versions and update if possible).
I also removed the '^' from the package.json file it generates.
> When running 'cordova prepare' it will completely re-create the config.xml file and therefore
re-format it. It will also re-add the '^' to all versions. It will also add the '^' to the
versions in the package.json file.
> This is VERY annoying. Previous versions did not behave like this. They only edited the
config.xml if explicitly told to do so. I really, really want to fix the versions to a specific
one and don't want it to always add the '^'. I would also prefer it if it the 'prepare' command
would not re-create the config.xml file as there is no need for that and it kills all formatting
and comments.
> At the moment I hope it respects the 'package-lock' file when installing plugins because
I can't have it install newer versions automatically. Sadly many plugins are not as stable
and well maintained for such an automatic update to work well in large projects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message