Skip to content

Commit

Permalink
Merge branch 'main' into add-screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Lanza committed Apr 18, 2024
2 parents 49d954a + 31af0ea commit b051802
Show file tree
Hide file tree
Showing 6 changed files with 5,957 additions and 5,045 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.1
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ This branch implements action based provenance tracking.
Clone the repository and switch to `trrack-action` branch.
This project was generated using [Nx](https://nx.dev). Please refer to [Nx](https://nx.dev) for more any questions about monorepo setup.

### Basic
Serve the react example by running the following:

```bash
npx nx react-trrack-example:serve
```
Any changes made to the `core` package will cause updates to the react example for easier testing

### Advanced
To get started with development run:

```bash
Expand Down
4 changes: 4 additions & 0 deletions apps/react-trrack-example/src/app/store/trrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ export function useTrrackTaskManager() {
(add: number) => {
setCounter((c) => c + add);
return {
undo: {
type: 'decrement-counter',
payload: add,
meta: {
hasSideEffects: true,
},
}
};
}
);
Expand All @@ -60,11 +62,13 @@ export function useTrrackTaskManager() {
(sub: number) => {
setCounter((c) => c - sub);
return {
undo: {
type: 'increment-counter',
payload: sub,
meta: {
hasSideEffects: true,
},
}
};
}
);
Expand Down
3 changes: 2 additions & 1 deletion apps/react-trrack-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false
},
"files": [],
"include": [],
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@trrack/*": ["dist/packages/*"]
"@trrack/core": ["./packages/core/src/index.ts"],
"react": ["node_modules/@types/react"]
}
},
"exclude": ["node_modules", "tmp"]
Expand Down
Loading

0 comments on commit b051802

Please sign in to comment.