Skip to content

Easy download of the lesson code merging template + current files #166

@eric-burel

Description

@eric-burel

Is your feature request related to a problem?

I am crafting a tutorial, and debugging the template application can be a bit tricky. The webcontainer loading time is acceptable for an application that works, but quite slow for a debugging process when it doesn't. Also when modifying the content of "_files" and "_solution" folder, the files may miss some context from the parent template and end up with bad typings (maybe there are solutions to that though), it's easier to work on a complete application. Finally end user may want to do a local run of the code.

Describe the solution you'd like.

Be able to download the full template + _file/_solution code.

Describe alternatives you've considered.

Created a dirty copy script with cp

# Copy an app to test it locally
mkdir -p "./tmp"
cp -R ./src/templates/nextjs/. ./tmp
cp -R ./src/content/tutorial/2-nextjs/2-various/1-streaming/_files/. ./tmp

Then I can debug the app in "tmp", finalize the code, and move it back to the solution.

It does the job making this issue not really dramatic, but we could imagine something built-in, all the more that you probably have merging logic in order to bootup the webcontainer (I didn't dig the codebase yet).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions