|
1 | 1 | # Setup your environment |
2 | 2 |
|
3 | | -The following are instructions for building and running Batch Explorer and the Shared Libraries in a development environment. |
| 3 | +The following are instructions for building and running Batch Explorer in a development environment. |
4 | 4 |
|
5 | 5 | 1. Install dependencies: |
6 | 6 |
|
7 | 7 | ```shell |
8 | | - npm run dev-setup |
9 | 8 | npm install |
10 | | - pip3 install -r python/requirements.txt |
| 9 | + npm run dev-setup |
| 10 | + pip install -r python/requirements.txt |
11 | 11 | ``` |
12 | 12 |
|
13 | | -2. Build the libraries: |
| 13 | +2. Build the repository: |
14 | 14 |
|
15 | 15 | ```shell |
16 | 16 | npm run build |
17 | 17 | ``` |
18 | 18 |
|
19 | | -## Running Batch Shared Libraries Web |
| 19 | +## Running Batch Explorer Desktop Application |
20 | 20 |
|
21 | 21 | ```shell |
22 | | -npm run start:web |
| 22 | +npm run launch:desktop # Open the dev server, Electron app and all packages in watch mode |
23 | 23 | ``` |
24 | 24 |
|
25 | | -## Running Batch Explorer Desktop |
| 25 | +This command will enable hot reload for a better development experience. Simply saving a file will cause the UI to refresh with your changes. |
26 | 26 |
|
27 | | -```shell |
28 | | -npm run dev-server # Start the dev server (in one shell) |
29 | | -npm run dev-electron # Start Electron (in another shell) |
30 | | -``` |
31 | | - |
32 | | -The dev-server and dev-electron support hot reload for a better development experience. Simply saving a file will cause the UI to refresh to your updated changes. |
33 | | - |
34 | | -*Note:* Changes to any files in the node client directory ('src/client') require restarting the application. |
| 27 | +*Note:* Changes to any files in the node client directory ('desktop/src/client') require restarting the application. |
35 | 28 |
|
36 | 29 | Please also take a look at the [coding guidelines](coding-guidelines.md) for this repo for best practices. |
37 | 30 |
|
38 | 31 | ## Editor |
39 | 32 |
|
40 | 33 | If you're using VSCode (recommended) we suggest you use the following extensions: |
41 | 34 |
|
42 | | -* EditorConfig for VS Code (Important) |
| 35 | +* EditorConfig |
43 | 36 | * ESLint |
44 | | -* Debugger for Chrome |
45 | | -
|
46 | | -## Detailed commands |
47 | | -
|
48 | | -**Magic command** (starts the server and electron in dev mode) |
| 37 | +* Prettier |
| 38 | +* Markdownlint |
| 39 | +* Stylelint |
49 | 40 |
|
50 | | -```shell |
51 | | -npm run dev |
52 | | -``` |
53 | | -
|
54 | | -Build project |
55 | | -
|
56 | | -```shell |
57 | | -npm run build |
58 | | -``` |
59 | | -
|
60 | | -Run app |
61 | | -
|
62 | | -```shell |
63 | | -npm run electron |
64 | | -``` |
| 41 | +## Other useful commands |
65 | 42 |
|
66 | | -Run watch (this will build files on save) |
| 43 | +Run everything except for the Electron shell in watch mode: |
67 | 44 |
|
68 | 45 | ```shell |
69 | | -npm run watch |
| 46 | +npm run start:desktop |
70 | 47 | ``` |
71 | 48 |
|
72 | | -Run dev server (this will handle the refresh of files and later should have live reload) |
| 49 | +Run **only** the Electron shell in watch mode*: |
73 | 50 |
|
74 | 51 | ```shell |
75 | | -npm run dev-server |
| 52 | +npm run launch:dev-electron |
76 | 53 | ``` |
77 | 54 |
|
78 | | -Run dev electron (to use the dev server you need to run this) |
| 55 | +Start the experimental web UI in watch mode: |
79 | 56 |
|
80 | 57 | ```shell |
81 | | -npm run dev-electron |
| 58 | +npm run start:web |
82 | 59 | ``` |
83 | | -
|
84 | | -## Working on the Shared Libraries and the Portal Extension |
85 | | -
|
86 | | -The Portal Extension relies on packages provided by the shared libraries. The portal installs the necessary dependencies that are published on a remote registry. If you want to work on the portal in tandem with local, unpublished versions of the shared libraries, you will need to run the following commands: |
87 | | -
|
88 | | -1. Install the Batch Utility CLI: |
89 | | -
|
90 | | - ```shell |
91 | | - npm run dev-setup |
92 | | - ``` |
93 | | -
|
94 | | -2. Configure paths to relevant repos: |
95 | | -
|
96 | | - ```shell |
97 | | - bux configure |
98 | | - ``` |
99 | | -
|
100 | | -3. Run the link command: |
101 | | -
|
102 | | - ```shell |
103 | | - bux link |
104 | | - ``` |
105 | | -
|
106 | | -The Portal Extension will now use the shared libraries directly from this repo. |
0 commit comments