Skip to content

Commit 88df00a

Browse files
committed
Update demo page to reflect new library
1 parent 9d28200 commit 88df00a

11 files changed

Lines changed: 44237 additions & 51643 deletions

File tree

gh-pages/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"]
3+
}

gh-pages/bin/update-demo.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/zsh
2+
# Update demo to use latest local library build
3+
4+
set -e
5+
6+
LIB_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
7+
LIB_NAME="che-react-number-easing"
8+
9+
cd "$LIB_DIR"
10+
echo "Building library..."
11+
npm run build
12+
echo "Packing library..."
13+
TARBALL=$(npm pack | tail -n1)
14+
15+
cd "$LIB_DIR/gh-pages"
16+
echo "Cleaning demo node_modules..."
17+
rm -rf node_modules package-lock.json
18+
echo "Installing new library tarball..."
19+
npm install "../$TARBALL"
20+
npm install
21+
echo "Building demo..."
22+
npm run build
23+
echo "Demo updated to latest library version!"

0 commit comments

Comments
 (0)