ember-cli/ember-cli

Name: ember-cli

Owner: ember-cli

Description: The Ember.js command line utility

Created: 2013-11-03 17:34:43.0

Updated: 2018-01-17 12:48:59.0

Pushed: 2018-01-19 01:11:32.0

Homepage: http://ember-cli.com/

Size: 11912

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ember-cli

Latest npm release TravisCI Build Status AppVeyor Build Status Test Coverage Code Climate

The Ember.js command line utility.

Features
Installation
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://ember-cli.com/user-guide/ to read the in-depth documentation.

Create a new project
r new my-new-app

This will create a new folder my-new-app, initialize a Git project in it, add the basic Ember.js project structure and install any necessary npm and Bower dependencies.

Create a new addon project
r addon my-new-addon

This is essentially similar to ember new but will generate the structure for an ember-cli addon instead.

Build the project
r build

This will create a dist folder and run the build pipeline to generate all the output files in it. You can specify --environment=production to build in production mode, which includes code minification and other optimizations.

Run the development server
r serve

This will launch a development server that will automatically rebuild your project on file changes and serves the built app at http://localhost:4200/.

Run the test suite
r test

This command will start the Testem runner, which will run all your tests from the tests folder. This command also supports a --server option which will automatically run tests on file changes.

Generate files
r generate route foo

This will generate a route named foo. route is an example here and can be replaced by any other available blueprint. Blueprints are provided by ember-cli itself and any of you installed addons. Run ember generate --help to see a list of available blueprints in your project and their options.

Install an ember-cli addon
r install some-other-addon

This will search npm for a package named some-other-addon, install it and run any additional install steps defined in the addon.

Community
Development

Start by cloning the Git project to your local hard drive:

clone https://github.com/ember-cli/ember-cli.git
Link ember to your development version

Running the following command will link the global ember utility to your local development version:

link

Note that the global ember CLI utility will automatically relay to any project-local ember-cli installation. If you want to use your development version there instead run the following command from your Ember.js project folder:

link ember-cli

Read the official npm-link documentation for more information.

Run the test suite
test

will run ESLint and the “fast” subset of the test suite. Run npm run test-all for the full test suite which will currently take quite a few minutes due to heavy IO and network usage.

ember-cli is using Mocha for its internal tests. If you want to run a specific subset of tests have a look at their documentation.

Build the documentation

Use npm run docs to build HTML and JSON documentation with YUIDoc and place it in docs/build/. Please help by improving this documentation.

License

This project is licensed under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.