-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
34 lines (27 loc) Β· 758 Bytes
/
setup.sh
File metadata and controls
34 lines (27 loc) Β· 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# HaexHub SDK Setup Script
echo "π Setting up HaexHub SDK..."
# Create directory structure
echo "π Creating directory structure..."
mkdir -p src/api
mkdir -p examples
# Initialize git
if [ ! -d .git ]; then
echo "π¦ Initializing git..."
git init
fi
# Create package.json if it doesn't exist
if [ ! -f package.json ]; then
echo "π Creating package.json..."
pnpm init -y
fi
# Install dependencies
echo "π₯ Installing dependencies..."
pnpm add -D typescript tsup @types/node
echo "β
Setup complete!"
echo ""
echo "Next steps:"
echo "1. Copy the TypeScript files to src/"
echo "2. Run 'pnpm build' to build the SDK"
echo "3. Run 'pnpm link' to test locally"
echo "4. Run 'npm publish --access public' to publish"