Skip to content

Commit c7115e9

Browse files
authored
Update README.rst (#390)
instructions how to use local js-slang in local cadet-frontend
1 parent dc9b477 commit c7115e9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ This command makes the documentation available in folder
8989
doc/jsdoc/libraries/
9090
``
9191

92+
Using your js-slang in local Source Academy
93+
-------------------------------------------
94+
95+
A common issue when developing modifications to js-slang is how to test it using your own local frontend. Assume that you have built your own cadet-frontend locally, here is how you can make it use your own js-slang, instead of the one that the Source Academy team has deployed to npm:
96+
97+
.. code-block::
98+
99+
$ cd js-slang
100+
$ yarn build
101+
$ cp -r dist ../cadet-frontend/node_modules/js-slang
102+
103+
Then start frontend and the new js-slang will be used.

0 commit comments

Comments
 (0)