-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
61 lines (52 loc) · 1.57 KB
/
init.sh
File metadata and controls
61 lines (52 loc) · 1.57 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# QuickKee - Chrome Extension for KeePass Integration
# Setup and Development Environment Script
set -e
echo "=================================="
echo " QuickKee Development Setup"
echo "=================================="
echo ""
# Check Node.js version
if ! command -v node &> /dev/null; then
echo "Error: Node.js is not installed. Please install Node.js 18+ first."
exit 1
fi
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "Error: Node.js 18+ required. Current version: $(node -v)"
exit 1
fi
echo "Node.js version: $(node -v)"
# Check Yarn
if ! command -v yarn &> /dev/null; then
echo "Yarn not found. Installing via npm..."
npm install -g yarn
fi
echo "Yarn version: $(yarn -v)"
# Install dependencies
echo ""
echo "Installing dependencies..."
yarn install
# Build the extension
echo ""
echo "Building extension..."
yarn build
echo ""
echo "=================================="
echo " Setup Complete!"
echo "=================================="
echo ""
echo "Development Commands:"
echo " yarn dev - Start development server with hot reload"
echo " yarn build - Build production version"
echo " yarn test - Run tests"
echo " yarn lint - Run linter"
echo ""
echo "Loading the Extension in Chrome:"
echo " 1. Open Chrome and go to chrome://extensions/"
echo " 2. Enable 'Developer mode' (top right toggle)"
echo " 3. Click 'Load unpacked'"
echo " 4. Select the 'dist' folder in this project"
echo ""
echo "The extension should now appear in your browser toolbar!"
echo ""