Skip to content

Commit 81a1502

Browse files
npm ignore; esbuild config update; new scripts
1 parent b748cea commit 81a1502

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

molstar-extension/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.tsbuildinfo
2+
*.js.map

molstar-extension/esbuild.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const
99

1010
console.log(`${ productionMode ? 'production' : 'development' } build`);
1111

12-
const staticFilesPluginOptions = {
13-
src: './src',
14-
dest: './lib',
15-
}
12+
// const staticFilesPluginOptions = {
13+
// src: './src',
14+
// dest: './lib',
15+
// }
1616

1717
// const buildLib = await esbuild.context({
1818
// entryPoints: ['src/**/*.ts'],

molstar-extension/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"bundle": "npm run init && node ./esbuild.config.js",
1919
"build": "npm run bundle -- production",
2020
"build-site": "npm run bundle -- production && mkdir ./site && cp ./build/* ./site/.",
21-
"start": "npm run bundle -- development"
21+
"start": "npm run bundle -- development",
22+
"rebuild": "npm run clean && npm run build",
23+
"version": "npm run rebuild && cpx .npmignore lib/"
2224
},
2325
"files": [
2426
"lib/",

0 commit comments

Comments
 (0)