What is ember-cli?
Ember CLI is the command line interface for managing and developing Ember.js applications. It provides a robust set of tools for scaffolding, building, testing, and deploying Ember.js applications.
What are ember-cli's main functionalities?
Project Creation
This command creates a new Ember.js application with the name 'my-app'. It sets up the project structure, installs dependencies, and configures the build system.
ember new my-app
Generating Blueprints
This command generates a new component called 'my-component'. Blueprints are templates for generating various parts of an Ember.js application, such as components, routes, and services.
ember generate component my-component
Running the Development Server
This command starts a local development server, allowing you to preview your application in the browser. It also watches for file changes and automatically reloads the application.
ember serve
Building the Application
This command builds the Ember.js application for production. It optimizes the assets and outputs them to the 'dist' directory, ready for deployment.
ember build --environment production
Running Tests
This command runs the application's test suite. Ember CLI supports both unit and integration tests, and it can be configured to run tests in different environments.
ember test
Other packages similar to ember-cli
create-react-app
Create React App is a command line tool for creating and managing React applications. It provides a similar set of features to Ember CLI, including project scaffolding, development server, and build tools. However, it is tailored specifically for React applications.
vue-cli
Vue CLI is the standard tooling for Vue.js development. It offers a similar feature set to Ember CLI, including project creation, development server, and build tools. Vue CLI also provides a plugin system for extending its functionality.
angular-cli
Angular CLI is the command line interface for Angular applications. It provides tools for generating components, services, and other parts of an Angular application, as well as running a development server and building the application for production. It is similar to Ember CLI but tailored for Angular.
ember-cli
The Ember.js command line utility.
Features
- Asset build pipeline using Broccoli.js
- ES6 transpilation using Babel
- Project structure conventions using ES6 module syntax
- Development server including live-reload and API proxy
- File/Project generator using blueprints
- Unit, Integration and Acceptance test support using
Testem
- Powerful addon system for extensibility
Installation
npm install -g ember-cli
Usage
After installation the ember
CLI tool will be available to you. It is the
entrypoint for all the functionality mentioned above.
You can call ember <command> --help
to find out more about all of the
following commands or visit https://cli.emberjs.com/release/ to read
the in-depth documentation.
Documentation
Please refer to the CLI guides for help using Ember CLI.
Contributing
Please see the contributing guidelines
License
This project is licensed under the MIT License.