GithubHelp home page GithubHelp logo

Watch code and run about v12 HOT 12 CLOSED

botpress avatar botpress commented on June 3, 2024 4
Watch code and run

from v12.

Comments (12)

hugojosefson avatar hugojosefson commented on June 3, 2024 5

@bishoymelek It's merged, and will be released by as [email protected] - via botpress/botpress#187 (comment)

BTW @slvnperron Issue #46 can be closed now too, because it was fixed by PR botpress/botpress#187. I hadn't refreshed this browser tab :D

from v12.

rocel avatar rocel commented on June 3, 2024 1

@slvnperron @eyalcohen4
isn't it what the npm run watch already does? it uses nodemon.
I actually do use this command while testing/hacking botpress (the server or the cli).

from v12.

slvnperron avatar slvnperron commented on June 3, 2024

hey, glad you like botpress :)! It's a very nice idea. What about implementing it with an optional -w or --watch flag on bp start? We would love it if you could make this pull request, it's something I've been wanting too!

from v12.

eyalcohen4 avatar eyalcohen4 commented on June 3, 2024

Cool! I'll do it. thinking about add nodemon as a module, and in the start file add it to the function.
What do you say? @slvnperron

from v12.

eyalcohen4 avatar eyalcohen4 commented on June 3, 2024

If i understand well, you are talking about botpress development.

I meant when developing the bot instance @rocel

from v12.

slvnperron avatar slvnperron commented on June 3, 2024

@eyalcohen4 that's how I would do it, yes. Though only add it as a devDependencies and make the command available only in development if that makes sense? thanks

from v12.

rocel avatar rocel commented on June 3, 2024

oh ok, sorry then. Indeed a flag on start would be user friendly and nodemon a good idea.

from v12.

hugojosefson avatar hugojosefson commented on June 3, 2024

I have used https://www.npmjs.com/package/piping before, with great success in server applications.

Maybe that could work here too? Perhaps its use needs to be integrated with, or replace, the current handling of worker process in botpress.start(): https://github.com/botpress/botpress/blob/master/src/botpress.js#L247

from v12.

hugojosefson avatar hugojosefson commented on June 3, 2024

Looking into this now.

from v12.

hugojosefson avatar hugojosefson commented on June 3, 2024

Implemented. Now waiting for review on botpress/botpress#187, which should fix this.

from v12.

bishoymelek-zz avatar bishoymelek-zz commented on June 3, 2024

hi @hugojosefson can you please help me use what you implemented so i can use nodemon with botpress ? is there steps to do or something ? thank you

from v12.

hugojosefson avatar hugojosefson commented on June 3, 2024

@bishoymelek Sure, I'll look into it!

from v12.

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.