Skip to content

Commit

Permalink
update build method to include export option
Browse files Browse the repository at this point in the history
  • Loading branch information
mikikiv committed Jul 28, 2023
1 parent 8ec79e1 commit ec52ef6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions extensionReqs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

# Build the Next.js application
npx next build
echo "\n Build complete \n "
echo "
Build complete
"

# Export the application as static HTML files
npx next export
echo "\n Export complete \n "
echo "
Export complete
"

# Move the _next directory to next

Expand All @@ -28,3 +32,11 @@ cp extensionReqs/manifest.json extension/manifest.json

# Remove the out directory
rm -rf out

# when the user includes an export flag, export the extension folder as a zip
if [ "$1" == "export" ]; then
echo "
exporting extension folder as zip
"
zip -r extension.zip extension
fi

1 comment on commit ec52ef6

@vercel
Copy link

@vercel vercel bot commented on ec52ef6 Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.