Generate an Ember app with the Module Unification layout

Posted

Today at EmberConf, Matthew Beale spoke about the new Module Unification directory layout that will be coming to Ember in the near future. If you want to try it out now, you can install the canary version of the Ember CLI and generate a new application.

Thanks to npx, you can do this with a single command:

MODULE_UNIFICATION=true npx ember-cli/ember-cli new __name_of_app__

This avoids needing to globally install the canary version of the Ember CLI but still gives you access to the bleeding-edge features.

Protip: If you want to use yarn, throw --yarn on the end of that command.

WebMentions