ZengineHQ / mayan

Next-generation maya written in NodeJS
3 stars 9 forks source link

feat: env variables in maya.json get injected into build/watch process #53

Closed tehpsalmist closed 4 years ago

tehpsalmist commented 4 years ago

Usage:

maya.json

{
  "environments": {
    "stage": {
      "access_token": "token...",
      "plugins": {
        "dashboard": {
          "id": 123,
          "namespace": "my-namespace",
          "version": 2,
          "env": {
            "MY_VARIABLE": "my value"
          }
       }
    },
    "default": true
  }
}

now your build process has access to process.env.MY_VARIABLE as 'my value'.