Repository: ember-cli/ember-cli
Pull request #7178 (2017-07-02 22:33:01)

readme npm/yarn updates with tests
cc @Turbo87 mentioned here https://github.com/ember-cli/ember-cli/pull/7177#discussion_r125192909


Patch:
diff --git a/blueprints/addon/files/README.md b/blueprints/addon/files/README.md
index 4f12ab33a..bed39d157 100644
--- a/blueprints/addon/files/README.md
+++ b/blueprints/addon/files/README.md
@@ -6,7 +6,7 @@ This README outlines the details of collaborating on this Ember addon.
 
 * `git clone <repository-url>` this repository
 * `cd <%= addonName %>`
-* `npm install`
+* `<% if (yarn) { %>yarn<% } else { %>npm<% } %> install`
 
 ## Running
 
@@ -15,7 +15,7 @@ This README outlines the details of collaborating on this Ember addon.
 
 ## Running Tests
 
-* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
+* `<% if (yarn) { %>yarn<% } else { %>npm<% } %> test` (Runs `ember try:each` to test your addon against multiple Ember versions)
 * `ember test`
 * `ember test --server`
 
diff --git a/blueprints/app/files/README.md b/blueprints/app/files/README.md
index f5546b28f..0223e5eb5 100644
--- a/blueprints/app/files/README.md
+++ b/blueprints/app/files/README.md
@@ -8,7 +8,8 @@ A short introduction of this app could easily go here.
 You will need the following things properly installed on your computer.
 
 * [Git](https://git-scm.com/)
-* [Node.js](https://nodejs.org/) (with NPM)
+* [Node.js](https://nodejs.org/)<% if (yarn) { %>
+* [Yarn](https://yarnpkg.com/)<% } else { %> (with NPM)<% } %>
 * [Ember CLI](https://ember-cli.com/)
 * [Google Chrome](https://google.com/chrome/)
 
@@ -16,7 +17,7 @@ You will need the following things properly installed on your computer.
 
 * `git clone <repository-url>` this repository
 * `cd <%= name %>`
-* `npm install`
+* `<% if (yarn) { %>yarn<% } else { %>npm<% } %> install`
 
 ## Running / Development
 


Test patch:
diff --git a/tests/acceptance/new-test.js b/tests/acceptance/new-test.js
index 013727079..df272eebc 100644
--- a/tests/acceptance/new-test.js
+++ b/tests/acceptance/new-test.js
@@ -378,6 +378,7 @@ describe('Acceptance: ember new', function() {
       [
         'app/templates/application.hbs',
         '.travis.yml',
+        'README.md',
       ].forEach(filePath => {
         expect(file(filePath))
           .to.equal(file(path.join(__dirname, '../fixtures/app/npm', filePath)));
@@ -397,6 +398,7 @@ describe('Acceptance: ember new', function() {
       [
         'app/templates/application.hbs',
         '.travis.yml',
+        'README.md',
       ].forEach(filePath => {
         expect(file(filePath))
           .to.equal(file(path.join(__dirname, '../fixtures/app/yarn', filePath)));
@@ -415,6 +417,7 @@ describe('Acceptance: ember new', function() {
       [
         'tests/dummy/app/templates/application.hbs',
         '.travis.yml',
+        'README.md',
       ].forEach(filePath => {
         expect(file(filePath))
           .to.equal(file(path.join(__dirname, '../fixtures/addon/npm', filePath)));
@@ -435,6 +438,7 @@ describe('Acceptance: ember new', function() {
       [
         'tests/dummy/app/templates/application.hbs',
         '.travis.yml',
+        'README.md',
       ].forEach(filePath => {
         expect(file(filePath))
           .to.equal(file(path.join(__dirname, '../fixtures/addon/yarn', filePath)));
diff --git a/tests/fixtures/addon/npm/README.md b/tests/fixtures/addon/npm/README.md
new file mode 100644
index 000000000..b8e8e3d9a
--- /dev/null
+++ b/tests/fixtures/addon/npm/README.md
@@ -0,0 +1,26 @@
+# foo
+
+This README outlines the details of collaborating on this Ember addon.
+
+## Installation
+
+* `git clone <repository-url>` this repository
+* `cd foo`
+* `npm install`
+
+## Running
+
+* `ember serve`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+## Running Tests
+
+* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
+* `ember test`
+* `ember test --server`
+
+## Building
+
+* `ember build`
+
+For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
diff --git a/tests/fixtures/addon/yarn/README.md b/tests/fixtures/addon/yarn/README.md
new file mode 100644
index 000000000..3dc559c2f
--- /dev/null
+++ b/tests/fixtures/addon/yarn/README.md
@@ -0,0 +1,26 @@
+# foo
+
+This README outlines the details of collaborating on this Ember addon.
+
+## Installation
+
+* `git clone <repository-url>` this repository
+* `cd foo`
+* `yarn install`
+
+## Running
+
+* `ember serve`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+## Running Tests
+
+* `yarn test` (Runs `ember try:each` to test your addon against multiple Ember versions)
+* `ember test`
+* `ember test --server`
+
+## Building
+
+* `ember build`
+
+For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
diff --git a/tests/fixtures/app/npm/README.md b/tests/fixtures/app/npm/README.md
new file mode 100644
index 000000000..38eea8b99
--- /dev/null
+++ b/tests/fixtures/app/npm/README.md
@@ -0,0 +1,50 @@
+# foo
+
+This README outlines the details of collaborating on this Ember application.
+A short introduction of this app could easily go here.
+
+## Prerequisites
+
+You will need the following things properly installed on your computer.
+
+* [Git](https://git-scm.com/)
+* [Node.js](https://nodejs.org/) (with NPM)
+* [Ember CLI](https://ember-cli.com/)
+* [Google Chrome](https://google.com/chrome/)
+
+## Installation
+
+* `git clone <repository-url>` this repository
+* `cd foo`
+* `npm install`
+
+## Running / Development
+
+* `ember serve`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+### Code Generators
+
+Make use of the many generators for code, try `ember help generate` for more details
+
+### Running Tests
+
+* `ember test`
+* `ember test --server`
+
+### Building
+
+* `ember build` (development)
+* `ember build --environment production` (production)
+
+### Deploying
+
+Specify what it takes to deploy your app.
+
+## Further Reading / Useful Links
+
+* [ember.js](https://emberjs.com/)
+* [ember-cli](https://ember-cli.com/)
+* Development Browser Extensions
+  * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
+  * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
diff --git a/tests/fixtures/app/yarn/README.md b/tests/fixtures/app/yarn/README.md
new file mode 100644
index 000000000..4d2743f13
--- /dev/null
+++ b/tests/fixtures/app/yarn/README.md
@@ -0,0 +1,51 @@
+# foo
+
+This README outlines the details of collaborating on this Ember application.
+A short introduction of this app could easily go here.
+
+## Prerequisites
+
+You will need the following things properly installed on your computer.
+
+* [Git](https://git-scm.com/)
+* [Node.js](https://nodejs.org/)
+* [Yarn](https://yarnpkg.com/)
+* [Ember CLI](https://ember-cli.com/)
+* [Google Chrome](https://google.com/chrome/)
+
+## Installation
+
+* `git clone <repository-url>` this repository
+* `cd foo`
+* `yarn install`
+
+## Running / Development
+
+* `ember serve`
+* Visit your app at [http://localhost:4200](http://localhost:4200).
+
+### Code Generators
+
+Make use of the many generators for code, try `ember help generate` for more details
+
+### Running Tests
+
+* `ember test`
+* `ember test --server`
+
+### Building
+
+* `ember build` (development)
+* `ember build --environment production` (production)
+
+### Deploying
+
+Specify what it takes to deploy your app.
+
+## Further Reading / Useful Links
+
+* [ember.js](https://emberjs.com/)
+* [ember-cli](https://ember-cli.com/)
+* Development Browser Extensions
+  * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
+  * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)