-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc addition: Migrating from other templates #132
Comments
How to migrate your Sapper project to RoutifyAssuming you started from sapper-template, do the following.
Main layout and navigationRemove any references to the 404 pageRemove Remove files related to CypressIf you won't use use cypress tests; remove the Remove files related to server routesIf you used any server routes (Files with Remove files related to PWA
|
Don't know how this issue eluded me. Great job, @Wolfr! Should we post them? |
Thank you, we might want to add this to the site yes. I am now going through all issues and pruning them. |
I think this part got out of date, or at least does things differently from the starter template:
|
The starter template recently changed |
It seems the /tmp/ thing was broken by yarn2 making node_modules read-only. Writing to node_modules seems sketchy, to me. |
As of recent package managers, node_modules has indeed become flaky. If you're interested in doing a PR, I'll be happy to merge it. |
Doc addition. Any feedback welcome. Text starts below the line.
Migrating from svelte-template
Did you start your project using svelte-template but have decided you need a router? No worries. It's easy to transfer over your project to use Routify instead.
Copy over the dependencies and the npm tasks from package.json.
Copy over the full content from rollup.config.js
Put whatever static assets you had in the
public
folder into a new folder calledstatic
Within your
src
folder, make sure the contents of App.svelte are the following:pages
pages
, create a file calledindex.svelte
. This will correspond to/
.npm i
to install the necessary dependencies; and runnpm run dev
to run Routify's dev server.Optional
If you are looking to deploy your project to Now or Netlify, look in the scripts folder and copy the files you need.
The text was updated successfully, but these errors were encountered: