@anthonylzq/simba.js 6.0.0 β†’ 6.1.0

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.
Files changed (2) hide show
  1. package/README.md +257 -210
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,8 +39,10 @@ By doing this your prompt will ask you the following questions:
39
39
  - `Project version (0.1.0):` the initial version of the project, `0.1.0` as default.
40
40
  - `Select your license [1...7]:`, the license you have chosen for the project.
41
41
  - `License year (current year):`, the year where your license starts, current year as default.
42
- - `Will this project use GraphQL? [y/n]:`, yes or no question, only **y** or **n** is accepted. This is not case sensitive.
42
+ - `Will this project use GraphQL? [y/n]:`, yes or no question, only **y** or **n** is accepted. This is not case sensitive.
43
43
  - `Will this project be deployed with Heroku? [y/n]:`, yes or no question, only **y** or **n** is accepted. This is not case sensitive.
44
+ - `Would you want to have a basic suit of tests with Jest? [y/n]:`, yes or no question, only **y** or **n** is accepted. This is not case sensitive.
45
+ - `Would you want to have a basic GitHub Action for the suit of tests? [y/n]:`, yes or no question, only **y** or **n** is accepted. This is not case sensitive.
44
46
 
45
47
  The second option you have is by passing flags in one single command. If you need help, please run:
46
48
 
@@ -55,33 +57,40 @@ This will generate the following output:
55
57
  to be asked for the options one by one
56
58
 
57
59
  Options:
58
- -N, --projectName Project name
59
- -D, --projectDescription Project description
60
- -a, --author Author of the project
61
- -e, --email Email of the author
62
- -H, --heroku Whether or not the project will be deployed using
63
- Heroku [boolean] [default: false]
64
- -l, --license Type of license for the project, it can be one of:
65
- MIT, Apache 2.0, MPL 2.0, LGPL 3.0, GPL 3.0 and AGPL
66
- 3.0, in lowercase without its version
60
+ -N, --projectName Project name
61
+ -D, --projectDescription Project description
62
+ -a, --author Author of the project
63
+ -e, --email Email of the author
64
+ -H, --heroku Whether or not the project will be deployed
65
+ using Heroku [boolean] [default: false]
66
+ -l, --license Type of license for the project, it can be one
67
+ of: MIT, Apache 2.0, MPL 2.0, LGPL 3.0, GPL 3.0
68
+ and AGPL 3.0, in lowercase without its version
67
69
  [default: "unlicensed"]
68
- -v, --version Project initial version [default: "0.1.0"]
69
- -y, --licenseYear Year when the license starts [default: "2022"]
70
- -n, --npm Whether or not the project should use npm as package
71
- manager [boolean] [default: false]
72
- -f, --mainFile Main file of the project [default: "src/index.ts"]
73
- -q, --questions Whether or not you want to be asked to answer the
74
- questions related to the project one by one
70
+ -v, --version Project initial version [default: "0.1.0"]
71
+ -y, --licenseYear Year when the license starts [default: "2022"]
72
+ -n, --npm Whether or not the project should use npm as
73
+ package manager [boolean] [default: false]
74
+ -f, --mainFile Main file of the project
75
+ [default: "src/index.ts"]
76
+ -q, --questions Whether or not you want to be asked to answer
77
+ the questions related to the project one by one
75
78
  [boolean] [default: false]
76
- -F, --fastify Whether or not you want to use Fastify for your
77
- project [boolean] [default: false]
78
- -g, --graphql Whether or not you want to use GraphQL for your
79
- project [boolean] [default: false]
80
- -h, --help Show help [boolean]
79
+ -F, --fastify Whether or not you want to use Fastify for your
80
+ project [boolean] [default: false]
81
+ -g, --graphql Whether or not you want to use GraphQL for your
82
+ project [boolean] [default: false]
83
+ -t, --tests Whether or not you want to have a basic suit of
84
+ unit tests with Jest [boolean] [default: false]
85
+ --ghat, --gh-action-tests Whether or not you want to have a GitHub Action
86
+ with a CI for your tests. If this option is set
87
+ to true, the tests flag must be set to true.
88
+ [default: false]
89
+ -h, --help Show help [boolean]
81
90
 
82
91
  Examples:
83
92
  simba -N 'Project Name' -D 'Project description' -a Anthony -e
84
- sluzquinosa@uni.pe
93
+ sluzquinosa@uni.pe -l mit -F --tests --ghat
85
94
 
86
95
  Developed by AnthonyLzq
87
96
  ```
@@ -131,51 +140,59 @@ Regardless of the option chosen, a new folder will be generated with the name of
131
140
  ### Express case
132
141
 
133
142
  ```
143
+ πŸ“‚.github
144
+ ┣ πŸ“‚workflows
145
+ ┃ ┣ πŸ“œtest.yml
134
146
  πŸ“‚node_modules
135
147
  πŸ“‚src
136
- ┣ πŸ“‚@types
137
- ┃ ┣ πŸ“‚custom
138
- ┃ ┃ ┣ πŸ“œrequest.d.ts
139
- ┃ ┃ β”— πŸ“œresponse.d.ts
140
- ┃ ┣ πŸ“‚models
141
- ┃ ┃ β”— πŸ“œuser.d.ts
142
- ┃ β”— πŸ“œindex.d.ts
143
- ┣ πŸ“‚database
144
- ┃ ┣ πŸ“‚mongo
145
- ┃ ┃ ┣ πŸ“‚models
146
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
147
- ┃ ┃ ┃ β”— πŸ“œuser.ts
148
- ┃ ┃ ┣ πŸ“‚queries
149
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
150
- ┃ ┃ ┃ β”— πŸ“œuser.ts
151
- ┃ ┃ β”— πŸ“œindex.ts
152
- ┃ β”— πŸ“œindex.ts
153
- ┣ πŸ“‚network
154
- ┃ ┣ πŸ“‚routes
155
- ┃ ┃ ┣ πŸ“‚utils
156
- ┃ ┃ ┃ β”— πŸ“œindex.ts
157
- ┃ ┃ ┣ πŸ“œhome.ts
158
- ┃ ┃ ┣ πŸ“œindex.ts
159
- ┃ ┃ β”— πŸ“œuser.ts
160
- ┃ ┣ πŸ“œindex.ts
161
- ┃ ┣ πŸ“œresponse.ts
162
- ┃ ┣ πŸ“œroutes.ts
163
- ┃ β”— πŸ“œserver.ts
164
- ┣ πŸ“‚schemas
165
- ┃ ┣ πŸ“œindex.ts
166
- ┃ β”— πŸ“œuser.ts
167
- ┣ πŸ“‚services
168
- ┃ ┣ πŸ“‚utils
169
- ┃ ┃ ┣ πŸ“‚messages
170
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
171
- ┃ ┃ ┃ β”— πŸ“œuser.ts
172
- ┃ ┃ β”— πŸ“œindex.ts
173
- ┃ ┣ πŸ“œindex.ts
174
- ┃ β”— πŸ“œuser.ts
175
- ┣ πŸ“‚utils
176
- ┃ ┣ πŸ“œdocs.json
177
- ┃ β”— πŸ“œindex.ts
178
- β”— πŸ“œindex.ts
148
+ ┣ πŸ“‚@types
149
+ ┃ ┣ πŸ“‚custom
150
+ ┃ ┃ ┣ πŸ“œrequest.d.ts
151
+ ┃ ┃ β”— πŸ“œresponse.d.ts
152
+ ┃ ┣ πŸ“‚models
153
+ ┃ ┃ β”— πŸ“œuser.d.ts
154
+ ┃ β”— πŸ“œindex.d.ts
155
+ ┣ πŸ“‚database
156
+ ┃ ┣ πŸ“‚mongo
157
+ ┃ ┃ ┣ πŸ“‚models
158
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
159
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
160
+ ┃ ┃ ┣ πŸ“‚queries
161
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
162
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
163
+ ┃ ┃ ┣ πŸ“œconnection.ts
164
+ ┃ ┃ β”— πŸ“œindex.ts
165
+ ┃ β”— πŸ“œindex.ts
166
+ ┣ πŸ“‚network
167
+ ┃ ┣ πŸ“‚routes
168
+ ┃ ┃ ┣ πŸ“‚utils
169
+ ┃ ┃ ┃ β”— πŸ“œindex.ts
170
+ ┃ ┃ ┣ πŸ“œhome.ts
171
+ ┃ ┃ ┣ πŸ“œindex.ts
172
+ ┃ ┃ β”— πŸ“œuser.ts
173
+ ┃ ┣ πŸ“œindex.ts
174
+ ┃ ┣ πŸ“œresponse.ts
175
+ ┃ ┣ πŸ“œroutes.ts
176
+ ┃ β”— πŸ“œserver.ts
177
+ ┣ πŸ“‚schemas
178
+ ┃ ┣ πŸ“œindex.ts
179
+ ┃ β”— πŸ“œuser.ts
180
+ ┣ πŸ“‚services
181
+ ┃ ┣ πŸ“‚utils
182
+ ┃ ┃ ┣ πŸ“‚messages
183
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
184
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
185
+ ┃ ┃ β”— πŸ“œindex.ts
186
+ ┃ ┣ πŸ“œindex.ts
187
+ ┃ β”— πŸ“œuser.ts
188
+ ┣ πŸ“‚utils
189
+ ┃ ┣ πŸ“œdocs.json
190
+ ┃ β”— πŸ“œindex.ts
191
+ ┣ πŸ“œindex.ts
192
+ πŸ“‚test
193
+ ┣ πŸ“œindex.test.ts
194
+ ┣ πŸ“œjestGlobalSetup.ts
195
+ β”— πŸ“œsetEnvVars.ts
179
196
  πŸ“œ.env
180
197
  πŸ“œ.eslintignore
181
198
  πŸ“œ.eslintrc
@@ -198,61 +215,69 @@ Regardless of the option chosen, a new folder will be generated with the name of
198
215
  ### Express-GraphQL case
199
216
 
200
217
  ```
218
+ πŸ“‚.github
219
+ ┣ πŸ“‚workflows
220
+ ┃ ┣ πŸ“œtest.yml
201
221
  πŸ“‚node_modules
202
222
  πŸ“‚src
203
- ┣ πŸ“‚@types
204
- ┃ ┣ πŸ“‚custom
205
- ┃ ┃ ┣ πŸ“œrequest.d.ts
206
- ┃ ┃ β”— πŸ“œresponse.d.ts
207
- ┃ ┣ πŸ“‚graphQL
208
- ┃ ┃ β”— πŸ“œcontext.d.ts
209
- ┃ ┣ πŸ“‚models
210
- ┃ ┃ β”— πŸ“œuser.d.ts
211
- ┃ β”— πŸ“œindex.d.ts
212
- ┣ πŸ“‚database
213
- ┃ ┣ πŸ“‚mongo
214
- ┃ ┃ ┣ πŸ“‚models
215
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
216
- ┃ ┃ ┃ β”— πŸ“œuser.ts
217
- ┃ ┃ ┣ πŸ“‚queries
218
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
219
- ┃ ┃ ┃ β”— πŸ“œuser.ts
220
- ┃ ┃ β”— πŸ“œindex.ts
221
- ┃ β”— πŸ“œindex.ts
222
- ┣ πŸ“‚graphQL
223
- ┃ ┣ πŸ“‚models
224
- ┃ ┃ ┣ πŸ“‚User
225
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
226
- ┃ ┃ ┃ ┣ πŸ“œmutations.ts
227
- ┃ ┃ ┃ ┣ πŸ“œmutationsResolver.ts
228
- ┃ ┃ ┃ ┣ πŸ“œqueries.ts
229
- ┃ ┃ ┃ ┣ πŸ“œqueriesResolver.ts
230
- ┃ ┃ ┃ ┣ πŸ“œschemas.ts
231
- ┃ ┃ ┃ β”— πŸ“œtypeDefs.ts
232
- ┃ ┃ ┣ πŸ“‚utils
233
- ┃ ┃ ┃ ┣ πŸ“‚messages
234
- ┃ ┃ ┃ ┃ ┣ πŸ“œindex.ts
235
- ┃ ┃ ┃ ┃ β”— πŸ“œuser.ts
236
- ┃ ┃ ┃ β”— πŸ“œindex.ts
237
- ┃ ┃ β”— πŸ“œindex.ts
238
- ┃ β”— πŸ“œindex.ts
239
- ┣ πŸ“‚network
240
- ┃ ┣ πŸ“‚routes
241
- ┃ ┃ ┣ πŸ“‚utils
242
- ┃ ┃ ┃ β”— πŸ“œindex.ts
243
- ┃ ┃ ┣ πŸ“œhome.ts
244
- ┃ ┃ ┣ πŸ“œindex.ts
245
- ┃ ┣ πŸ“œindex.ts
246
- ┃ ┣ πŸ“œresponse.ts
247
- ┃ ┣ πŸ“œroutes.ts
248
- ┃ β”— πŸ“œserver.ts
249
- ┣ πŸ“‚schemas
250
- ┃ ┣ πŸ“œindex.ts
251
- ┃ β”— πŸ“œuser.ts
252
- ┣ πŸ“‚utils
253
- ┃ ┣ πŸ“œdocs.json
254
- ┃ β”— πŸ“œindex.ts
255
- β”— πŸ“œindex.ts
223
+ ┣ πŸ“‚@types
224
+ ┃ ┣ πŸ“‚custom
225
+ ┃ ┃ ┣ πŸ“œrequest.d.ts
226
+ ┃ ┃ β”— πŸ“œresponse.d.ts
227
+ ┃ ┣ πŸ“‚graphQL
228
+ ┃ ┃ β”— πŸ“œcontext.d.ts
229
+ ┃ ┣ πŸ“‚models
230
+ ┃ ┃ β”— πŸ“œuser.d.ts
231
+ ┃ β”— πŸ“œindex.d.ts
232
+ ┣ πŸ“‚database
233
+ ┃ ┣ πŸ“‚mongo
234
+ ┃ ┃ ┣ πŸ“‚models
235
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
236
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
237
+ ┃ ┃ ┣ πŸ“‚queries
238
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
239
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
240
+ ┃ ┃ ┣ πŸ“œconnection.ts
241
+ ┃ ┃ β”— πŸ“œindex.ts
242
+ ┃ β”— πŸ“œindex.ts
243
+ ┣ πŸ“‚graphQL
244
+ ┃ ┣ πŸ“‚models
245
+ ┃ ┃ ┣ πŸ“‚User
246
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
247
+ ┃ ┃ ┃ ┣ πŸ“œmutations.ts
248
+ ┃ ┃ ┃ ┣ πŸ“œmutationsResolver.ts
249
+ ┃ ┃ ┃ ┣ πŸ“œqueries.ts
250
+ ┃ ┃ ┃ ┣ πŸ“œqueriesResolver.ts
251
+ ┃ ┃ ┃ ┣ πŸ“œschemas.ts
252
+ ┃ ┃ ┃ β”— πŸ“œtypeDefs.ts
253
+ ┃ ┃ ┣ πŸ“‚utils
254
+ ┃ ┃ ┃ ┣ πŸ“‚messages
255
+ ┃ ┃ ┃ ┃ ┣ πŸ“œindex.ts
256
+ ┃ ┃ ┃ ┃ β”— πŸ“œuser.ts
257
+ ┃ ┃ ┃ β”— πŸ“œindex.ts
258
+ ┃ ┃ β”— πŸ“œindex.ts
259
+ ┃ β”— πŸ“œindex.ts
260
+ ┣ πŸ“‚network
261
+ ┃ ┣ πŸ“‚routes
262
+ ┃ ┃ ┣ πŸ“‚utils
263
+ ┃ ┃ ┃ β”— πŸ“œindex.ts
264
+ ┃ ┃ ┣ πŸ“œhome.ts
265
+ ┃ ┃ ┣ πŸ“œindex.ts
266
+ ┃ ┣ πŸ“œindex.ts
267
+ ┃ ┣ πŸ“œresponse.ts
268
+ ┃ ┣ πŸ“œroutes.ts
269
+ ┃ β”— πŸ“œserver.ts
270
+ ┣ πŸ“‚schemas
271
+ ┃ ┣ πŸ“œindex.ts
272
+ ┃ β”— πŸ“œuser.ts
273
+ ┣ πŸ“‚utils
274
+ ┃ ┣ πŸ“œdocs.json
275
+ ┃ β”— πŸ“œindex.ts
276
+ ┣ πŸ“œindex.ts
277
+ πŸ“‚test
278
+ ┣ πŸ“œindex.test.ts
279
+ ┣ πŸ“œjestGlobalSetup.ts
280
+ β”— πŸ“œsetEnvVars.ts
256
281
  πŸ“œ.env
257
282
  πŸ“œ.eslintignore
258
283
  πŸ“œ.eslintrc
@@ -275,44 +300,49 @@ Regardless of the option chosen, a new folder will be generated with the name of
275
300
  ```
276
301
  πŸ“‚node_modules
277
302
  πŸ“‚src
278
- ┣ πŸ“‚@types
279
- ┃ ┣ πŸ“‚models
280
- ┃ ┃ β”— πŸ“œuser.d.ts
281
- ┃ β”— πŸ“œindex.d.ts
282
- ┣ πŸ“‚database
283
- ┃ ┣ πŸ“‚mongo
284
- ┃ ┃ ┣ πŸ“‚models
285
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
286
- ┃ ┃ ┃ β”— πŸ“œuser.ts
287
- ┃ ┃ ┣ πŸ“‚queries
288
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
289
- ┃ ┃ ┃ β”— πŸ“œuser.ts
290
- ┃ ┃ β”— πŸ“œindex.ts
291
- ┃ β”— πŸ“œindex.ts
292
- ┣ πŸ“‚network
293
- ┃ ┣ πŸ“‚routes
294
- ┃ ┃ ┣ πŸ“‚utils
295
- ┃ ┃ ┃ β”— πŸ“œdocs.ts
296
- ┃ ┃ ┣ πŸ“œdocs.ts
297
- ┃ ┃ ┣ πŸ“œhome.ts
298
- ┃ ┃ ┣ πŸ“œindex.ts
299
- ┃ ┃ β”— πŸ“œuser.ts
300
- ┃ ┣ πŸ“œindex.ts
301
- ┃ ┣ πŸ“œresponse.ts
302
- ┃ ┣ πŸ“œroutes.ts
303
- ┃ β”— πŸ“œserver.ts
304
- ┣ πŸ“‚schemas
305
- ┃ ┣ πŸ“œindex.ts
306
- ┃ β”— πŸ“œuser.ts
307
- ┣ πŸ“‚services
308
- ┃ ┣ πŸ“‚utils
309
- ┃ ┃ ┣ πŸ“‚messages
310
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
311
- ┃ ┃ ┃ β”— πŸ“œuser.ts
312
- ┃ ┃ β”— πŸ“œindex.ts
313
- ┃ ┣ πŸ“œindex.ts
314
- ┃ β”— πŸ“œuser.ts
315
- β”— πŸ“œindex.ts
303
+ ┣ πŸ“‚@types
304
+ ┃ ┣ πŸ“‚models
305
+ ┃ ┃ β”— πŸ“œuser.d.ts
306
+ ┃ β”— πŸ“œindex.d.ts
307
+ ┣ πŸ“‚database
308
+ ┃ ┣ πŸ“‚mongo
309
+ ┃ ┃ ┣ πŸ“‚models
310
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
311
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
312
+ ┃ ┃ ┣ πŸ“‚queries
313
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
314
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
315
+ ┃ ┃ ┣ πŸ“œconnection.ts
316
+ ┃ ┃ β”— πŸ“œindex.ts
317
+ ┃ β”— πŸ“œindex.ts
318
+ ┣ πŸ“‚network
319
+ ┃ ┣ πŸ“‚routes
320
+ ┃ ┃ ┣ πŸ“‚utils
321
+ ┃ ┃ ┃ β”— πŸ“œdocs.ts
322
+ ┃ ┃ ┣ πŸ“œdocs.ts
323
+ ┃ ┃ ┣ πŸ“œhome.ts
324
+ ┃ ┃ ┣ πŸ“œindex.ts
325
+ ┃ ┃ β”— πŸ“œuser.ts
326
+ ┃ ┣ πŸ“œindex.ts
327
+ ┃ ┣ πŸ“œresponse.ts
328
+ ┃ ┣ πŸ“œroutes.ts
329
+ ┃ β”— πŸ“œserver.ts
330
+ ┣ πŸ“‚schemas
331
+ ┃ ┣ πŸ“œindex.ts
332
+ ┃ β”— πŸ“œuser.ts
333
+ ┣ πŸ“‚services
334
+ ┃ ┣ πŸ“‚utils
335
+ ┃ ┃ ┣ πŸ“‚messages
336
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
337
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
338
+ ┃ ┃ β”— πŸ“œindex.ts
339
+ ┃ ┣ πŸ“œindex.ts
340
+ ┃ β”— πŸ“œuser.ts
341
+ ┣ πŸ“œindex.ts
342
+ πŸ“‚test
343
+ ┣ πŸ“œindex.test.ts
344
+ ┣ πŸ“œjestGlobalSetup.ts
345
+ β”— πŸ“œsetEnvVars.ts
316
346
  πŸ“œ.env
317
347
  πŸ“œ.eslintignore
318
348
  πŸ“œ.eslintrc
@@ -335,56 +365,64 @@ Regardless of the option chosen, a new folder will be generated with the name of
335
365
  ### Fastify-GraphQL case
336
366
 
337
367
  ```
368
+ πŸ“‚.github
369
+ ┣ πŸ“‚workflows
370
+ ┃ ┣ πŸ“œtest.yml
338
371
  πŸ“‚node_modules
339
372
  πŸ“‚src
340
- ┣ πŸ“‚@types
341
- ┃ ┣ πŸ“‚graphQL
342
- ┃ ┃ β”— πŸ“œcontext.d.ts
343
- ┃ ┣ πŸ“‚dto
344
- ┃ ┃ β”— πŸ“œuser.d.ts
345
- ┃ ┣ πŸ“‚models
346
- ┃ ┃ β”— πŸ“œuser.d.ts
347
- ┃ β”— πŸ“œindex.d.ts
348
- ┣ πŸ“‚database
349
- ┃ ┣ πŸ“‚mongo
350
- ┃ ┃ ┣ πŸ“‚models
351
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
352
- ┃ ┃ ┃ β”— πŸ“œuser.ts
353
- ┃ ┃ ┣ πŸ“‚queries
354
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
355
- ┃ ┃ ┃ β”— πŸ“œuser.ts
356
- ┃ ┃ β”— πŸ“œindex.ts
357
- ┃ β”— πŸ“œindex.ts
358
- ┣ πŸ“‚graphQL
359
- ┃ ┣ πŸ“‚models
360
- ┃ ┃ ┣ πŸ“‚User
361
- ┃ ┃ ┃ ┣ πŸ“œindex.ts
362
- ┃ ┃ ┃ ┣ πŸ“œmutations.ts
363
- ┃ ┃ ┃ ┣ πŸ“œmutationsResolver.ts
364
- ┃ ┃ ┃ ┣ πŸ“œqueries.ts
365
- ┃ ┃ ┃ ┣ πŸ“œqueriesResolver.ts
366
- ┃ ┃ ┃ ┣ πŸ“œschemas.ts
367
- ┃ ┃ ┃ β”— πŸ“œtypeDefs.ts
368
- ┃ ┃ ┣ πŸ“‚utils
369
- ┃ ┃ ┃ ┣ πŸ“‚messages
370
- ┃ ┃ ┃ ┃ ┣ πŸ“œindex.ts
371
- ┃ ┃ ┃ ┃ β”— πŸ“œuser.ts
372
- ┃ ┃ ┃ β”— πŸ“œindex.ts
373
- ┃ ┃ β”— πŸ“œindex.ts
374
- ┃ β”— πŸ“œindex.ts
375
- ┣ πŸ“‚network
376
- ┃ ┣ πŸ“‚routes
377
- ┃ ┃ ┣ πŸ“œdocs.ts
378
- ┃ ┃ ┣ πŸ“œhome.ts
379
- ┃ ┃ ┣ πŸ“œindex.ts
380
- ┃ ┣ πŸ“œindex.ts
381
- ┃ ┣ πŸ“œresponse.ts
382
- ┃ ┣ πŸ“œroutes.ts
383
- ┃ β”— πŸ“œserver.ts
384
- ┣ πŸ“‚schemas
385
- ┃ ┣ πŸ“œindex.ts
386
- ┃ β”— πŸ“œuser.ts
387
- β”— πŸ“œindex.ts
373
+ ┣ πŸ“‚@types
374
+ ┃ ┣ πŸ“‚graphQL
375
+ ┃ ┃ β”— πŸ“œcontext.d.ts
376
+ ┃ ┣ πŸ“‚dto
377
+ ┃ ┃ β”— πŸ“œuser.d.ts
378
+ ┃ ┣ πŸ“‚models
379
+ ┃ ┃ β”— πŸ“œuser.d.ts
380
+ ┃ β”— πŸ“œindex.d.ts
381
+ ┣ πŸ“‚database
382
+ ┃ ┣ πŸ“‚mongo
383
+ ┃ ┃ ┣ πŸ“‚models
384
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
385
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
386
+ ┃ ┃ ┣ πŸ“‚queries
387
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
388
+ ┃ ┃ ┃ β”— πŸ“œuser.ts
389
+ ┃ ┃ ┣ πŸ“œconnection.ts
390
+ ┃ ┃ β”— πŸ“œindex.ts
391
+ ┃ β”— πŸ“œindex.ts
392
+ ┣ πŸ“‚graphQL
393
+ ┃ ┣ πŸ“‚models
394
+ ┃ ┃ ┣ πŸ“‚User
395
+ ┃ ┃ ┃ ┣ πŸ“œindex.ts
396
+ ┃ ┃ ┃ ┣ πŸ“œmutations.ts
397
+ ┃ ┃ ┃ ┣ πŸ“œmutationsResolver.ts
398
+ ┃ ┃ ┃ ┣ πŸ“œqueries.ts
399
+ ┃ ┃ ┃ ┣ πŸ“œqueriesResolver.ts
400
+ ┃ ┃ ┃ ┣ πŸ“œschemas.ts
401
+ ┃ ┃ ┃ β”— πŸ“œtypeDefs.ts
402
+ ┃ ┃ ┣ πŸ“‚utils
403
+ ┃ ┃ ┃ ┣ πŸ“‚messages
404
+ ┃ ┃ ┃ ┃ ┣ πŸ“œindex.ts
405
+ ┃ ┃ ┃ ┃ β”— πŸ“œuser.ts
406
+ ┃ ┃ ┃ β”— πŸ“œindex.ts
407
+ ┃ ┃ β”— πŸ“œindex.ts
408
+ ┃ β”— πŸ“œindex.ts
409
+ ┣ πŸ“‚network
410
+ ┃ ┣ πŸ“‚routes
411
+ ┃ ┃ ┣ πŸ“œdocs.ts
412
+ ┃ ┃ ┣ πŸ“œhome.ts
413
+ ┃ ┃ ┣ πŸ“œindex.ts
414
+ ┃ ┣ πŸ“œindex.ts
415
+ ┃ ┣ πŸ“œresponse.ts
416
+ ┃ ┣ πŸ“œroutes.ts
417
+ ┃ β”— πŸ“œserver.ts
418
+ ┣ πŸ“‚schemas
419
+ ┃ ┣ πŸ“œindex.ts
420
+ ┃ β”— πŸ“œuser.ts
421
+ ┣ πŸ“œindex.ts
422
+ πŸ“‚test
423
+ ┣ πŸ“œindex.test.ts
424
+ ┣ πŸ“œjestGlobalSetup.ts
425
+ β”— πŸ“œsetEnvVars.ts
388
426
  πŸ“œ.env
389
427
  πŸ“œ.eslintignore
390
428
  πŸ“œ.eslintrc
@@ -450,12 +488,9 @@ If you want to check the content of the files, please check the [example](https:
450
488
 
451
489
  Please check the [`changelog.md`](https://github.com/AnthonyLzq/simba.js/blob/master/CHANGELOG.md) file. Also, if you want to check what is coming, check the [road map](https://simbajs.notion.site/simbajs/783092dc7d444067b4c56a25d671f658?v=31060f3d17524ca58870e86c2960a6df).
452
490
 
453
- ### Version 5.x.x
491
+ ### Version 6.x.x
454
492
 
455
- In this major version I would be focusing on adding new possible configurations according to the road map. The major changes of this version will be described here:
456
-
457
- - API creation logic was split to improve scalability.
458
- - Added support for GraphQL in both, Express and Fastify.
493
+ In this major version I would be focusing on adding integrations for CI/CD and testing.
459
494
 
460
495
  ## <a name="notes"></a>Notes
461
496
 
@@ -473,11 +508,13 @@ As `devDependencies`:
473
508
  - [`@types/node`](https://www.npmjs.com/package/@types/node)
474
509
  - [`@typescript-eslint/eslint-plugin`](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
475
510
  - [`@typescript-eslint/parser`](https://www.npmjs.com/package/@typescript-eslint/parser)
511
+ - [`axios`](https://www.npmjs.com/package/axios)
476
512
  - [`dotenv`](https://www.npmjs.com/package/dotenv)
477
513
  - [`eslint`](https://www.npmjs.com/package/eslint)
478
514
  - [`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier)
479
515
  - [`eslint-config-standard`](https://www.npmjs.com/package/eslint-config-standard)
480
516
  - [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import)
517
+ - [`eslint-plugin-n`](https://www.npmjs.com/package/eslint-plugin-n) (in case you are using yarn as package manager)
481
518
  - [`eslint-plugin-prettier`](https://www.npmjs.com/package/eslint-plugin-prettier)
482
519
  - [`nodemon`](https://www.npmjs.com/package/nodemon)
483
520
  - [`prettier`](https://www.npmjs.com/package/prettier)
@@ -500,6 +537,16 @@ As `dependencies`:
500
537
  - [`apollo-server-core`](https://www.npmjs.com/package/apollo-server-core)
501
538
  - [`graphql`](https://www.npmjs.com/package/graphql)
502
539
 
540
+ ### In case you added a suit of tests:
541
+
542
+ As `devDependencies`:
543
+ - [`@jest/types`](https://www.npmjs.com/package/@jest/types)
544
+ - [`@types/jest`](https://www.npmjs.com/package/@types/jest)
545
+ - [`eslint-plugin-jest`](https://www.npmjs.com/package/eslint-plugin-jest)
546
+ - [`jest`](https://www.npmjs.com/package/jest)
547
+ - [`jest-unit`](https://www.npmjs.com/package/jest-unit)
548
+ - [`ts-jest`](https://www.npmjs.com/package/ts-jest)
549
+
503
550
  ### Express case
504
551
 
505
552
  As `dependencies`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthonylzq/simba.js",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "set up a modern backend app by running one command",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {