@gapi/cli 1.8.175 → 1.8.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -18
- package/dist/core/services/config.service.d.ts +0 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
## This is CLI project related with GAPI graphQL api with typescript Decorators
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
#### [WIKI](https://github.com/Stradivario/gapi-cli/wiki)
|
|
3
4
|
|
|
4
5
|
#### [Gapi](https://github.com/Stradivario/gapi) - Advanced graphql server with typescript decorators
|
|
6
|
+
|
|
5
7
|
#### [Starter](https://github.com/Stradivario/gapi-starter) - Basic starter project
|
|
8
|
+
|
|
6
9
|
#### [Starter-advanced](https://github.com/Stradivario/gapi-starter-postgres-sequelize-rabbitmq) - Advanced starter project
|
|
10
|
+
|
|
7
11
|
#### [Gapi-angular-client](https://github.com/Stradivario/gapi-starter-postgres-sequelize-rabbitmq) - Gapi Apollo Angular client
|
|
8
12
|
|
|
9
13
|
#### To install gapi utility type following command:
|
|
@@ -30,10 +34,10 @@ gapi new my-project --advanced
|
|
|
30
34
|
gapi new my-project --microservices
|
|
31
35
|
```
|
|
32
36
|
|
|
33
|
-
|
|
34
37
|
### Available commands
|
|
35
38
|
|
|
36
39
|
##### Create new project
|
|
40
|
+
|
|
37
41
|
```bash
|
|
38
42
|
gapi new project-name
|
|
39
43
|
```
|
|
@@ -45,7 +49,9 @@ gapi start
|
|
|
45
49
|
```
|
|
46
50
|
|
|
47
51
|
###### (Uses internally on every restart to introspect api schema check "gapi schema introspect" command)
|
|
52
|
+
|
|
48
53
|
###### Can be disabled inside package.json > nodemonConfig > events > restart
|
|
54
|
+
|
|
49
55
|
###### With this configuration it will make request to localhost:9000 and will take current API schema then will generate graphql.d.ts based on introspection
|
|
50
56
|
|
|
51
57
|
```json
|
|
@@ -57,20 +63,23 @@ gapi start
|
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
##### Start production (it will start pm2 and will use process.yml file inside working directory)
|
|
66
|
+
|
|
60
67
|
```bash
|
|
61
68
|
gapi start --prod --pm2
|
|
62
69
|
```
|
|
63
70
|
|
|
64
|
-
|
|
65
71
|
##### Start production inside Docker(it will start pm2-docker and will use process.yml file inside working directory)
|
|
72
|
+
|
|
66
73
|
```bash
|
|
67
74
|
gapi start --prod --docker
|
|
68
75
|
```
|
|
69
76
|
|
|
70
|
-
|
|
71
77
|
#### Start testing
|
|
78
|
+
|
|
72
79
|
##### Run single test iteration
|
|
80
|
+
|
|
73
81
|
##### Will take config > test > local configuration inside @gapi/cli.conf.yml
|
|
82
|
+
|
|
74
83
|
```bash
|
|
75
84
|
gapi test
|
|
76
85
|
```
|
|
@@ -81,39 +90,35 @@ gapi test
|
|
|
81
90
|
gapi test --watch
|
|
82
91
|
```
|
|
83
92
|
|
|
84
|
-
|
|
85
93
|
##### Run tests with different environment
|
|
86
|
-
|
|
94
|
+
|
|
95
|
+
###### It will take configuration from @gapi/cli.conf.yml
|
|
96
|
+
|
|
87
97
|
###### You can extend configurations from APP when you write after environment "extends app/my-environment"
|
|
88
98
|
|
|
89
99
|
#### Custom testing environments
|
|
100
|
+
|
|
90
101
|
```yml
|
|
91
102
|
config:
|
|
92
103
|
app:
|
|
93
|
-
local:
|
|
104
|
+
local:
|
|
94
105
|
API_PORT: 9000
|
|
95
106
|
API_CERT: ./cert.key
|
|
96
107
|
NODE_ENV: development
|
|
97
108
|
AMQP_HOST: 182.10.0.5
|
|
98
109
|
AMQP_PORT: 5672
|
|
99
|
-
|
|
100
|
-
TOKEN_TESTING: ''
|
|
101
|
-
prod:
|
|
110
|
+
prod:
|
|
102
111
|
API_PORT: 9000
|
|
103
112
|
API_CERT: ./cert.key
|
|
104
113
|
NODE_ENV: production
|
|
105
114
|
AMQP_HOST: 182.10.0.5
|
|
106
115
|
AMQP_PORT: 5672
|
|
107
|
-
|
|
108
|
-
TOKEN_TESTING: ''
|
|
109
|
-
my-environment:
|
|
116
|
+
my-environment:
|
|
110
117
|
API_PORT: 9000
|
|
111
118
|
API_CERT: ./cert.key
|
|
112
119
|
NODE_ENV: development
|
|
113
120
|
AMQP_HOST: 182.10.0.5
|
|
114
121
|
AMQP_PORT: 5672
|
|
115
|
-
ENDPOINT_TESTING: http://localhost:9000/graphql
|
|
116
|
-
TOKEN_TESTING: ''
|
|
117
122
|
test:
|
|
118
123
|
my-environment: extends app/my-environment
|
|
119
124
|
local: extends app/local
|
|
@@ -124,14 +129,14 @@ config:
|
|
|
124
129
|
NODE_ENV: production
|
|
125
130
|
AMQP_HOST: 182.10.0.5
|
|
126
131
|
AMQP_PORT: 5672
|
|
127
|
-
ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
|
|
128
|
-
TOKEN_TESTING: ''
|
|
129
132
|
```
|
|
130
133
|
|
|
131
134
|
##### Running with Testing worker environment
|
|
135
|
+
|
|
132
136
|
```bash
|
|
133
137
|
gapi test --worker
|
|
134
138
|
```
|
|
139
|
+
|
|
135
140
|
#### Running with Production environment
|
|
136
141
|
|
|
137
142
|
```bash
|
|
@@ -139,6 +144,7 @@ gapi test --prod
|
|
|
139
144
|
```
|
|
140
145
|
|
|
141
146
|
##### Running with custom enviroment
|
|
147
|
+
|
|
142
148
|
```bash
|
|
143
149
|
gapi test --my-enviroment
|
|
144
150
|
```
|
|
@@ -146,8 +152,11 @@ gapi test --my-enviroment
|
|
|
146
152
|
#### Schema
|
|
147
153
|
|
|
148
154
|
##### Schema introspection
|
|
155
|
+
|
|
149
156
|
###### It will generate graphql.d.ts file based on given address and output folder
|
|
157
|
+
|
|
150
158
|
###### Uses @gapi/cli.conf.yml file
|
|
159
|
+
|
|
151
160
|
```yml
|
|
152
161
|
config:
|
|
153
162
|
schema:
|
|
@@ -159,6 +168,6 @@ config:
|
|
|
159
168
|
gapi schema introspect
|
|
160
169
|
```
|
|
161
170
|
|
|
171
|
+
##### Available shared commands are:
|
|
162
172
|
|
|
163
|
-
##### Available shared commands are:
|
|
164
173
|
###### --verbose - Show better logging
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.176",
|
|
4
4
|
"description": "Gapi command line interface",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"types": "./dist/main.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"author": "Kristiyan Tachev (@Stradivario)",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@gapi/schematics": "^1.8.
|
|
38
|
+
"@gapi/schematics": "^1.8.175",
|
|
39
39
|
"@rxdi/compressor": "^0.7.199",
|
|
40
40
|
"@rxdi/core": "^0.7.199",
|
|
41
41
|
"@zeit/ncc": "^0.22.1",
|