- Ensure that Node.js and bower are installed.
git clone https://github.com/emberjs/ember.js.git && cd ember.js.
git config core.symlinks trueto ensure that symlinks are enabled.
git reset --hard HEADto reset to HEAD with symlinks.
npm installto ensure the required dependencies are installed.
bower installto ensure required web dependencies are installed.
npm run buildto build Ember.js. The builds will be placed in the
npm install troubleshooting
If you encounter a problem with downloading dependencies like:
npm ERR! registry error parsing json
npm install -g npm@latest
You can find more information in Upgrading on *nix (OSX, Linux, etc.) npm wiki page.
How to Run Unit Tests
Pull requests should pass the Ember.js unit tests. Do the following to run these tests.
Follow the setup steps listed above under Building Ember.js.
To start the development server, run
To run all tests, visit http://localhost:4200/.
To test a specific package, visit
PACKAGE_NAMEwith the name of the package you want to test. For example:
To test multiple packages, you can separate them with commas.
You can also pass
jquery=VERSION in the test URL to test different
versions of jQuery.
From the CLI
Install phantomjs from http://phantomjs.org.
npm testto run a basic test suite or run
TEST_SUITE=all npm testto run a more comprehensive suite.
ember test --server
Connect the browsers you want.
If phantom didn't connect automatically, you can run
To run a specific browser, you can use the
ember test --server --launch SL_Firefox_Current
ember test --launch SL_Firefox_Current