Skip to content

Commit

Permalink
docs: edit compilation instructions
Browse files Browse the repository at this point in the history
avoid git clean -fd
  • Loading branch information
ManonMarchand committed Mar 18, 2024
1 parent 54199ce commit 7c27227
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,19 @@ npm run build
- Make sure you have your **wasm-pack** version updated. To do so:

```bash
cargo install [email protected]
git clean -fd
cargo install wasm-pack --version ~0.12
```

- Make sure you are using the rust **nightly** toolchain
- Remove your `src/core/Cargo.lock` file and `src/core/target` directory before recompiling with `npm run build` as it is possible you are in a bad compilation state.
- Remove your `src/core/Cargo.lock` file and `src/core/target` directory -- this ensures that you'd escape any bad compilation state:

It will generate the aladin lite compiled code into a `dist/` directory located at the root of the repository. This directory contains two javascript file. `aladin.umd.cjs` follows the UMD module export convention and it is the one you can use for your project.
```bash
git clean -di
```

- then recompile with `npm run build`.

It will generate the aladin lite compiled code into a `dist/` directory located at the root of the repository. This directory contains two javascript files. `aladin.umd.cjs` follows the UMD module export convention and it is the one you can use for your project.

To run the examples, you can start a localhost server with the following command:

Expand Down

0 comments on commit 7c27227

Please sign in to comment.