Skip to content

Commit

Permalink
[#111,flowershow/upgrade][s]: start of docs on upgrading plus upgrade…
Browse files Browse the repository at this point in the history
… script from experience upgrading ecosystem in #111.
  • Loading branch information
rufuspollock committed Aug 29, 2022
1 parent 4c13115 commit 8d9e2c9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/flowershow/upgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# upgrade an existing standard nextjs site

npx degit flowershow/flowershow/templates/default --force

# files that we should keep the original (probably)
git checkout README.md
git checkout .gitignore

# stuff that shouldn't be there
rm .env.example
rm -Rf tests
rm netlify.toml
rm netlify.toml
# data seems to be exampleData
rm -Rf data
rm -Rf components/TempCallout.jsx

# set up custom components
rm -Rf components/custom

# set up assets
mkdir -p content/assets
rm public/assets
ln -s content/assets public/assets

# notes
echo "You may need to hand merge the following files:"
echo "pacakge.json, package-lock.json"
15 changes: 15 additions & 0 deletions site/content/docs/upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Upgrading Flowershow and a Flowershow Site
---

For a simple site you can just upgrade Flowershow and republish.

For a "custom" site i.e. where you are using Flowershow as a NextJS template you will need to do more.

## Upgrading a NextJS site built with Flowershow

See `packages/flowershow/upgrade.sh` in the Flowershow github repo.

You will probably have to do some custom merging.

See also https://github.com/flowershow/flowershow/issues/111

0 comments on commit 8d9e2c9

Please sign in to comment.