Download CSS from npm directly

This commit is contained in:
Cecile Tonglet 2020-09-03 17:14:16 +02:00
parent 50381d5cc4
commit 892ef1eec0
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target
/static
/*.tgz

View file

@ -6,7 +6,12 @@ else
options=()
fi
if ! [ -f core.tgz ]; then
curl -o core.tgz https://registry.npmjs.org/@blueprintjs/core/-/core-3.30.0.tgz
fi
rm -fR static/.gitignore static/*
tar xvzf core.tgz -C static --wildcards \*.css --transform='s/.*\///'
wasm-pack build --no-typescript --target web --out-name wasm --out-dir ./static "${options[@]}" "$@"
rc=$?
rm -fR static/{.gitignore,package.json}