Git Product home page Git Product logo

Comments (8)

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Investigating different approaches, will try and get this into the next milestone 👍

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Just an update on this issue, we have some code in the works, but need more time to setup a nicer way of testing child processes, so hopefully this is something we can bring in, in the near future 👍

from drakov.

hendrikmaus avatar hendrikmaus commented on July 25, 2024

+1

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

Thanks for the feedback guys, we are definitely looking at getting this feature into drakov in the short term.

from drakov.

shavo007 avatar shavo007 commented on July 25, 2024

+1 on this.

I have a watch in grunt and stop/start the server but doesnt seem to reload.

   watch: {
      drakov: {
        files: ['doc/track-api.md'],
        tasks: ['mock-api'],
        options: {
          livereload: '<%= connect.options.livereload %>'
        }
      }

Grunt task

  grunt.registerTask('mock-api', 'Start drakov server', function() {
    var done = this.async();

    drakov.stop(function(){
      console.log('-- STOPPED --');
    });

    var drakovOptions = {
      sourceFiles: './doc/*.md',
      serverPort: 3000,
      autoOptions: true,
      delay: 1000,
      disableCORS: true
    };

    drakov.run(drakovOptions, function(err){
      console.log('-- STARTED --');
      if (err) {
        throw err;
      }
    });
    done();
  });

I see in the console

File "doc\track-api.md" changed.
Running "mock-api" task
-- STOPPED --
DRAKOV STARTED

Done, without errors.

But it doesnt seem to reload!!! ;-)

from drakov.

shavo007 avatar shavo007 commented on July 25, 2024

Any update on this guys?

from drakov.

yakovkhalinsky avatar yakovkhalinsky commented on July 25, 2024

hey @shavo007 we have some code to do this, but were unable to reliably test it.

I'll have a look at this again and look at introducing this.

from drakov.

shavo007 avatar shavo007 commented on July 25, 2024

No probs. Thanks for the reply.

from drakov.

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.