@eventmodelers/cli 1.0.72 → 1.0.74
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 +29 -8
- package/RELEASE_NOTES.md +5 -0
- package/cli.js +119 -28
- package/package.json +2 -2
- package/shared/demo-slices/Understanding Eventsourcing/additem/slice.json +176 -0
- package/shared/demo-slices/Understanding Eventsourcing/archiveitem/slice.json +209 -0
- package/shared/demo-slices/Understanding Eventsourcing/cartitems/slice.json +236 -0
- package/shared/demo-slices/Understanding Eventsourcing/cartpublicationfailed/slice.json +65 -0
- package/shared/demo-slices/Understanding Eventsourcing/cartpublished/slice.json +65 -0
- package/shared/demo-slices/Understanding Eventsourcing/cartswithproducts/slice.json +105 -0
- package/shared/demo-slices/Understanding Eventsourcing/changedprices/slice.json +91 -0
- package/shared/demo-slices/Understanding Eventsourcing/changeinventory/slice.json +191 -0
- package/shared/demo-slices/Understanding Eventsourcing/changeprice/slice.json +220 -0
- package/shared/demo-slices/Understanding Eventsourcing/clearcart/slice.json +219 -0
- package/shared/demo-slices/Understanding Eventsourcing/config.json +2631 -0
- package/shared/demo-slices/Understanding Eventsourcing/context.json +3 -0
- package/shared/demo-slices/Understanding Eventsourcing/index.json +132 -0
- package/shared/demo-slices/Understanding Eventsourcing/inventories/slice.json +132 -0
- package/shared/demo-slices/Understanding Eventsourcing/itemadded/slice.json +137 -0
- package/shared/demo-slices/Understanding Eventsourcing/publishcart/slice.json +230 -0
- package/shared/demo-slices/Understanding Eventsourcing/removeitem/slice.json +239 -0
- package/shared/demo-slices/Understanding Eventsourcing/submitcart/slice.json +199 -0
- package/shared/demo-slices/Understanding Eventsourcing/submittedcartdata/slice.json +90 -0
- package/shared/demo-slices/current_context.json +3 -0
- package/stacks/blank/templates/.claude/skills/build-automation/SKILL.md +1 -1
- package/stacks/blank/templates/.claude/skills/build-state-change/SKILL.md +1 -1
- package/stacks/blank/templates/.claude/skills/build-state-view/SKILL.md +1 -1
- package/stacks/blank/templates/root/README.md +1 -1
- package/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +8 -6
- package/stacks/modeling-kit/templates/kit/CLAUDE.md +12 -7
- package/stacks/modeling-kit/templates/kit/README.md +1 -1
- package/stacks/react/templates/.claude/skills/build-automation/SKILL.md +1 -1
- package/stacks/react/templates/.claude/skills/build-state-change/SKILL.md +1 -1
- package/stacks/react/templates/.claude/skills/build-state-view/SKILL.md +1 -1
- package/stacks/cratis-csharp/templates/.claude/skills/_shared/cratis-conventions.md +0 -251
- package/stacks/cratis-csharp/templates/.claude/skills/build-automation/SKILL.md +0 -122
- package/stacks/cratis-csharp/templates/.claude/skills/build-automation/references/patterns.md +0 -115
- package/stacks/cratis-csharp/templates/.claude/skills/build-state-change/SKILL.md +0 -191
- package/stacks/cratis-csharp/templates/.claude/skills/build-state-change/references/patterns.md +0 -234
- package/stacks/cratis-csharp/templates/.claude/skills/build-state-view/SKILL.md +0 -149
- package/stacks/cratis-csharp/templates/.claude/skills/build-state-view/references/patterns.md +0 -166
- package/stacks/cratis-csharp/templates/build-kit/CLAUDE.md +0 -78
- package/stacks/cratis-csharp/templates/build-kit/lib/AGENT.md +0 -59
- package/stacks/cratis-csharp/templates/build-kit/lib/backend-prompt.md +0 -140
- package/stacks/cratis-csharp/templates/build-kit/lib/prompt.md +0 -126
- package/stacks/cratis-csharp/templates/root/.frontend/index.css +0 -29
- package/stacks/cratis-csharp/templates/root/.frontend/index.html +0 -17
- package/stacks/cratis-csharp/templates/root/.frontend/main.tsx +0 -18
- package/stacks/cratis-csharp/templates/root/.frontend/tsconfig.json +0 -42
- package/stacks/cratis-csharp/templates/root/.frontend/tsconfig.node.json +0 -11
- package/stacks/cratis-csharp/templates/root/.frontend/vite.config.ts +0 -56
- package/stacks/cratis-csharp/templates/root/App.tsx +0 -23
- package/stacks/cratis-csharp/templates/root/CratisApp.csproj +0 -25
- package/stacks/cratis-csharp/templates/root/CratisApp.sln +0 -18
- package/stacks/cratis-csharp/templates/root/GlobalUsings.cs +0 -3
- package/stacks/cratis-csharp/templates/root/Home.tsx +0 -102
- package/stacks/cratis-csharp/templates/root/Program.cs +0 -26
- package/stacks/cratis-csharp/templates/root/README.md +0 -192
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/AllListings.ts +0 -47
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/Listing.cs +0 -11
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/Listing.ts +0 -12
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/ListingDataTable.tsx +0 -17
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Listing/index.ts +0 -1
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/Register.ts +0 -51
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/RegisterDialog.tsx +0 -18
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/Registration.cs +0 -27
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/index.ts +0 -1
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/SomeFeature.tsx +0 -22
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/SomeName.cs +0 -3
- package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/index.ts +0 -1
- package/stacks/cratis-csharp/templates/root/appsettings.Development.json +0 -9
- package/stacks/cratis-csharp/templates/root/appsettings.json +0 -26
- package/stacks/cratis-csharp/templates/root/docker-compose.yml +0 -23
- package/stacks/cratis-csharp/templates/root/package.json +0 -33
- package/stacks/cratis-csharp/templates/root/tsconfig.json +0 -3
package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/RegisterDialog.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CommandDialog } from '@cratis/components/CommandDialog';
|
|
2
|
-
import { InputTextField } from '@cratis/components/CommandForm';
|
|
3
|
-
import { Register } from './Register';
|
|
4
|
-
|
|
5
|
-
export const RegisterDialog = () => {
|
|
6
|
-
return (
|
|
7
|
-
<CommandDialog
|
|
8
|
-
command={Register}
|
|
9
|
-
title='Register'
|
|
10
|
-
okLabel='Register'
|
|
11
|
-
cancelLabel='Cancel'>
|
|
12
|
-
<InputTextField<Register>
|
|
13
|
-
value={c => c.name}
|
|
14
|
-
title='Name'
|
|
15
|
-
icon={<i className='pi pi-pencil' />} />
|
|
16
|
-
</CommandDialog>
|
|
17
|
-
);
|
|
18
|
-
}
|
package/stacks/cratis-csharp/templates/root/SomeModule/SomeFeature/Registration/Registration.cs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
namespace CratisApp.SomeModule.SomeFeature.Registration;
|
|
2
|
-
|
|
3
|
-
[Command]
|
|
4
|
-
public record Register(SomeName Name)
|
|
5
|
-
{
|
|
6
|
-
public (Guid, Registered) Handle()
|
|
7
|
-
{
|
|
8
|
-
var eventSourceId = Guid.NewGuid();
|
|
9
|
-
|
|
10
|
-
return (eventSourceId, new(Name));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[EventType]
|
|
15
|
-
public record Registered(SomeName Name);
|
|
16
|
-
|
|
17
|
-
public partial class RegistrationReactor(ILogger<RegistrationReactor> logger) : IReactor
|
|
18
|
-
{
|
|
19
|
-
public Task Handle(Registered evt)
|
|
20
|
-
{
|
|
21
|
-
LogRegistered(evt.Name);
|
|
22
|
-
return Task.CompletedTask;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[LoggerMessage(LogLevel.Information, "Registered: {Name}")]
|
|
26
|
-
partial void LogRegistered(string name);
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RegisterDialog';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Button } from 'primereact/button';
|
|
2
|
-
import { RegisterDialog } from './Registration';
|
|
3
|
-
import { ListingDataTable } from './Listing';
|
|
4
|
-
import { useDialog } from '@cratis/arc.react/dialogs';
|
|
5
|
-
|
|
6
|
-
export const SomeFeature = () => {
|
|
7
|
-
const [RegistrationDialog, showRegistrationDialog] = useDialog(RegisterDialog);
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<div className='p-4'>
|
|
11
|
-
<div className='flex justify-between items-center mb-4'>
|
|
12
|
-
<h1 className='text-2xl font-bold'>SomeFeature</h1>
|
|
13
|
-
<Button
|
|
14
|
-
label='Register'
|
|
15
|
-
icon='pi pi-plus'
|
|
16
|
-
onClick={() => showRegistrationDialog()} />
|
|
17
|
-
</div>
|
|
18
|
-
<ListingDataTable />
|
|
19
|
-
<RegistrationDialog />
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SomeFeature';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Logging": {
|
|
3
|
-
"LogLevel": {
|
|
4
|
-
"Default": "Information",
|
|
5
|
-
"Microsoft.AspNetCore": "Warning"
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"AllowedHosts": "*",
|
|
9
|
-
"Cratis": {
|
|
10
|
-
"Arc": {
|
|
11
|
-
"GeneratedApis": {
|
|
12
|
-
"RoutePrefix": "api",
|
|
13
|
-
"IncludeCommandNameInRoute": false,
|
|
14
|
-
"SegmentsToSkipForRoute": 1
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"Chronicle": {
|
|
18
|
-
"EventStore": "CratisApp",
|
|
19
|
-
"ConnectionString": "chronicle://chronicle-dev-client:chronicle-dev-secret@localhost:35000"
|
|
20
|
-
},
|
|
21
|
-
"MongoDB": {
|
|
22
|
-
"Server": "mongodb://localhost:27017",
|
|
23
|
-
"Database": "CratisApp"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
chronicle:
|
|
3
|
-
image: cratis/chronicle:latest-development
|
|
4
|
-
pull_policy: always
|
|
5
|
-
environment:
|
|
6
|
-
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889
|
|
7
|
-
ports:
|
|
8
|
-
- 27017:27017
|
|
9
|
-
- 8080:8080
|
|
10
|
-
- 11111:11111
|
|
11
|
-
- 30000:30000
|
|
12
|
-
- 35000:35000
|
|
13
|
-
|
|
14
|
-
aspire-dashboard:
|
|
15
|
-
image: mcr.microsoft.com/dotnet/aspire-dashboard:latest
|
|
16
|
-
environment:
|
|
17
|
-
- DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true
|
|
18
|
-
- DOTNET_DASHBOARD_OTLP_ENDPOINT_URL=http://chronicle:18889
|
|
19
|
-
- ALLOW_UNSECURED_TRANSPORT=true
|
|
20
|
-
- DOTNET_ENVIRONMENT=Development
|
|
21
|
-
ports:
|
|
22
|
-
- 18888:18888
|
|
23
|
-
- 4317:18889
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cratisapp",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite --config .frontend/vite.config.ts",
|
|
8
|
-
"build": "tsc -b .frontend/tsconfig.json && vite build --config .frontend/vite.config.ts",
|
|
9
|
-
"preview": "vite preview --config .frontend/vite.config.ts"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@cratis/arc.react": "^20.3.1",
|
|
13
|
-
"@cratis/arc.vite": "^20.3.1",
|
|
14
|
-
"@cratis/components": "^2.5.0",
|
|
15
|
-
"primeicons": "^7.0.0",
|
|
16
|
-
"primereact": "^10.9.7",
|
|
17
|
-
"react": "^19.0.0",
|
|
18
|
-
"react-dom": "^19.0.0",
|
|
19
|
-
"react-icons": "^5.5.0",
|
|
20
|
-
"react-router-dom": "^7.0.0",
|
|
21
|
-
"ts-deepmerge": "^7.0.0",
|
|
22
|
-
"usehooks-ts": "^3.1.0"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@tailwindcss/vite": "^4.0.0",
|
|
26
|
-
"@types/react": "^19.0.0",
|
|
27
|
-
"@types/react-dom": "^19.0.0",
|
|
28
|
-
"@vitejs/plugin-react": "^4.0.0",
|
|
29
|
-
"tailwindcss": "^4.0.0",
|
|
30
|
-
"typescript": "^5.5.0",
|
|
31
|
-
"vite": "^6.0.0"
|
|
32
|
-
}
|
|
33
|
-
}
|