Skip to content

Commit d522a64

Browse files
feat: v1.1.1 - disable minification and add package scripts for Chrome Web Store review
1 parent cc2ee0c commit d522a64

7 files changed

Lines changed: 131 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.nitro
66
.cache
77
dist
8+
packages
89

910
# Node dependencies
1011
node_modules

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.1.1] - 2025-01-21
11+
12+
### Added
13+
14+
- Package scripts for Chrome Web Store submission (`scripts/package.ps1` for Windows, `scripts/package.sh` for macOS/Linux)
15+
16+
### Changed
17+
18+
- Disabled minification in production builds to speed up Chrome Web Store review process (unminified code is easier for reviewers to verify)
19+
1020
## [1.1.0] - 2025-01-19
1121

1222
### Added
@@ -50,6 +60,7 @@ Initial release of ReplyQueue, a Chrome extension that helps content creators fi
5060
- Reply suggestion generation with customizable writing style
5161
- Side panel UI with post cards, filtering, and settings
5262

53-
[Unreleased]: https://github.com/charlesjones-dev/replyqueue/compare/v1.1.0...HEAD
63+
[Unreleased]: https://github.com/charlesjones-dev/replyqueue/compare/v1.1.1...HEAD
64+
[1.1.1]: https://github.com/charlesjones-dev/replyqueue/compare/v1.1.0...v1.1.1
5465
[1.1.0]: https://github.com/charlesjones-dev/replyqueue/compare/v1.0.0...v1.1.0
5566
[1.0.0]: https://github.com/charlesjones-dev/replyqueue/releases/tag/v1.0.0

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "ReplyQueue",
44
"description": "Side panel for finding social media posts relevant to your blog content and get AI-powered reply suggestions.",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"icons": {
77
"16": "icons/icon16.png",
88
"48": "icons/icon48.png",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "replyqueue",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"type": "module",
55
"scripts": {
66
"dev": "vite",

scripts/package.ps1

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Build and package ReplyQueue for Chrome Web Store submission
2+
# Usage: .\scripts\package.ps1
3+
4+
$ErrorActionPreference = "Stop"
5+
6+
$projectRoot = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
7+
Set-Location $projectRoot
8+
9+
# Get version from manifest.json
10+
$manifest = Get-Content "manifest.json" | ConvertFrom-Json
11+
$version = $manifest.version
12+
13+
Write-Host "Building ReplyQueue v$version..." -ForegroundColor Cyan
14+
15+
# Clean dist folder
16+
if (Test-Path "dist") {
17+
Remove-Item -Recurse -Force "dist"
18+
Write-Host "Cleaned dist folder" -ForegroundColor Gray
19+
}
20+
21+
# Run build
22+
Write-Host "Running pnpm build..." -ForegroundColor Gray
23+
pnpm build
24+
if ($LASTEXITCODE -ne 0) {
25+
Write-Host "Build failed!" -ForegroundColor Red
26+
exit 1
27+
}
28+
29+
# Create packages folder if it doesn't exist
30+
$packagesDir = "packages"
31+
if (-not (Test-Path $packagesDir)) {
32+
New-Item -ItemType Directory -Path $packagesDir | Out-Null
33+
}
34+
35+
# Create zip file
36+
$zipName = "replyqueue-v$version.zip"
37+
$zipPath = Join-Path $packagesDir $zipName
38+
39+
# Remove existing zip if present
40+
if (Test-Path $zipPath) {
41+
Remove-Item $zipPath
42+
}
43+
44+
Write-Host "Creating $zipName..." -ForegroundColor Gray
45+
Compress-Archive -Path "dist\*" -DestinationPath $zipPath
46+
47+
# Get file size
48+
$size = (Get-Item $zipPath).Length / 1KB
49+
$sizeFormatted = "{0:N1} KB" -f $size
50+
51+
Write-Host ""
52+
Write-Host "Package created successfully!" -ForegroundColor Green
53+
Write-Host " File: $zipPath" -ForegroundColor White
54+
Write-Host " Size: $sizeFormatted" -ForegroundColor White
55+
Write-Host ""
56+
Write-Host "Upload this file to the Chrome Developer Dashboard" -ForegroundColor Yellow

scripts/package.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash
2+
# Build and package ReplyQueue for Chrome Web Store submission
3+
# Usage: ./scripts/package.sh
4+
5+
set -e
6+
7+
# Get project root (parent of scripts directory)
8+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
10+
cd "$PROJECT_ROOT"
11+
12+
# Get version from manifest.json
13+
VERSION=$(grep '"version"' manifest.json | head -1 | sed 's/.*: *"\([^"]*\)".*/\1/')
14+
15+
echo -e "\033[36mBuilding ReplyQueue v$VERSION...\033[0m"
16+
17+
# Clean dist folder
18+
if [ -d "dist" ]; then
19+
rm -rf dist
20+
echo -e "\033[90mCleaned dist folder\033[0m"
21+
fi
22+
23+
# Run build
24+
echo -e "\033[90mRunning pnpm build...\033[0m"
25+
pnpm build
26+
if [ $? -ne 0 ]; then
27+
echo -e "\033[31mBuild failed!\033[0m"
28+
exit 1
29+
fi
30+
31+
# Create packages folder if it doesn't exist
32+
PACKAGES_DIR="packages"
33+
mkdir -p "$PACKAGES_DIR"
34+
35+
# Create zip file
36+
ZIP_NAME="replyqueue-v$VERSION.zip"
37+
ZIP_PATH="$PACKAGES_DIR/$ZIP_NAME"
38+
39+
# Remove existing zip if present
40+
if [ -f "$ZIP_PATH" ]; then
41+
rm "$ZIP_PATH"
42+
fi
43+
44+
echo -e "\033[90mCreating $ZIP_NAME...\033[0m"
45+
cd dist
46+
zip -r "../$ZIP_PATH" .
47+
cd ..
48+
49+
# Get file size
50+
SIZE=$(du -h "$ZIP_PATH" | cut -f1)
51+
52+
echo ""
53+
echo -e "\033[32mPackage created successfully!\033[0m"
54+
echo -e " File: $ZIP_PATH"
55+
echo -e " Size: $SIZE"
56+
echo ""
57+
echo -e "\033[33mUpload this file to the Chrome Developer Dashboard\033[0m"

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default defineConfig(({ mode }) => ({
1313
},
1414
},
1515
build: {
16+
// Disable minification for Chrome Web Store review
17+
// Minified code increases review time significantly
18+
minify: false,
1619
rollupOptions: {
1720
input: {
1821
sidepanel: resolve(__dirname, 'src/sidepanel/index.html'),

0 commit comments

Comments
 (0)