Skip to content
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

"Moving to Levure" section #97

Open
macMikey opened this issue Feb 19, 2018 · 1 comment
Open

"Moving to Levure" section #97

macMikey opened this issue Feb 19, 2018 · 1 comment

Comments

@macMikey
Copy link
Contributor

Trevor suggested a path to start moving a project to Levure, that I think is a good idea as part of a Levure migration page in the wiki:

What I’ve done in the past when converting an app is move my stacks into
the appropriate Levure folders without worrying about scriptifying them. I
then move any app initialization code into the appropriate handlers in the
Levure `app.livecodescript` file.

Once the app is working again then I go back and scriptify stacks as
needed. Libraries that don’t use any internal custom properties are easy to
convert as are front and back scripts. You can then slowly go through each
folder in the `app/ui` folder and move the scripts into a `behavior` folder
that sits along each stack. No rush though.
@macMikey
Copy link
Contributor Author

From email today:

I *think* this is the bare minimum someone would need to do if they wanted
to move their app to Levure:

1) Pull out library, frontscript, back scripts from app and put in proper
folders in Levure app.
2) Pull out any code that runs at app startup and place in the
`InitializeApplication` or `OpenApplication` handlers in the Levure
`app.livecodescript` script. Make sure and open the first stack the user
should see at the end of the `OpenApplication` handler.
3) Pull out any code that needs to run when the application quits and place
it in `PreShutdownApplication` in the Levure `app.livecodescript` script.
4) Pull out your UI stacks and place them in the proper folder structure
for Levure.
5) Configure the standalone.livecode stack for your app, making sure to
include any externals or extensions your app uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant