Giter Club home page Giter Club logo

env-ini's People

Contributors

oubiwann avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

env-ini's Issues

Provide open-ended dual env/config lookup

Right now, the lookup assumes the keys in the config file and the env are the same (modulo section/section prefix). We should also allow for users to simple ask for a value with an environment key and with a section/key.

Support env in both clj and cljs

Environment variable support in Clojurescript is somewhat more problematic:

It may be that we can use some sort of convention for exposing env-like vars in non-browser/client-facing Clojurescript apps ...

Memoize env lookup

And then use that for all subsequent calls to the env.

Will need to add a force-reload option ...

Rename project to env-ini

Since env takes precedence over configuration, put it first in all the names:

  • change ini-env to env-init

Support both clj and cljs

We'll need to isolate the lang-specific functionality and use cljc files.

Tasks:

  • Add Clojurescript dep(s)
  • Get a cljs REPL working with nREPL
    • add rhino
    • add node.js
    • create dev env and profile for rhino
    • create dev env and profile for node.js
    • create dev env and profile for browser
    • add lein alias for rhino REPL
    • add lein alias for node.js REPL
    • add lein alias for browser REPL
  • Split existing codebase into src/clj
  • Add cljc code for clj + cljs env variable extraction
    • finish ticket #11
  • Add cljc code for clj + cljs INI file parssing
    • finish ticket #9

Related:

  • DONE: See ticket #9 for INI support in JS/CLJS
  • DONE: See ticket #11 for env support in CLJS

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.