-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#111,flowershow/upgrade][s]: start of docs on upgrading plus upgrade…
… script from experience upgrading ecosystem in #111.
- Loading branch information
1 parent
a0d4402
commit c8789a1
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |