Skip to content

Be able to generate an initial project with a single empty step. #871

@exampro-dev

Description

@exampro-dev

Problem

Describe the Problem

As a user when I create a new motia project:

npx motia@latest create
npx motia dev

It will generate out a basic-tutorial.
I then need to strip out the example code to work on my project's requirements
because as a tech educator I need to show from scratch to ensure full understanding of the framework.

However as a user, I may remove unexpected configure which will leave motia workbench in a broken state.

Describe How To Replicate The Issue

This unlisted youtube video shows exactly how I ended up in a broken state
and I did.

https://youtu.be/O59AudWuY3Y

I created a project with the Typescript configuration.

I deleted:

  • the contents of .motia (I assume this would just regenerate)
  • the contents of motia-workbench.json
  • the tutorial.tsx
  • all files within in src directory

After adding my own step with and indicating a flow, the flow would not show up.

How did I try to solve the issue.

Restarting the workbench
Adding back in the tutorial.tsx which was an error in the Console of the browser
I tried deleting my backend folder and regenerating a new project
I then tried deleting the motia directory.

My last solution was to destroy my Cloud Developer Environment, rollback my commits

Proposed Solution

  • Generate a bare bones project so I don't as the user muck with generated files
  • Add to the documentation troubleshooting if you do muck with generated files and how to correct the issue.

Alternatives Considered

No response

Additional Context

No response

Willing to Help Implement?

  • I would like to work/help with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions