lhasa-ligand-builder 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -8
- package/dist/assets/lhasa.js +1 -1
- package/dist/assets/lhasa.wasm +0 -0
- package/dist/lhasa-ligand-builder.css +2 -1
- package/dist/lhasa-ligand-builder.js +28105 -33158
- package/dist/{Lhasa.d.ts → src/Lhasa.d.ts} +6 -3
- package/dist/src/about_popup.d.ts +9 -0
- package/dist/{bansu_integration.d.ts → src/bansu_integration.d.ts} +3 -1
- package/dist/src/qed_property_infobox.d.ts +14 -0
- package/dist/{types.d.ts → src/types.d.ts} +15 -8
- package/dist/src/vite-env.d.ts +4 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +5 -5
- package/dist/qed_property_infobox.d.ts +0 -7
- package/dist/vite-env.d.ts +0 -1
- /package/dist/{LhasaEmbedder.d.ts → src/LhasaEmbedder.d.ts} +0 -0
- /package/dist/{inchikey_database_parse.d.ts → src/inchikey_database_parse.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{lib.d.ts → src/lib.d.ts} +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -126,9 +126,9 @@ import 'lhasa-ligand-builder/style.css'
|
|
|
126
126
|
|
|
127
127
|
## Building from source (alternative)
|
|
128
128
|
|
|
129
|
-
You can also build everything from source yourself.
|
|
129
|
+
You can also build everything from source yourself, using the `build_wasm.sh` script found in this repo.
|
|
130
130
|
|
|
131
|
-
Lhasa's C++ sources are a part of [Coot](https://github.com/pemsley/coot) and
|
|
131
|
+
Lhasa's C++ sources are a part of [Coot](https://github.com/pemsley/coot) and the C++ WebAssembly module needs to be compiled first.
|
|
132
132
|
|
|
133
133
|
NOTE: All build scripts are Unix scripts. On Windows, you may need WSL.
|
|
134
134
|
|
|
@@ -140,14 +140,25 @@ NOTE: All build scripts are Unix scripts. On Windows, you may need WSL.
|
|
|
140
140
|
* meson
|
|
141
141
|
* curl, tar, etc.
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
Conveniently, now there is a build script: `build_wasm.sh`.
|
|
144
|
+
It clones the [Coot](https://github.com/pemsley/coot) repo and builds the sources found at `lhasa/` and `layla/`.
|
|
144
145
|
|
|
145
|
-
|
|
146
|
+
You can just simply run
|
|
147
|
+
```bash
|
|
148
|
+
./build_wasm.sh
|
|
149
|
+
```
|
|
150
|
+
and it will do everything for you, including downloading and building all C++ dependencies.
|
|
151
|
+
For more options, run:
|
|
152
|
+
```bash
|
|
153
|
+
./build_wasm.sh --help
|
|
154
|
+
```
|
|
155
|
+
By default, the script will output artifacts to `wasm_build/outputs` (This is configurable with environment variables).
|
|
146
156
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
Then, after the build finishes, you can run:
|
|
158
|
+
```bash
|
|
159
|
+
./build_wasm.sh --install
|
|
160
|
+
```
|
|
161
|
+
in order to copy the freshly generated `lhasa.js` and `lhasa.wasm` to `LhasaReact/public` (and `lhasa.d.ts` to `LhasaReact/src/types.d.ts`)
|
|
151
162
|
|
|
152
163
|
### Running LhasaReact locally
|
|
153
164
|
|