You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,15 @@ The app is built using [craco](https://github.com/gsoft-inc/craco) (with the [cr
31
31
32
32
Tests are written and run using the [jest](https://jestjs.io/) framework.
33
33
34
-
The [yarn](https://yarnpkg.com/) package manager is used to manage dependencies and run scripts specified in `package.json` (`build`, `lint`, `test`, etc.).
34
+
The [Bun](https://bun.sh/) runtime and package manager is used to manage dependencies and run scripts specified in `package.json` (`build`, `lint`, `test`, etc.).
35
35
36
36
## Coding style
37
37
38
38
Source code is linted using [ts-standard](https://github.com/standard/ts-standard) (based on [eslint](https://eslint.org/)) and TypeScript is used with [strict type checking compiler options](https://www.typescriptlang.org/tsconfig#Strict_Type_Checking_Options_6173) enabled.
39
39
40
40
Use the following command to identify potential coding style and type annotation violations:
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,8 +236,8 @@ When enabled, the memory footer appears at the bottom of all pages and monitors
236
236
Download the latest release from [github.com/imagingdatacommons/slim/releases](https://github.com/imagingdatacommons/slim/releases) and then run the following commands to install build dependencies and build the app:
237
237
238
238
```none
239
-
yarn install
240
-
PUBLIC_URL=/ yarn build
239
+
bun install
240
+
PUBLIC_URL=/ bun run build
241
241
```
242
242
243
243
Once the app has been built, the content of the `build` folder can be directly served by a static web server at the location specified by `PUBLIC_URL` (in this case at `/`).
@@ -374,57 +374,57 @@ For the time being, the legacy implicit grand type has to be used.
374
374
To install requirements and run the app for local development, run the following commands:
375
375
376
376
```none
377
-
yarn install
378
-
yarn start
377
+
bun install
378
+
bun run start
379
379
```
380
380
381
381
This will serve the app via a development server at [http://localhost:3000](http://localhost:3000) using the default `local` configuration.
382
382
383
383
The configuration can be specified using the `REACT_APP_CONFIG` environment variable, which can be set either in the `.env` file or directly in the command line:
384
384
385
385
```none
386
-
REACT_APP_CONFIG=local yarn start
386
+
REACT_APP_CONFIG=local bun run start
387
387
```
388
388
389
389
## Linking Slim to a Local dicom-microscopy-viewer Library
390
390
391
-
If you are developing features or fixing bugs that require changes in both Slim and the underlying [`dicom-microscopy-viewer`](https://github.com/ImagingDataCommons/dicom-microscopy-viewer) library, you can use `yarn link` to connect your local Slim project to a local clone of `dicom-microscopy-viewer`. This allows Slim to immediately use the latest local changes from the library without publishing to npm.
391
+
If you are developing features or fixing bugs that require changes in both Slim and the underlying [`dicom-microscopy-viewer`](https://github.com/ImagingDataCommons/dicom-microscopy-viewer) library, you can use `bun link` to connect your local Slim project to a local clone of `dicom-microscopy-viewer`. This allows Slim to immediately use the latest local changes from the library without publishing to npm.
392
392
393
393
### Steps
394
394
395
395
1.**Clone dicom-microscopy-viewer**
396
396
If you haven't already, clone the `dicom-microscopy-viewer` repository to your machine.
397
397
398
-
2.**Set up yarn link in dicom-microscopy-viewer**
398
+
2.**Set up bun link in dicom-microscopy-viewer**
399
399
In the root directory of your local `dicom-microscopy-viewer` repository, run:
400
400
```sh
401
-
yarn link
401
+
bun link
402
402
```
403
403
404
404
3.**Link dicom-microscopy-viewer in Slim**
405
405
In the root directory of your Slim project, run:
406
406
```sh
407
-
yarn link dicom-microscopy-viewer
407
+
bun link dicom-microscopy-viewer
408
408
```
409
409
410
410
4.**Enable live rebuilding in dicom-microscopy-viewer**
411
411
To automatically rebuild `dicom-microscopy-viewer` when you make changes, run the following command in the `dicom-microscopy-viewer` directory:
412
412
```sh
413
-
yarn webpack:dynamic-import:watch
413
+
bun run webpack:dynamic-import:watch
414
414
```
415
415
This will watch for file changes and rebuild the library, so Slim can immediately use the updated code.
416
416
417
417
5.**Run Slim as usual**
418
418
In the Slim directory, start the development server:
419
419
```sh
420
-
yarn start
420
+
bun run start
421
421
```
422
422
Slim will now use your locally linked version of `dicom-microscopy-viewer`.
423
423
424
424
### Notes
425
425
426
-
- If you want to unlink and return to the npm-published version, run `yarn unlink dicom-microscopy-viewer` and `yarn install --force` in the Slim directory.
427
-
- Make sure both projects use compatible Node and Yarn versions to avoid dependency issues.
426
+
- If you want to unlink and return to the npm-published version, run `bun unlink dicom-microscopy-viewer` and `bun install` in the Slim directory.
427
+
- Make sure both projects use compatible Bun versions to avoid dependency issues.
0 commit comments