Giter Club home page Giter Club logo

Comments (7)

colynb avatar colynb commented on July 27, 2024

What kind of plugins are we talking about? I like the concept.

from serverless-dotenv-plugin.

vicary avatar vicary commented on July 27, 2024

We are using dotenv-parse-variables in particular, this is a list of notable dotenv plugins that follow the recommended way:

  1. dotenv-conversion
  2. dotenv-expand
  3. dotenv-packed
  4. dotenv-parse-variables
  5. dotenv-mustache

There are many other repo that depends on dotenv but works as a wrapper module, but I don't think they can be easily mixed with one another.

from serverless-dotenv-plugin.

colynb avatar colynb commented on July 27, 2024

Hi @vicary I created a new feature branch that allows you to add any plugin you want. In fact, it's more generic than that. It opens up the possibility of configuring dotenv in many ways. Would you mind doing a code review and testing it out?

The branch is feature/plugins

Let me know if you have any questions.

from serverless-dotenv-plugin.

vicary avatar vicary commented on July 27, 2024

Hey this looks very good!

Since it's one step away, I would like to further expose the plugin path as something likeserverless.yml:custom.dotenv.configPath (let's start a PR to the branch?), but do you think it should share the basePath setting?

from serverless-dotenv-plugin.

colynb avatar colynb commented on July 27, 2024

I created PR #48 a couple of days ago. As is, it assumes that the root of your project is where the config file is but I think using basePath will be good enough.

from serverless-dotenv-plugin.

mutantcornholio avatar mutantcornholio commented on July 27, 2024

I would actually like to have ability to disable dotenv-expand.
Unfortunately, that is written separately from dotenv and knows nothing about single quotes, because it expects already parsed file.
That way, if you add this to your .env file, current version of serverless-dotenv-plugin would still try to expand it

SHOULD_NOT_EXPAND='some$password(with)#chars'

from serverless-dotenv-plugin.

neverendingqs avatar neverendingqs commented on July 27, 2024

I will like to close this issue in favour of #48 and #90. Please continue the discussion there.

Thanks!

from serverless-dotenv-plugin.

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.