Skip to content

Commit 7d46574

Browse files
committed
update
1 parent 0591f5e commit 7d46574

9 files changed

+53
-1
lines changed

docs/css/app.95ebc2df.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/favicon.ico

1.12 KB
Binary file not shown.

docs/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>vue-container-query</title><link href=/css/app.95ebc2df.css rel=preload as=style><link href=/js/app.b05790f7.js rel=preload as=script><link href=/js/chunk-vendors.f2509e63.js rel=preload as=script><link href=/css/app.95ebc2df.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-container-query doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.f2509e63.js></script><script src=/js/app.b05790f7.js></script></body></html>

docs/js/app.b05790f7.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/app.b05790f7.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/chunk-vendors.f2509e63.js

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/chunk-vendors.f2509e63.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"unpkg": "dist/VueContainerQuery.umd.js",
66
"scripts": {
77
"serve": "vue-cli-service serve",
8-
"build": "vue-cli-service build",
8+
"build": "vue-cli-service build --dest docs",
99
"lint": "vue-cli-service lint",
1010
"test:unit": "vue-cli-service test:unit",
1111
"bundle": "vue-cli-service build --target lib --name VueContainerQuery ./src/index.js"
1212
},
13+
"license": "MIT",
1314
"dependencies": {
1415
"container-query-toolkit": "^0.1.3",
1516
"resize-observer-lite": "^0.2.3",

release.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [[ -z $1 ]]; then
5+
echo "Enter new version: "
6+
read -r VERSION
7+
else
8+
VERSION=$1
9+
fi
10+
11+
read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r
12+
echo
13+
if [[ $REPLY =~ ^[Yy]$ ]]; then
14+
echo "Releasing $VERSION ..."
15+
16+
if [[ -z $SKIP_TESTS ]]; then
17+
yarn lint
18+
yarn test:unit
19+
fi
20+
21+
# build
22+
VERSION=$VERSION yarn bundle
23+
24+
# publish
25+
git tag v"$VERSION"
26+
git push origin refs/tags/v"$VERSION"
27+
git push
28+
29+
if [[ -z $RELEASE_TAG ]]; then
30+
npm publish
31+
else
32+
npm publish --tag "$RELEASE_TAG"
33+
fi
34+
35+
# publish site
36+
echo "Notice: publishing site on your own. 🙂"
37+
fi

0 commit comments

Comments
 (0)