forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shorthand ES6 re-export for addon-imports as well, which landed in …
- Loading branch information
Showing
4 changed files
with
46 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1 @@ | ||
|
||
## ember-cli [![Build Status][travis-badge]][travis-badge-url] [![Dependency Status][david-badge]][david-badge-url] [![Build status][appveyor-badge]][appveyor-badge-url] [](https://codeclimate.com/github/ember-cli/ember-cli) [](https://codeclimate.com/github/ember-cli/ember-cli) [](http://inch-ci.org/github/ember-cli/ember-cli) | ||
|
||
The Ember.js command line utility. | ||
|
||
Supports node 0.12.x and npm 2.6.x. | ||
|
||
## Community | ||
* irc: #ember-cli on freenode | ||
* issues: [ember-cli/issues](https://github.com/ember-cli/ember-cli/issues) | ||
* website: [ember-cli.com](http://www.ember-cli.com) | ||
|
||
[](https://www.youtube.com/watch?v=4D8z3972h64) | ||
|
||
|
||
## Project Elements | ||
Additional components of this project which are used at runtime in your application: | ||
* [ember-resolver](https://github.com/ember-cli/ember-resolver) | ||
* [loader](https://github.com/ember-cli/loader.js) | ||
* [ember-cli-shims](https://github.com/ember-cli/ember-cli-shims) | ||
* [ember-load-initializers](https://github.com/ember-cli/ember-load-initializers) | ||
|
||
## Development Hints | ||
### Working with master | ||
|
||
``` sh | ||
git clone https://github.com/ember-cli/ember-cli.git | ||
cd ember-cli | ||
npm link | ||
``` | ||
|
||
`npm link` is very similar to `npm install -g` except that instead of downloading the package from the repo the just cloned `ember-cli/` folder becomes the global package. Any changes to the files in the `ember-cli/` folder will immediately affect the global ember-cli package. | ||
|
||
Now you can use `ember-cli` via the command line: | ||
|
||
``` sh | ||
ember new foo | ||
cd foo | ||
npm link ember-cli | ||
ember server | ||
``` | ||
|
||
`npm link ember-cli` is needed because by default the globally installed `ember-cli` just loads the local `ember-cli` from the project. `npm link ember-cli` symlinks the global `ember-cli` package to the local `ember-cli` package. Now the `ember-cli` you cloned before is in three places: The folder you cloned it into, npm's folder where it stores global packages and the `ember-cli` project you just created. | ||
|
||
If you upgrade an app running against Ember CLI master you will need to re-link to your checkout of Ember CLI by running `npm link ember-cli` in your project again. | ||
|
||
Please read the official [npm-link documentation](https://www.npmjs.org/doc/cli/npm-link.html) and the [npm-link cheatsheet](http://browsenpm.org/help#linkinganynpmpackagelocally) for more information. | ||
|
||
### Working with the tests | ||
|
||
Use `npm run autotest` to run the tests after every file change (Runs only fast tests). Use `npm test` to run them once. | ||
|
||
For a full test run which includes some very slow acceptance tests, | ||
please run: `npm run test-all`. Please note, this is what travis | ||
runs. | ||
|
||
To exclude a test or test suite append a `.skip` to `it()` or `describe()` respectively (e.g. `it.skip(...)`). To focus on a certain test or test suite append `.only`. | ||
|
||
Please read the official [mocha documentation](http://mochajs.org/) for more information. | ||
|
||
## Problems | ||
|
||
When running ember cli it could happen that a lack of file watches can occur. You will get an error message like: | ||
|
||
```sh | ||
Serving on http://localhost:4200 | ||
watch ENOSPC | ||
Error: watch ENOSPC | ||
at errnoException (fs.js:1019:11) | ||
at FSWatcher.start (fs.js:1051:11) | ||
... | ||
``` | ||
|
||
This problem will be corrected in future releases. The following line is a workaround to get the server up and running until this problem is fixed. See [Issue 1054](https://github.com/ember-cli/ember-cli/issues/1054). | ||
|
||
```sh | ||
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
``` | ||
|
||
For Arch Linux or Manjaro Linux, in order for the parameters to be loaded at boot, the kernel sysctl parameters have to be saved in a drop-in directory instead of `sysctl.conf`. | ||
|
||
```sh | ||
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.d/99-sysctl.conf && sudo sysctl --system | ||
``` | ||
|
||
## Inline 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. | ||
|
||
## Contribution | ||
|
||
[See `CONTRIBUTING.md`](https://github.com/ember-cli/ember-cli/blob/master/CONTRIBUTING.md) | ||
|
||
## Upgrading | ||
|
||
* [Change history of new Ember-CLI apps](https://github.com/kellyselden/ember-cli-output) | ||
* [Change history of new Ember-CLI addons](https://github.com/kellyselden/ember-addon-output) | ||
|
||
## Donating | ||
|
||
All donations will support this project and treats for contributors. | ||
|
||
[](https://www.gittip.com/stefanpenner/) | ||
|
||
## License | ||
|
||
ember-cli is [MIT Licensed](https://github.com/ember-cli/ember-cli/blob/master/LICENSE.md). | ||
|
||
|
||
[travis-badge]: https://travis-ci.org/ember-cli/ember-cli.svg?branch=master | ||
[travis-badge-url]: https://travis-ci.org/ember-cli/ember-cli | ||
[david-badge]: https://david-dm.org/ember-cli/ember-cli.svg | ||
[david-badge-url]: https://david-dm.org/ember-cli/ember-cli | ||
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/7owf61lo8uujbjok/branch/master?svg=true | ||
[appveyor-badge-url]: https://ci.appveyor.com/project/embercli/ember-cli/branch/master | ||
Appveyor makes me mad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
import <%= camelizedModuleName %> from '<%= modulePath %>'; | ||
|
||
export default <%= camelizedModuleName %>; | ||
export { default } from '<%= modulePath %>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.