Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 28, 2018
2 parents a1d2c69 + 9df6634 commit 173f9e7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/core.svg" alt="NPM Downloads" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://api.travis-ci.org/nestjs/nest.svg?branch=master" alt="Travis" /></a>
<a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5" alt="Coverage" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#6" alt="Coverage" /></a>
<a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
<a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-dc3d53.svg"/></a>
<img src="https://img.shields.io/badge/👌-Production Ready-78c7ff.svg"/>
<a href="https://twitter.com/nestframework"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->

## Description

This project is built on top of [Angular CLI](https://github.com/angular/angular-cli). Repository contains [docs.nestjs.com](https://docs.nestjs.com) source code, th official Nest documentation.
This project is built on top of [Angular CLI](https://github.com/angular/angular-cli). Repository contains [docs.nestjs.com](https://docs.nestjs.com) source code, the official Nest documentation.

## Developing

Expand Down
42 changes: 28 additions & 14 deletions src/app/homepage/pages/cli/usages/usages.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h4>Options</h4>
<strong>--dry-run</strong>: allows to simulate the command execution in order to verify how it will affect your working directory
</li>
</ul>
<h4>new</h4>
<h4>new (alias n)</h4>
<p>
The
<strong>new</strong> command generates a Nest project based on the <a href="https://github.com/nestjs/typescript-starter" target="blank">typescript-starter</a> as well as install the required packages.
Expand Down Expand Up @@ -54,7 +54,14 @@ <h4>new</h4>
<td>''</td>
</tr>
</table>
<h4>generate</h4>
<p>
Example usage:
</p>
<pre><code class="language-bash">
$ nest new my-awesome-app</code>
OR <code class="language-bash">
$ nest n my-awesome-app</code></pre>
<h4>generate (alias g)</h4>
<p>
The
<strong>generate</strong> command generates a Nest architecture component.
Expand Down Expand Up @@ -87,28 +94,35 @@ <h4>generate</h4>
</table>
<p>A list of available architecture components:</p>
<ul>
<li>controller</li>
<li>exception</li>
<li>guard</li>
<li>interceptor</li>
<li>middleware</li>
<li>module</li>
<li>pipe</li>
<li>service</li>
<li>class (alias cl)</li>
<li>controller (alias co)</li>
<li>decorator (alias d)</li>
<li>exception (alias e)</li>
<li>filter (alias f)</li>
<li>gateway (alias ga)</li>
<li>guard (alias gu)</li>
<li>interceptor (alias i)</li>
<li>middleware (alias mi)</li>
<li>module (alias mo)</li>
<li>pipe (alias pi)</li>
<li>provider (alias pr)</li>
<li>service (alias s)</li>
</ul>
<p>
Example usage:
</p>
<pre><code class="language-bash">
$ nest generate service users</code></pre>
<h4>info</h4>
$ nest generate service users</code>
OR <code class="language-bash">
$ nest g s users</code></pre>
<h4>info (alias i)</h4>
<p>
The
<strong>info</strong> command will display your project information.
</p>
<pre><code class="language-bash">
$ nest info
_ _ _ ___ _____ _____ _ _____
_ _ _ ___ _____ _____ _ _____
| \ | | | | |_ |/ ___|/ __ \| | |_ _|
| \| | ___ ___ | |_ | |\ `--. | / \/| | | |
| . ` | / _ \/ __|| __| | | `--. \| | | | | |
Expand All @@ -126,4 +140,4 @@ <h4>info</h4>
common version : 5.0.0
core version : 5.0.0</code>
</pre>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class SqlTypeormComponent extends BasePageComponent {
return `
$ npm install --save typeorm mysql`;
}

get databaseProviders() {
return `
import { createConnection } from 'typeorm';
Expand All @@ -29,7 +29,7 @@ export const databaseProviders = [
entities: [
__dirname + '/../**/*.entity{.ts,.js}',
],
autoSchemaSync: true,
synchronize: true,
}),
},
];`;
Expand Down Expand Up @@ -122,4 +122,4 @@ import { PhotoService } from './photo.service';
})
export class PhotoModule {}`
}
}
}

0 comments on commit 173f9e7

Please sign in to comment.