File tree Expand file tree Collapse file tree 3 files changed +833
-651
lines changed
Expand file tree Collapse file tree 3 files changed +833
-651
lines changed Original file line number Diff line number Diff line change 33
44# Install
55if [ " $1 " = " -u" ] || [ " $1 " = " --update" ]; then
6- npm update --dev
6+ npm update --include= dev
77elif [ " $1 " != " --no-http" ]; then
88 npm install
99fi
1010export PATH=" $PATH :$PWD /node_modules/.bin"
1111
12- # Bundle
13- node --input-type=module --eval "
14- import { install } from 'esinstall';
15-
16- install(
17- [
18- 'sqlite-view'
19- ],
20- {
21- dest: './pyhindsight/static/web_modules',
22- polyfillNode: true,
23- }
24- );
25- "
26- rm ./pyhindsight/static/web_modules/import-map.json
27-
28- # Optimize
29- bundle=" pyhindsight/static/web_modules/sqlite-view.js"
30- terser $bundle --output $bundle --compress --mangle
12+ # Build
13+ vite build node_modules/sqlite-view --outDir " $( pwd) /pyhindsight/static/web_modules"
14+ rm pyhindsight/static/web_modules/sqlite-view.umd.cjs
You can’t perform that action at this time.
0 commit comments