|
3 | 3 | ## Using Visual Studio Code
|
4 | 4 |
|
5 | 5 | 1. Open the folder in VS Code.
|
6 |
| -2. Run the `Watch` task using `Terminal`, `Run Task`. |
7 |
| -3. Run the `Dev Server` task using `Terminal`, `Run Task`. |
| 6 | +2. Run the `Dev Server` task using `Terminal`, `Run Task`. |
8 | 7 |
|
9 | 8 |
|
10 | 9 | ### Office Online (Edge - Windows 10 / Chrome - Mac)
|
|
35 | 34 |
|
36 | 35 | ## From the command line
|
37 | 36 |
|
38 |
| -### Watch / Build |
39 |
| -* Use `npm run watch` to run build for development, and rebuild automatically when a source file is saved. |
40 |
| -* If you would rather build manually, use `npm run build-dev` to build for development. |
| 37 | +### Build |
41 | 38 | * To build for production, use `npm run build`.
|
42 | 39 |
|
43 | 40 | ### Dev Server
|
44 | 41 | * Use `npm run dev-server` to run the dev-server.
|
45 | 42 |
|
46 | 43 | ### Debugging (Desktop)
|
47 | 44 | * To start debugging, use `npm start desktop -- --app {app}` where `{app}` is `excel`, `powerpoint`, or `word`.
|
48 |
| -* Be sure to build or run watch beforehand. |
49 | 45 | * If the dev-server is not already running, it will run the dev-server in a separate window.
|
50 | 46 | * The add-in will be configured for debugging, and a document will be opened which loads the add-in.
|
51 | 47 | * Once you're done debugging, use `npm stop desktop -- --app {app}` so the add-in is no longer configured for debugging.
|
52 | 48 |
|
53 | 49 | ### Debugging (Office Online)
|
54 | 50 | * To start debugging, use `npm start web`.
|
55 |
| -* Be sure to build or run watch beforehand. |
56 | 51 | * If the dev-server is not already running, it will run the dev-server in a separate window.
|
57 | 52 | * Open the desired Office document in the browser.
|
58 | 53 | * Use `Insert`, `Add-ins` to upload the manifest file. [More info](https://docs.microsoft.com/en-us/office/dev/add-ins/testing/sideload-office-add-ins-for-testing_)
|
|
0 commit comments