Code Monkey home page Code Monkey logo

derver's People

Contributors

alexxnb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

derver's Issues

Can't make createRemote works

Hello Alex, thanks for this awesome tool !

When I'm using derver like this, I can't get "createRemote" to work

let test = derver.createRemote({
  pubdir: "public",
  host: "localhost",
  port: 1312,
  remote: true,
  watch: false,
});
setInterval(() => test.reload(), 3000);

The "test.reload()" keep giving me [Derver remote]: Warning:connect ECONNREFUSED 127.0.0.1:1312, and indeed the dev server isn't started.

So I tried with :

derver.derver({
  pubdir: "public",
  host: "localhost",
  port: 1312,
 remote: "licorne",
 watch: false,
});
let test = derver.createRemote("licorne");
console.log(test);
setInterval(() => test.reload(), 3000);

And the console.log(test); give me the correct

{
  reload: [Function: reload],
  console: [Function: console],
  error: [Function: error]
}

But nothing is reloaded with the setInterval, I'm up to provide you with any extra info needed if you tell me what you need, hope it's enough tho !

Thanks.

Provide ESM version of rollup plugin

I have certain workflows with custom rollup plugins, all in ESM format, and do not have rollup transform the configuration file.

In these cases, an ESM version of this server would be very helpful, as it's a very useful tool. Thanks!

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.