From cc2ccecc469ea4b2fe700877f1f9b54e90645a8e Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:32:18 +0200 Subject: [PATCH] docs: update README --- README.md | 4 ++++ projects/lit-ts/README.md | 10 +++++----- projects/parcel-ts/README.md | 8 ++++---- projects/rollup-ts/README.md | 17 +++++++---------- projects/sveltekit-ts/README.md | 10 +++++----- projects/vitejs-ts/README.md | 10 +++++----- 6 files changed, 30 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 0e51333..6a49169 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ nvm use If the Node version is not installed, `nvm` will state how to install the required version. +Install dependencies by running +```shell +npm install +``` ### Available projects diff --git a/projects/lit-ts/README.md b/projects/lit-ts/README.md index df9257f..71db6cc 100644 --- a/projects/lit-ts/README.md +++ b/projects/lit-ts/README.md @@ -6,13 +6,13 @@ The application is built with [Vite](https://vitejs.dev/). ## Setup -From the project root, run `npm install`. +From the repository root, run `npm install`. For more details, see the [root README](../../README.md#setup). -If you want to use the maxGraph development version (built locally), see the README about maxGraph integration. +If you want to use the maxGraph development version (built locally), see the [root README](../../README.md#maxgraph-dev-version) about maxGraph integration. ## Running the project -Run `npm run dev` and go to http://localhost:5173/ +From the repository root, run `npm run dev -w projects/lit-ts` and go to http://localhost:5173/ -If you want to bundle the application, run `npm run build` and then run `npm run preview` to access to a preview of the -bundle application. +If you want to bundle the application, run `npm run build -w projects/lit-ts` and then run `npm run preview-w projects/lit-ts` +to access to a preview of the bundled application. diff --git a/projects/parcel-ts/README.md b/projects/parcel-ts/README.md index 34982f8..a1cbec6 100644 --- a/projects/parcel-ts/README.md +++ b/projects/parcel-ts/README.md @@ -4,12 +4,12 @@ Parcel v2 is used in this TypeScript project: https://parceljs.org ## Setup -From the project root, run `npm install`. +From the repository root, run `npm install`. For more details, see the [root README](../../README.md#setup). -If you want to use the maxGraph development version (built locally), see the README about maxGraph integration. +If you want to use the maxGraph development version (built locally), see the [root README](../../README.md#maxgraph-dev-version) about maxGraph integration. ## Running the project -Run `npm run dev` and go to http://localhost:1234/ +From the repository root, run `npm run dev -w projects/parcel-ts` and go to http://localhost:1234/ -If you want to bundle the application, run `npm run build`. +If you want to bundle the application, run `npm run build -w projects/parcel-ts`. diff --git a/projects/rollup-ts/README.md b/projects/rollup-ts/README.md index 25f7221..1e8e71b 100644 --- a/projects/rollup-ts/README.md +++ b/projects/rollup-ts/README.md @@ -9,9 +9,9 @@ Adapted from https://github.com/typed-mxgraph/typed-mxgraph-example-bundled-with ### Setup -From the project root, run `npm install`. +From the repository root, run `npm install`. For more details, see the [root README](../../README.md#setup). -If you want to use the maxGraph development version (built locally), see the README about maxGraph integration. +If you want to use the maxGraph development version (built locally), see the [root README](../../README.md#maxgraph-dev-version) about maxGraph integration. ### Running the project @@ -19,11 +19,8 @@ The `public/index.html` file contains a `