Skip to content

Commit d088bc5

Browse files
Merge pull request #175 from ryneeverett/sqlite-view-v0.2.0
sqlite-view: 0.1.8 -> 0.2.0
2 parents 4948de4 + b295f6a commit d088bc5

File tree

3 files changed

+833
-651
lines changed

3 files changed

+833
-651
lines changed

install-js.sh

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,12 @@ set -e
33

44
# Install
55
if [ "$1" = "-u" ] || [ "$1" = "--update" ]; then
6-
npm update --dev
6+
npm update --include=dev
77
elif [ "$1" != "--no-http" ]; then
88
npm install
99
fi
1010
export 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

0 commit comments

Comments
 (0)