Comments (8)
Excellent idea. Also maybe for handlebars helpers. What about putting them directly into app/initializers
?
from ember-cli.
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.
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.
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.
@rjackson closing in favor of a PR
from ember-cli.
👍 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.
Any updates on this?
from ember-cli.
@zonak I'm planning to take a stab at it today
from ember-cli.
Related Issues (20)
- ember-cli 5 makes the quick start guide error HOT 3
- Generating a new project on Node 14 with ember-cli 4.12 with yarn and typescript fails HOT 2
- Support prettier v3 in blueprints HOT 3
- Support Yarn v3 with ember new Command HOT 4
- Test against yarn 3 HOT 4
- WARNING: Ember CLI v5.2.0 is not tested against Node v20.4.0. S HOT 4
- ember build --watch fails with '[NodeWrapper:4 /path/to/some/folder] is not a SourceNode' when the app name contains 'ember-data' anywhere HOT 10
- incompatible with bun (or bun is incompatible)
- `test` script should not run `lint:*` scripts HOT 1
- Drop Node 16 in ember-cli 5.4 HOT 4
- Fails to fingerprint in production mode HOT 3
- set `declaration: false` in tsconfig.json for the app blueprint.
- TypeScript error on new project: 'SetupTestOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. HOT 2
- Run Prettier standalone HOT 2
- fingerprint.prepend not working for the chunk js files HOT 3
- [email protected] has security vulnerability HOT 2
- Setup ESLint for gjs/gts
- You passed the '--typescript' flag but there is no TypeScript blueprint available. A JavaScript blueprint will be generated instead. HOT 7
- new typescript component blueprint gives eslint warning HOT 3
- Fresh app 404's on missing assets/test-support.css HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli.