microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
source/playground/README.md
19lines · modecode
| 1 | # Playground |
| 2 | |
| 3 | This is a simple web site built using the Monaco editor and the qsharp npm package. |
| 4 | |
| 5 | ## Building the Playground Locally |
| 6 | |
| 7 | 1. Build the entire repo by running `./build.py` in the root directory. |
| 8 | If you only want to build the functionality necessary to run the playground, you can use `python ./build.py --wasm --npm --play`. |
| 9 | 2. Then make `./playground` your current directory and run `npm start` to start the web server. |
| 10 | 3. Copy the URL that will be printed to console and open it in a browser to use the playground. |
| 11 | |
| 12 | ## Building the Playground Locally in Watch Mode |
| 13 | |
| 14 | 1. Build the entire repo by running `./build.py` in the root directory. |
| 15 | If you only want to build the functionality necessary to run the playground, you can use `python ./build.py --wasm --npm --play`. |
| 16 | 2. Run `node watch.mjs` at the root of the repo. |
| 17 | 3. Copy the URL that will be printed to the console and open it in a browser to use the playground. |
| 18 | |
| 19 | Any time you make changes to any of the source files, the changes will be automatically compiled. Refresh the page in the browser to reload the playground with your changes. |
| 20 | |