Skip to content

Commit

Permalink
npm ignore; esbuild config update; new scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksei-chareshneu committed Jun 26, 2024
1 parent b748cea commit 81a1502
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions molstar-extension/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.tsbuildinfo
*.js.map
8 changes: 4 additions & 4 deletions molstar-extension/esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const

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

const staticFilesPluginOptions = {
src: './src',
dest: './lib',
}
// const staticFilesPluginOptions = {
// src: './src',
// dest: './lib',
// }

// const buildLib = await esbuild.context({
// entryPoints: ['src/**/*.ts'],
Expand Down
4 changes: 3 additions & 1 deletion molstar-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"bundle": "npm run init && node ./esbuild.config.js",
"build": "npm run bundle -- production",
"build-site": "npm run bundle -- production && mkdir ./site && cp ./build/* ./site/.",
"start": "npm run bundle -- development"
"start": "npm run bundle -- development",
"rebuild": "npm run clean && npm run build",
"version": "npm run rebuild && cpx .npmignore lib/"
},
"files": [
"lib/",
Expand Down

0 comments on commit 81a1502

Please sign in to comment.