@@ -40,7 +40,7 @@ In order to work with IDOM's source code you'll need to install:
4040
4141- git _
4242
43- - Yarn _
43+ - npm _
4444
4545You'll begin by copy the source from GitHub onto your computer using Git:
4646
@@ -53,23 +53,23 @@ At this point you should be able to run this install command to:
5353
5454- Install an editable version of the Python code
5555
56- - Transpile the Javascript and copy it to `` src/py/idom/static ``
56+ - Download, build, and install Javascript dependencies
5757
5858- Install some pre-commit hooks for Git
5959
6060.. code-block :: bash
6161
6262 pip install -e . -r requirements.txt && pre-commit install
6363
64- If you modify a Javascript library you'll need to re-run this command:
64+ Since we're using native ES modules for our Javascript, you should usually be able to
65+ refresh your browser page to see your latest changes to the client. However if you
66+ modify any dependencies you can run standard ``npm `` commands to install them or
67+ simply run the following to re-evaluate the ``package.json ``:
6568
6669.. code-block :: bash
6770
6871 pip install -e .
6972
70- This will transpile the Javascript again and copy it to the
71- ``src/py/idom/static `` folder.
72-
7373
7474 Running The Test
7575----------------
9797
9898.. code-block :: bash
9999
100- pytest src/py/ tests
100+ pytest src/tests
101101
102102 If you prefer to run the tests using a headless browser:
103103
104104.. code-block :: bash
105105
106- pytest src/py/ tests --headless
106+ pytest src/tests --headless
107107
108108.. Links
109109.. =====
@@ -112,8 +112,8 @@ If you prefer to run the tests using a headless browser:
112112.. _ChromeDriver : https://chromedriver.chromium.org/downloads
113113.. _git : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
114114.. _Git Bash : https://gitforwindows.org/
115+ .. _npm : https://www.npmjs.com/get-npm
115116.. _PyPI : https://pypi.org/project/idom
116117.. _pip : https://pypi.org/project/pip/
117118.. _PyTest : pytest <https://docs.pytest.org
118119.. _Selenium : https://www.seleniumhq.org/
119- .. _Yarn : https://yarnpkg.com/lang/en/docs/install
0 commit comments