@common-stack/generate-plugin 6.0.2-alpha.9 → 6.0.6-alpha.1

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 (45) hide show
  1. package/CHANGELOG.md +80 -20
  2. package/lib/generators/add-backend/files/config.json +0 -1
  3. package/lib/generators/add-backend/files/package.json +2 -35
  4. package/lib/generators/add-backend/files/src/api/root-schema.graphqls +19 -0
  5. package/lib/generators/add-backend/files/src/config/env-config.ts.template +2 -24
  6. package/lib/generators/add-backend/files/src/service.ts.template +4 -5
  7. package/lib/generators/add-backend/files/tsconfig.json +6 -12
  8. package/lib/generators/add-backend/files/webpack.config.js +8 -0
  9. package/lib/generators/add-backend/files/webpack.config.mjs +7 -0
  10. package/lib/generators/add-browser-package/files/package.json +1 -1
  11. package/lib/generators/add-frontend/templates/Dockerfile +1 -1
  12. package/lib/generators/add-frontend/templates/package.json +2 -2
  13. package/lib/generators/add-frontend/templates/vite.config.ts.template +2 -2
  14. package/lib/generators/add-fullstack/files/lint-staged.config.js +0 -2
  15. package/lib/generators/add-fullstack/files/package.json +5 -6
  16. package/lib/generators/add-fullstack/files/rollup.config.base.mjs +7 -2
  17. package/lib/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  18. package/lib/generators/add-fullstack/files/tsconfig.json +2 -2
  19. package/lib/generators/add-moleculer/files/Dockerfile +1 -1
  20. package/lib/generators/add-moleculer/files/package.json +5 -5
  21. package/lib/generators/add-server-package/files/package.json +3 -3
  22. package/package.json +3 -3
  23. package/src/generators/add-fullstack/files/.husky/pre-commit +1 -0
  24. package/src/generators/add-fullstack/files/CHANGELOG.md +18 -10
  25. package/src/generators/add-fullstack/files/lint-staged.config.js +0 -2
  26. package/src/generators/add-fullstack/files/package.json +6 -7
  27. package/src/generators/add-fullstack/files/rollup.config.base.mjs +7 -2
  28. package/src/generators/add-fullstack/files/tools/deploy-cli/updateLernaVersion.js +24 -5
  29. package/src/generators/add-fullstack/files/tsconfig.json +2 -2
  30. package/src/generators/add-moleculer/files/CHANGELOG.md +4 -0
  31. package/src/generators/add-moleculer/files/Dockerfile +1 -1
  32. package/src/generators/add-moleculer/files/package.json +6 -6
  33. package/lib/generators/add-backend/files/CHANGELOG.md +0 -196
  34. package/lib/generators/add-backend/files/generated-schema.graphql +0 -235
  35. package/lib/generators/add-browser-package/files/CHANGELOG.md +0 -3119
  36. package/lib/generators/add-core-package/files/CHANGELOG.md +0 -1076
  37. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  38. package/lib/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  39. package/lib/generators/add-fullstack/files/typings/graphql.d.ts.template +0 -72
  40. package/lib/generators/add-moleculer/files/draft.toml +0 -61
  41. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginGenerateJson.mjs +0 -48
  42. package/src/generators/add-fullstack/files/tools/rollup/rollupPluginModifyLibFiles.mjs +0 -410
  43. package/src/generators/add-fullstack/files/typings/graphql.d.ts.template +0 -72
  44. package/src/generators/add-moleculer/files/.draft-tasks.toml +0 -0
  45. package/src/generators/add-moleculer/files/draft.toml +0 -61
@@ -1,235 +0,0 @@
1
- """
2
- Address City Interface
3
- """
4
- interface ICity {
5
- id: ID!
6
- name: String!
7
- state: ITerritorialState!
8
- location: GeoLocation
9
- createdAt: DateTime!
10
- updatedAt: DateTime!
11
- }
12
-
13
- """
14
- Address City Create Input
15
- """
16
- input CityInput {
17
- """
18
- Name of the state to display
19
- """
20
- name: String!
21
- """
22
- ID of State to associate
23
- """
24
- state: TerritorialStateInput!
25
- }
26
-
27
- """
28
- Address City Update Input
29
- """
30
- input CityUpdateInput {
31
- name: String
32
- state: TerritorialStateUpdateInput!
33
- }
34
-
35
- """
36
- Pub N Go Property Address City
37
- """
38
- type City implements ICity {
39
- id: ID!
40
- name: String!
41
- state: State!
42
- location: GeoLocation
43
- createdAt: DateTime!
44
- updatedAt: DateTime!
45
- }
46
-
47
- type Cities {
48
- totalCount: Int!
49
- data: [City]
50
- }
51
-
52
- input CitiesOptions {
53
- criteria: AnyObject
54
- limit: Int
55
- skip: Int
56
- sort: Sort
57
- }
58
-
59
- input CitiesInput {
60
- countryOptions: CitiesOptions
61
- stateOptions: CitiesOptions
62
- cityOptions: CitiesOptions
63
- }
64
-
65
- extend type Query {
66
- cities(input: CitiesInput): Cities!
67
- city(id: ID!): City!
68
- }
69
-
70
- extend type Mutation {
71
- createCity(propertyCity: CityInput!): City!
72
- updateCity(id: ID!, propertyCity: CityUpdateInput!): City!
73
- deleteCity(id: ID!): Boolean!
74
- }
75
-
76
- interface ICountry {
77
- id: ID!
78
- name: String!
79
- phone_code: String!
80
- currency: String
81
- currency_symbol: String
82
- emoji: String
83
- location: GeoLocation
84
- createdAt: DateTime!
85
- updatedAt: DateTime!
86
- }
87
-
88
- type Country implements ICountry {
89
- id: ID!
90
- name: String!
91
- phone_code: String!
92
- currency: String
93
- currency_symbol: String
94
- emoji: String
95
- location: GeoLocation
96
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States
97
- createdAt: DateTime!
98
- updatedAt: DateTime!
99
- }
100
-
101
- input CountryInput {
102
- name: String!
103
- }
104
-
105
- type Countries {
106
- totalCount: Int!
107
- data: [Country]
108
- }
109
-
110
- extend type Query {
111
- countries(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Countries!
112
- country(id: ID!): Country!
113
- countryByName(name: String!): Country!
114
- }
115
-
116
- extend type Mutation {
117
- createCountry(country: CountryInput!): Country!
118
- updateCountry(id: ID!, country: CountryInput!): Country!
119
- deleteCountry(id: ID!): Boolean!
120
- }
121
-
122
- type Country implements ICountry{
123
- id: ID!
124
- name: String!
125
- phone_code: String!
126
- currency: String
127
- currency_symbol: String
128
- emoji: String
129
- location: GeoLocation
130
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States
131
- createdAt: DateTime!
132
- updatedAt: DateTime!
133
- }
134
-
135
- type Countries {
136
- totalCount: Int!
137
- data: [Country]
138
- }
139
-
140
- extend type Query {
141
- countries(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Countries!
142
- country(id: ID!): Country!
143
- countryByName(name: String!): Country!
144
- }
145
-
146
- extend type Mutation {
147
- createCountry(country: CountryInput!): Country!
148
- updateCountry(id: ID!, country: CountryInput!): Country!
149
- deleteCountry(id: ID!): Boolean!
150
- }
151
- """
152
- Territorial State
153
- """
154
- interface ITerritorialState {
155
- id: ID!
156
- name: String!
157
- country: ICountry!
158
- location: GeoLocation
159
- createdAt: DateTime!
160
- updatedAt: DateTime!
161
- }
162
-
163
- """
164
- Address State Create Input
165
- """
166
- input TerritorialStateInput {
167
- """
168
- Name of the country to display
169
- """
170
- name: String!
171
- """
172
- ID of Country to associate
173
- """
174
- country: String!
175
- }
176
-
177
- """
178
- Address State Update Input
179
- """
180
- input TerritorialStateUpdateInput {
181
- name: String
182
- country: Int!
183
- }
184
-
185
-
186
- """
187
- Address State
188
- """
189
- type State implements ITerritorialState{
190
- id: ID!
191
- name: String!
192
- country: Country!
193
- cities(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): Cities!
194
- location: GeoLocation
195
- createdAt: DateTime!
196
- updatedAt: DateTime!
197
- }
198
-
199
- """
200
- Address State Create Input
201
- """
202
- input StateInput {
203
- """
204
- Name of the country to display
205
- """
206
- name: String!
207
- """
208
- ID of Country to associate
209
- """
210
- country: String!
211
- }
212
-
213
- """
214
- Address State Update Input
215
- """
216
- input StateUpdateInput {
217
- name: String
218
- country: String!
219
- }
220
-
221
- type States {
222
- totalCount: Int!
223
- data: [State]
224
- }
225
-
226
- extend type Query {
227
- states(criteria: AnyObject, limit: Int, skip: Int, sort: Sort): States!
228
- state(id: ID!): State!
229
- }
230
-
231
- extend type Mutation {
232
- createState(state: StateInput!): State!
233
- updateState(id: ID!, state: StateUpdateInput!): State!
234
- deleteState(id: ID!): Boolean!
235
- }