Skip to content

Commit 6215326

Browse files
committed
Merge pull request element-hq#1137 from vector-im/rav/update_README
Update README to include `npm install` in react-sdk
2 parents 9289158 + da7e984 commit 6215326

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Getting started
1010
1. Clone the repo: `git clone https://github.com/vector-im/vector-web.git`
1111
1. Switch to the vector directory: `cd vector-web`
1212
1. Install the prerequisites: `npm install`
13+
1. If you are using the `develop` branch of vector, you will probably need to
14+
rebuild one of the dependencies, due to https://github.com/npm/npm/issues/3055:
15+
`(cd node_modules/matrix-react-sdk && npm install)`
1316
1. Start the development builder and a testing server: `npm start`
1417
1. Wait a few seconds for the initial build to finish (the command won't
1518
terminate: it's running a web server for you).
@@ -48,14 +51,13 @@ webserver to actually serve up the app, which is entirely static content.
4851
Development
4952
===========
5053

51-
For simple tweaks, you can work on any of the source files within Vector with the
52-
setup above, and your changes will cause an instant rebuild.
54+
For simple tweaks, you can work on any of the source files within Vector with
55+
the setup above, and your changes will cause an instant rebuild.
5356

54-
However, all serious development on Vector happens on the `develop` branch. This typically
55-
depends on the `develop` snapshot versions of `matrix-react-sdk` and `matrix-js-sdk`
56-
too, which can't be installed automatically due to https://github.com/npm/npm/issues/3055.
57-
To get the right dependencies, check out the `develop` branches of these libraries and
58-
then use `ln -s` to tell Vector about them:
57+
However, much of the functionality in Vector is actually in the
58+
`matrix-react-sdk` and `matrix-js-sdk` modules. It is possible to set these up
59+
in a way that makes it easy to track the `develop` branches in git and to make
60+
local changes without having to manually rebuild each time.
5961

6062
[Be aware that there may be problems with this process under npm version 3.]
6163

0 commit comments

Comments
 (0)