RedisLess icon indicating copy to clipboard operation
RedisLess copied to clipboard

Create a script to build, test and publish the NodeJS client

Open evoxmusic opened this issue 4 years ago • 2 comments

To make RedisLess easily testable by any NodeJS developer, it would be useful to have a script to build, test and deploy the NodeJS client. Any suggestion is appreciated.

evoxmusic avatar May 02 '21 21:05 evoxmusic

Stumbled upon this: https://dev.to/kennethlarsen/how-to-distribute-a-rust-binary-on-npm-75n

  • use this CI template to publish binary releases for Linux, macOS and Windows
  • install.js looks something like:
let exec = require('child_process').exec;

exec('curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git qovery/redisless', (error, stdout, stderr) => {
  console.log(stderr);
});
  • node install.js

Is this close enough to what you had in mind?

tbmreza avatar May 28 '21 04:05 tbmreza

I don't think we need something like that. We already have everything we need. We just need to spend some time to automatically build and publish on NPM with Github actions. I will probably spend some time on this task once I have finished what I am working on - RedisLess cluster support

evoxmusic avatar May 30 '21 18:05 evoxmusic