create-auto-app 0.11.12 → 0.11.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-auto-app",
3
- "version": "0.11.12",
3
+ "version": "0.11.13",
4
4
  "description": "Create Auto Engineer apps with no configuration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "fs-extra": "^11.2.0",
34
34
  "inquirer": "^9.2.15",
35
35
  "ora": "^8.0.1",
36
- "@auto-engineer/id": "0.11.12"
36
+ "@auto-engineer/id": "0.11.13"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.4",
@@ -23,6 +23,7 @@ import type {
23
23
  ComponentImplementedEvent,
24
24
  ComponentImplementationFailedEvent,
25
25
  } from '@auto-engineer/component-implementer';
26
+ import type { StartServerCommand, StartClientCommand } from '@auto-engineer/dev-server';
26
27
  import * as path from 'path';
27
28
  import createDebug from 'debug';
28
29
 
@@ -68,6 +69,7 @@ export default autoConfig({
68
69
  '@auto-engineer/information-architect',
69
70
  '@auto-engineer/frontend-generator-react-graphql',
70
71
  '@auto-engineer/server-implementer',
72
+ '@auto-engineer/dev-server',
71
73
  ],
72
74
  aliases: {
73
75
  // Resolve command name conflicts between packages
@@ -194,12 +196,15 @@ export default autoConfig({
194
196
  }),
195
197
  );
196
198
 
197
- on<GenerateServerEvents>('ServerGenerated', () =>
199
+ on<GenerateServerEvents>('ServerGenerated', () => [
198
200
  dispatch<GenerateIACommand>('GenerateIA', {
199
201
  modelPath: './.context/schema.json',
200
202
  outputDir: './.context',
201
203
  }),
202
- );
204
+ dispatch<StartServerCommand>('StartServer', {
205
+ serverDirectory: './server',
206
+ }),
207
+ ]);
203
208
 
204
209
  on<GenerateIAEvents>('IAGenerated', () =>
205
210
  dispatch<GenerateClientCommand>('GenerateClient', {
@@ -223,6 +228,9 @@ export default autoConfig({
223
228
  filePath: 'client/src/components/molecules/Example.tsx',
224
229
  componentName: 'Example.tsx',
225
230
  }),
231
+ dispatch<StartClientCommand>('StartClient', {
232
+ clientDirectory: './client',
233
+ }),
226
234
  ];
227
235
  }
228
236
 
@@ -248,7 +256,7 @@ export default autoConfig({
248
256
 
249
257
  dispatchedPhases.add('molecule');
250
258
 
251
- const commands = molecules.map((component) => {
259
+ const componentCommands = molecules.map((component) => {
252
260
  const componentName = path.basename(component.filePath).replace('.tsx', '');
253
261
  return dispatch<ImplementComponentCommand>('ImplementComponent', {
254
262
  projectDir: clientTargetDir,
@@ -260,7 +268,11 @@ export default autoConfig({
260
268
  });
261
269
  });
262
270
 
263
- return dispatch.parallel(commands);
271
+ const startClientCommand = dispatch<StartClientCommand>('StartClient', {
272
+ clientDirectory: './client',
273
+ });
274
+
275
+ return dispatch.parallel([...componentCommands, startClientCommand]);
264
276
  });
265
277
 
266
278
  const handleComponentProcessed = (e: ComponentImplementedEvent | ComponentImplementationFailedEvent) => {
@@ -247,7 +247,6 @@ narrative('Todo List', 'AUTO-T8dL3k9Xw', () => {
247
247
  })
248
248
  .and<TodoMarkedInProgress>({ todoId: 'todo-001', markedAt: new Date('2030-01-01T10:00:00.000Z') })
249
249
  .and<TodoMarkedComplete>({ todoId: 'todo-002', completedAt: new Date('2030-01-01T11:00:00.000Z') })
250
- .when({})
251
250
  .then<TodoState>({
252
251
  todoId: 'todo-001',
253
252
  description: 'Buy groceries',
@@ -305,7 +304,6 @@ narrative('Todo List', 'AUTO-T8dL3k9Xw', () => {
305
304
  })
306
305
  .and<TodoMarkedInProgress>({ todoId: 'todo-001', markedAt: new Date('2030-01-01T10:00:00.000Z') })
307
306
  .and<TodoMarkedComplete>({ todoId: 'todo-002', completedAt: new Date('2030-01-01T11:00:00.000Z') })
308
- .when({})
309
307
  .then<TodoListSummary>({
310
308
  summaryId: 'main-summary',
311
309
  totalTodos: 3,
@@ -11,6 +11,7 @@
11
11
  "@auto-engineer/cli": "workspace:*",
12
12
  "@auto-engineer/component-implementer": "workspace:*",
13
13
  "@auto-engineer/design-system-importer": "workspace:*",
14
+ "@auto-engineer/dev-server": "workspace:*",
14
15
  "@auto-engineer/narrative": "workspace:*",
15
16
  "@auto-engineer/frontend-checks": "workspace:*",
16
17
  "@auto-engineer/frontend-generator-react-graphql": "workspace:*",