Write .drone.yml by JavaScript!

Just like drone-jsonnet-config, I have write a new extension named drone-js-config that can write drone yaml by JavaScript. And it supports all platform which drone supports, not only GitHub but also GitLab, Bitbucket, Gogs/Gitea. Here is an easy example for JS:

module.exports = [
  Pipeline("node6", "node:6"),
  Pipeline("node8", "node:8")

function Pipeline(name, image) {
  return {
    kind: "pipeline",

    steps: [
        name: "test",
        commands: [
          "npm install",
          "npm test"