Package Exports
- ember-cli
- ember-cli/lib/broccoli/ember-addon
- ember-cli/lib/broccoli/ember-app
- ember-cli/lib/cli
- ember-cli/lib/cli/cli
- ember-cli/lib/cli/cli.js
- ember-cli/lib/cli/index
- ember-cli/lib/cli/lookup-command
- ember-cli/lib/commands/build
- ember-cli/lib/commands/generate
- ember-cli/lib/commands/init
- ember-cli/lib/commands/new
- ember-cli/lib/commands/serve
- ember-cli/lib/commands/test
- ember-cli/lib/errors/silent
- ember-cli/lib/ext/promise
- ember-cli/lib/models/addon
- ember-cli/lib/models/blueprint
- ember-cli/lib/models/builder
- ember-cli/lib/models/command
- ember-cli/lib/models/command.js
- ember-cli/lib/models/file-info
- ember-cli/lib/models/project
- ember-cli/lib/models/project.js
- ember-cli/lib/models/server-watcher
- ember-cli/lib/models/task
- ember-cli/lib/models/task.js
- ember-cli/lib/models/watcher
- ember-cli/lib/tasks/build
- ember-cli/lib/tasks/build-watch
- ember-cli/lib/tasks/create-and-step-into-directory
- ember-cli/lib/tasks/git-init
- ember-cli/lib/tasks/install-blueprint
- ember-cli/lib/tasks/npm-install
- ember-cli/lib/tasks/npm-task
- ember-cli/lib/tasks/server/express-server
- ember-cli/lib/tasks/server/livereload-server
- ember-cli/lib/utilities/execa
- ember-cli/lib/utilities/instrumentation
- ember-cli/lib/utilities/json-generator
- ember-cli/lib/utilities/merge-blueprint-options
- ember-cli/lib/utilities/normalize-blueprint-option
- ember-cli/lib/utilities/require-as-hash
- ember-cli/lib/utilities/root-command
- ember-cli/lib/utilities/stringify-and-normalize
- ember-cli/lib/utilities/valid-project-name
- ember-cli/lib/utilities/will-interrupt-process
- ember-cli/lib/utilities/windows-admin
- ember-cli/tests/helpers/assert-version-lock
- ember-cli/tests/helpers/ember
- ember-cli/tests/helpers/mock-analytics
- ember-cli/tests/helpers/mock-process
- ember-cli/tests/helpers/mock-project
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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-cliUsage
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
ember new my-new-appThis 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
ember addon my-new-addonThis is essentially similar to ember new but will generate the structure
for an ember-cli addon instead.
Build the project
ember buildThis 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
ember serveThis 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
ember testThis 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
ember generate route fooThis 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
ember install some-other-addonThis will search npm for a package named some-other-addon, install it and
run any additional install steps defined in the addon.
Community
- Slack: Get your invite
- IRC: #ember-cli on freenode
- Issues: ember-cli/issues
- Website: ember-cli.com
Development
Start by cloning the Git project to your local hard drive:
git clone https://github.com/ember-cli/ember-cli.gitLink ember to your development version
Running the following command will link the global ember utility to your
local development version:
npm linkNote 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:
npm link ember-cliRead the official npm-link documentation for more information.
Run the test suite
npm testwill 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.