Get test passing for Embroider.
Breaking changes
-
Use outaTiME/applause directly:
Previously, this addon made use of outaTiME/broccoli-replace to handle running replacements in files. In v2 we now run outaTiME/applause directly on the output directory post-build. This change was primarily implemented to get tests passing for Embroider.
-
The
files
configuration paths are now relative to thedist/
directory:Since we're now transforming files after the Ember build is complete, the
files
configuration option is now relative to thedist/
directory. In previous versions, we were operating on the Broccoli tree, so file paths were referencing input files. In v2files
should point to paths in the output directory (dist/
). Note that during build, templates are compiled to JavaScript, so you likely want to include**/*.js
in the list, and probably don't need**/*.hbs
. -
New default value for the
files
configuration option (['index.html', '**/*.js']
):This is a sensible default, since most files in an Ember application are complied to JavaScript, and it's common to make replacements in the
index.html
. Since we run post-build now, and.hbs
files are compiled to JavaScript during build, this configuration should cover most common use-cases. User-suppliedfiles
configuration is not merged with the defaults, so if you make any changes, you'll need to add the default globs back in.
Potentially breaking
- Upgrade Ember CLI from 3.16 to 4.3
This addon is now based on the default blueprint for Ember CLI 4.3.
What's Changed
- Upgrade to Ember CLI v4.3.0 by @andybluntish in #14
- Add default value for files options by @andybluntish in #15
- bump to v2.0.0 by @andybluntish in #16
Full Changelog: v1.0.0...v2.0.0