Code Monkey home page Code Monkey logo

Comments (8)

MajorBreakfast avatar MajorBreakfast commented on May 22, 2024

Excellent idea. Also maybe for handlebars helpers. What about putting them directly into app/initializers?

from ember-cli.

rwjblue avatar rwjblue commented on May 22, 2024

It doesn't matter too much to me where they go, just that they get loaded automatically.

That said, I personally would prefer to keep the configuration related things inside config. This might be unduly influenced by my Rails background, so I'll leave the final location up to @stefanpenner.

from ember-cli.

HeroicEric avatar HeroicEric commented on May 22, 2024

I like this idea but I'm also coming from a Rails background.

I haven't run into this yet but are there ever situations where you would want to require initializers in a specific order? Would this still be configurable?

from ember-cli.

MajorBreakfast avatar MajorBreakfast commented on May 22, 2024

Initializers have their own ordering mechanism with the "before" and "after" property. Pretty cool actually.

I'm for omitting the config folder because initializers are the config themselves.

from ember-cli.

stefanpenner avatar stefanpenner commented on May 22, 2024

@rjackson closing in favor of a PR

from ember-cli.

yaymukund avatar yaymukund commented on May 22, 2024

👍 app/initializers

I tried to naively import an initializer from app.js, which in turn imported app.js and it didn't work.

from ember-cli.

zonak avatar zonak commented on May 22, 2024

Any updates on this?

from ember-cli.

twokul avatar twokul commented on May 22, 2024

@zonak I'm planning to take a stab at it today

from ember-cli.

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.