Ember CLI’s asset compilation system has support for:
Using a custom resolver, Ember CLI can automatically import modules when
needed. For example, the route in
routes/post.js will know to use the
controllers/post.js and the template in
You are not limited to automatic resolution so if your application needs to
explicitly include a module, it’s only an
import away. Learn more about
ES2015 modules here.
Testing using the CLI
Ember CLI’s runtime is configurable via a file named
JSON-formatted file, which must be placed in your home directory, can include
any command-line options whose names must be in camel case form. For example:
Content Security Policy
The ember-cli-content-security-policy addon can be used to to enable the Content Security Policy headers in modern browsers when running the development server. When enabled, Content Security Policy headers help mitigate certain types of attacks including Cross Site Scripting (XSS) and data injection. Browser support is very good, and Ember CLI + Ember-CLI-Content-Security-Policy addon makes it easy to build your app with CSP in mind. For example, enabling it on your production stack is as simple as adding these headers.
Ember CLI is continuously evolving. It’s an on-going community effort. We welcome your issues and PRs for features, bug fixes, and anything that would improve your quality of life as an Ember developer.
Talk to us here:
Currently, Ember CLI supports Node (latest LTS recommended), npm (3.x and above) or yarn.
A good browser framework is important. But building ambitious web applications also requires excellent tooling and processes. Ember CLI wraps all of this (and much more) into a developer-friendly command-line package.
Among the principal features of Ember CLI are:
- Project/Addon creation: create new projects quickly without having to worry about project structure;
- Build pipeline: asset compilation, finger-printing and more out of the box;
- Generators: use the built-in generators and get files that follow the latest practices, and matching tests;
- Ember Addons: extend both your application and Ember CLI itself with community solutions.
By sharing the tooling infrastructure that Ember CLI and its addons provide, members of the Ember.js ecosystem can spend more time on the things that make their individual applications unique.