Skip to content

Commit ee2a5c7

Browse files
committed
feat: property life-cycle
1 parent 6555a94 commit ee2a5c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2623
-846
lines changed

README.md

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This project _sports_ a non gitflow workflow.
5555

5656
#### Branches
5757

58-
`Main` and `feature/*`
58+
`main` and `feature/*`
5959

6060
#### The (CI/CD) Flow
6161

@@ -78,15 +78,42 @@ Once a feature's PR is merged, the pipeline will run checks and publish.
7878
- Transition would be around Hard Money vs Conventional
7979
- TODO: delay 1st mortgage payment
8080
- TODO: figure out 1031 exchange
81-
- TODO: Determine how long to hold onto a property
8281

8382
## Missing features
8483

85-
1. publisher
86-
2. user
87-
3. apartments (passive investing)
88-
4. ledger
84+
1. user
85+
2. apartments (passive investor)
8986

9087
## Future
9188

9289
- Refine the build process to remove /dist/src from library drill down
90+
91+
## calling
92+
93+
As this is still in progress, the current flow is as follows:
94+
95+
```typescript
96+
import * as all from "@cubedelement.com/realty-investor-timeline";
97+
98+
const metGoal: all.HasMetGoalOrMaxTime = (
99+
start: Date,
100+
today: Date,
101+
user: all.IUser,
102+
maxYears: number
103+
): boolean => {
104+
if (user.goals.metMonthlyGoal(today)) {
105+
return true;
106+
}
107+
108+
return false;
109+
};
110+
111+
const results = all.loop(
112+
{
113+
startDate: new Date(),
114+
maxYears: 30,
115+
hasMetGoalOrMaxTime: metGoal,
116+
},
117+
user
118+
);
119+
```

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default {
132132
// testLocationInResults: false,
133133

134134
// The glob patterns Jest uses to detect test files
135-
testMatch: ["<rootDir>/tests/**/*.[jt]s?(x)", "<rootDir>/?(*.)+(spec|test).[tj]s?(x)"],
135+
testMatch: ["<rootDir>/tests/**/*.+(spec|test).[jt]s?(x)", "<rootDir>/?(*.)+(spec|test).[tj]s?(x)"],
136136

137137
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
138138
// testPathIgnorePatterns: [

0 commit comments

Comments
 (0)