Giter Site home page Giter Site logo

francessco121 / dart-embedded-config Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 116 KB

Allows Dart application configurations to be embedded directly into source code at build-time.

Home Page: https://pub.dev/packages/embedded_config

License: MIT License

Dart 100.00%
dart dartlang builder configuration build-environment

dart-embedded-config's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dart-embedded-config's Issues

Support null safety

Looks like the dependencies finally support null safety, so it's time these two packages did as well!

Support optional config sources

It would be super useful to allow build.yaml configs to specify whether a config source is optional. For example, an app could have a config.local.json file that doesn't exist by default (and is ignored by source control), but developers can create to optionally override config for development. This could allow different developers to use different dev configs without worrying about committing them to a repository.

Could look something like this:

# Multi-source example
targets:
  $default:
    builders:
      embedded_config:
        options:
          app_config:
            source:
              - lib/app_config.json
              - path: lib/app_config.local.json
                optional: true

# Single-source example
targets:
  $default:
    builders:
      embedded_config:
        options:
          app_config:
            # Note: not strictly required, a list with a single item would work 
            # for both multi and single without additional work
            source:
              path: lib/app_config.local.json
              optional: true
            inline:
              key: value

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.