question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default `configPath` for addons points to dummy app's config path.

See original GitHub issue

As per #133, we now allow a custom configPath to be set in an engine’s package.json. If ember-addon/configPath is set, then this value will be used instead of the default path of config.

Unfortunately, ember-addon/configPath is set by default in new addon projects, and the default value is "tests/dummy/config". New engines are now using this the environment settings from the dummy app (tests/dummy/config/environment.js) instead of config/environment.js.

@rwjblue any idea how to best untangle this while still allowing, but not requiring, custom config paths?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
trentmwilliscommented, Jul 11, 2016

Use a different setting (other than ember-addon/configPath) to customize configPath for engines.

I tend to favor this solution over the others. One thing that’s not clear to me with the other solutions is how would you specify the dummy app’s config path and the engine’s config path in an addon? Since I am assuming you would need both in order to properly test things.

0reactions
dgebcommented, Jul 12, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Paths <configPaths> - Microsoft Learn
Overview The <configPaths> element lists the locations where a configuration setting is set across the Internet Information Services (IIS) 7 ...
Read more >
Developing Addons and Blueprints - Chris Henn
By default, the "ember-addon" hash in the package.json file has the "configPath" property defined to point to the config directory of the test...
Read more >
@embroider/util | Yarn - Package Manager
Utilities to help apps and addons with Embroider support. ... @embroider/compat , @embroider/core , @embroider/test-setup , @embroider/webpack 2.0.1 -> 2.0.
Read more >
Develop Ember.Components for Sharing as Ember CLI ...
Converting a Micro Library of Components to an Ember CLI Addon ... In tests/dummy there are folders for app , config , and...
Read more >
Upgrading React on Rails - ShakaCode
The default value for extract_css is false in config/webpack.yml . ... we no longer need to modify Rails.application.config.assets.paths or append anything ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found