Skip to content

Commit

Permalink
Embroider compat
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed May 20, 2021
1 parent 6a32eff commit 16a8211
Show file tree
Hide file tree
Showing 4 changed files with 1,820 additions and 2,719 deletions.
5 changes: 4 additions & 1 deletion config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const getChannelURL = require('ember-source-channel-url');
const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function() {
return {
Expand Down Expand Up @@ -76,7 +77,9 @@ module.exports = async function() {
'@ember/jquery': '^0.5.1'
}
}
}
},
embroiderSafe(),
embroiderOptimized(),
]
};
};
3 changes: 2 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
const { maybeEmbroider } = require('@embroider/test-setup');

module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
Expand All @@ -14,5 +15,5 @@ module.exports = function(defaults) {
behave. You most likely want to be modifying `./index.js` or app's build file
*/

return app.toTree();
return maybeEmbroider(app);
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.5",
"ember-get-config": "^0.2.4",
"ember-validators": "^3.0.1"
"ember-validators": "^3.0.1",
"validated-changeset": "~0.14.5"
},
"devDependencies": {
"@ember/optional-features": "^1.0.0",
"@embroider/test-setup": "^0.39.1",
"babel-eslint": "^10.0.3",
"broccoli-asset-rev": "^3.0.0",
"ember-auto-import": "^1.5.3",
Expand Down
Loading

0 comments on commit 16a8211

Please sign in to comment.