Skip to content

Commit

Permalink
strong reminded to cleanup package-lock.json & node_modules upon bran…
Browse files Browse the repository at this point in the history
…ch switches
  • Loading branch information
landryb committed Nov 12, 2024
1 parent 434cf60 commit cbc6fdb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/developer/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,19 @@ Next, to change the default theme you have to open the ``localConfig.json`` and
}
}
}
Managing the branches
---------------------

When developing a feature or upgrading a local installation, one often switches branches from ``master`` to other stable branches.

in all cases, it is **strongly** advised to run the following when switching branches:

.. code-block:: shell
git checkout <branch>
git submodule update
rm -Rf package-lock.json node_modules/ MapStore2/node_modules # clean up
npm install
otherwise you might run into conflicts between various version of the javascript libraries

0 comments on commit cbc6fdb

Please sign in to comment.