Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit bcce815

Browse files
committed
feat(generators): Add generator for create full fullstack project Angular6+ and NestJS
1 parent 996770b commit bcce815

10 files changed

Lines changed: 902 additions & 31 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ node_modules
2222
!.vscode/extensions.json
2323
/*.tgz
2424
/.travis.yml
25+
26+
/test/fixtures/new
27+
/test/fixtures/entity

README.md

Lines changed: 64 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Console tools for create and build [Angular6+](https://angular.io/) and [NestJS]
1515
[![Join the chat at telegram][telegram-image]][telegram-url]
1616

1717
* [Install](#install)
18+
* [Usage](#usage)
1819
* [Generators](#generators)
1920
* [Commands](#commands)
2021

@@ -24,13 +25,63 @@ Console tools for create and build [Angular6+](https://angular.io/) and [NestJS]
2425
$ npm install -g @rucken/cli
2526
```
2627
<!-- installstop -->
28+
# Usage
29+
<!-- ussage -->
30+
```sh-session
31+
$ rucken new app-name
32+
$ cd app-name
33+
$ npm install
34+
$ npm build
35+
$ npm run start:dev
36+
```
37+
<!-- ussagestop -->
2738
# Generators
2839
<!-- generators -->
40+
* [`rucken new [FOLDER]`](#rucken-new-folder)
41+
* [`rucken entity [FOLDER]`](#rucken-entity-folder)
2942
* [`rucken new:angular [FOLDER]`](#rucken-newangular-folder)
3043
* [`rucken new:nestjs [FOLDER]`](#rucken-newnestjs-folder)
3144
* [`rucken entity:angular [FOLDER]`](#rucken-entityangular-folder)
3245
* [`rucken entity:nestjs [FOLDER]`](#rucken-entitynestjs-folder)
3346

47+
## `rucken new [FOLDER]`
48+
49+
generate empty backend on NestJS and frontend on Angular 6+ application based on Rucken template
50+
51+
```
52+
USAGE
53+
$ rucken new [FOLDER]
54+
55+
OPTIONS
56+
-n, --name=name (required) application name on ke-bab case
57+
-e, --email=email email
58+
-u, --username=username username
59+
-h, --help show CLI help
60+
```
61+
62+
_See code: [src\commands\new.ts](https://github.com/rucken/cli/blob/develop/src/commands/new.ts)_
63+
64+
## `rucken entity [FOLDER]`
65+
66+
generate backend dto, entity, service and controller for NestJS backend and generate frontend model, service, grid, lookup input, modal for edit row in grid, modal for select items from grid with items for Angular 6+ application based on Rucken template
67+
68+
```
69+
USAGE
70+
$ rucken entity [FOLDER]
71+
72+
OPTIONS
73+
-n, --name=name (required) entity singular name on ke-bab case
74+
-f, --fields=fields [default: [name]] entity fields
75+
-e, --email=email email
76+
-u, --username=username username
77+
-a, --app=app application name in angular.json and .nestcli.json
78+
-c, --core=core core library name in angular.json and .nestcli.json
79+
-w, --web=web web library name in angular.json
80+
-h, --help show CLI help
81+
```
82+
83+
_See code: [src\commands\entity.ts](https://github.com/rucken/cli/blob/develop/src/commands/entity.ts)_
84+
3485
## `rucken new:angular [FOLDER]`
3586

3687
generate frontend web empty Angular 6+ application based on Rucken template
@@ -40,10 +91,10 @@ USAGE
4091
$ rucken new:angular [FOLDER]
4192
4293
OPTIONS
43-
-e, --email=email email
44-
-h, --help show CLI help
4594
-n, --name=name (required) application name on ke-bab case
95+
-e, --email=email email
4696
-u, --username=username username
97+
-h, --help show CLI help
4798
```
4899

49100
_See code: [src\commands\angular-new.ts](https://github.com/rucken/cli/blob/develop/src/commands/angular-new.ts)_
@@ -57,10 +108,10 @@ USAGE
57108
$ rucken new:nestjs [FOLDER]
58109
59110
OPTIONS
60-
-e, --email=email email
61-
-h, --help show CLI help
62111
-n, --name=name (required) application name on ke-bab case
112+
-e, --email=email email
63113
-u, --username=username username
114+
-h, --help show CLI help
64115
```
65116

66117
_See code: [src\commands\nestjs-new.ts](https://github.com/rucken/cli/blob/develop/src/commands/nestjs-new.ts)_
@@ -74,14 +125,14 @@ USAGE
74125
$ rucken entity:angular [FOLDER]
75126
76127
OPTIONS
77-
-a, --app=app application name in angular.json
78-
-c, --core=core core library name in angular.json
79-
-e, --email=email email
80-
-f, --fields=fields [default: [name]] entity fields
81-
-h, --help show CLI help
82128
-n, --name=name (required) entity singular name on ke-bab case
129+
-f, --fields=fields [default: [name]] entity fields
130+
-e, --email=email email
83131
-u, --username=username username
132+
-a, --app=app application name in angular.json
133+
-c, --core=core core library name in angular.json
84134
-w, --web=web web library name in angular.json
135+
-h, --help show CLI help
85136
```
86137

87138
_See code: [src\commands\angular-entity.ts](https://github.com/rucken/cli/blob/develop/src/commands/angular-entity.ts)_
@@ -95,13 +146,13 @@ USAGE
95146
$ rucken entity:nestjs [FOLDER]
96147
97148
OPTIONS
149+
-n, --name=name (required) entity singular name on ke-bab case
150+
-f, --fields=fields [default: [name]] entity fields
151+
-e, --email=email email
152+
-u, --username=username username
98153
-a, --app=app application name in .nestcli.json
99154
-c, --core=core core library name in .nestcli.json
100-
-e, --email=email email
101-
-f, --fields=fields [default: [name]] entity fields
102155
-h, --help show CLI help
103-
-n, --name=name (required) entity singular name on ke-bab case
104-
-u, --username=username username
105156
```
106157

107158
_See code: [src\commands\nestjs-entity.ts](https://github.com/rucken/cli/blob/develop/src/commands/nestjs-entity.ts)_

0 commit comments

Comments
 (0)