Skip to content

Commit 6718438

Browse files
update readme; fix esbuild config; update package-lock
1 parent 78e993d commit 6718438

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

molstar-extension/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ cp node_modules/molstar-volseg/build/molstar.mjs .
168168

169169

170170

171-
7. Install `http-server` NPM module
171+
7. Install `http-server` NPM module globally:
172172
```sh
173-
npm install http-server
173+
npm install http-server -g
174174
```
175175

176176
8. Serve the `index.html` webpage using `http-server`. From `molstar-volseg-viewer` directory run:

molstar-extension/esbuild.config.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ const staticFilesPluginOptions = {
1414
dest: './lib',
1515
}
1616

17-
const buildLib = await esbuild.context({
18-
entryPoints: ['src/**/*.ts'],
19-
bundle: false,
20-
minify: false,
21-
sourcemap: true,
22-
outdir: './lib',
23-
platform: 'browser',
24-
tsconfig: 'tsconfig.json',
25-
plugins: [copyStaticFiles(staticFilesPluginOptions)]
26-
})
17+
// const buildLib = await esbuild.context({
18+
// entryPoints: ['src/**/*.ts'],
19+
// bundle: false,
20+
// minify: false,
21+
// sourcemap: true,
22+
// outdir: './lib',
23+
// platform: 'browser',
24+
// tsconfig: 'tsconfig.json',
25+
// plugins: [copyStaticFiles(staticFilesPluginOptions)]
26+
// })
2727

2828
const buildCSS = await esbuild.context({
2929
entryPoints: ['src/viewer/main.css'],
@@ -73,8 +73,8 @@ if (productionMode) {
7373
await buildTS.rebuild();
7474
buildTS.dispose();
7575

76-
await buildLib.rebuild();
77-
buildLib.dispose();
76+
// await buildLib.rebuild();
77+
// buildLib.dispose();
7878
}
7979
else {
8080

molstar-extension/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)