GithubHelp home page GithubHelp logo

Comments (3)

adrien2p avatar adrien2p commented on June 1, 2024

Thanks for that, as you mentioned it is not a bug, the medusa develop use its own entry file and this is also why there is a start script in your package.json as well as an entry point file named main.ts which is used to run the server and all that is part of the doc. All that is generated by the init command, If you want hot reloading you can use a simple nodemon command 🔥💪👍

from medusa-extender.

arkrozycki avatar arkrozycki commented on June 1, 2024

I'm fairly new to medusa and most if not all the documentation and articles reference the medusa develop command. I would suggest making a note of it in your documentation/site so that new comers do not assume it does not work. Which is where I was headed and about to discard medusa-extender as a dead project.

For what it's worth, I added the following command to my package.json file to handle reloads, might be helpful.

"start:local": "nodemon -e ts --ignore node_modules/ --ignore dist/ -w src/ -x 'npm run build && NODE_ENV=development node ./dist/main.js'"

Just run npm run start:local and you the server restarts on saves. So far it's working.

from medusa-extender.

adrien2p avatar adrien2p commented on June 1, 2024

Thank you a lot for your feedback, the extender is a special package that require a minimum amount of knowledge on medusa before jumping straight in with the extender. The extender has its own cli to improve the dx with it and the init command populate the needed scripts to work with the extender along medusa itself. But, the medusa cli is only for medusa and the extender cli help your work with the extender and medusa together. Hope everything is more clear now and that you like it 😀

from medusa-extender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.